2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for RISC-V ISA Simulator ?.
5 # Report bugs to <Andrew Waterman>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev
/null
; then :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
219 for as_base
in sh bash ksh sh5
; do
220 # Try only shells that exist, to save several forks.
221 as_shell
=$as_dir/$as_base
222 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
224 CONFIG_SHELL
=$as_shell as_have_required
=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
233 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
235 CONFIG_SHELL
=$SHELL as_have_required
=yes
240 if test "x$CONFIG_SHELL" != x
; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x
${ZSH_VERSION+set} = xset
; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and Andrew Waterman
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
279 SHELL
=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE
= GREP_OPTIONS
=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs
="'$as_qdir' $as_dirs"
332 as_dir
=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
358 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p
()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
401 as_val
=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
415 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit
$as_status
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits
='0123456789'
465 as_cr_alnum
=$as_cr_Letters$as_cr_digits
468 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
469 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x
"$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec
=no
; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
521 mkdir conf$$.dir
2>/dev
/null
523 if (echo >conf$$.
file) 2>/dev
/null
; then
524 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
540 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
541 rmdir conf$$.dir
2>/dev
/null
543 if mkdir
-p .
2>/dev
/null
; then
544 as_mkdir_p
='mkdir -p "$as_dir"'
546 test -d .
/-p && rmdir .
/-p
551 as_executable_p
=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
581 PACKAGE_NAME
='RISC-V ISA Simulator'
582 PACKAGE_TARNAME
='spike'
584 PACKAGE_STRING
='RISC-V ISA Simulator ?'
585 PACKAGE_BUGREPORT
='Andrew Waterman'
588 ac_unique_file
="riscv/common.h"
589 ac_subst_vars
='LTLIBOBJS
650 program_transform_name
663 enable_option_checking
665 enable_optional_subprojects
673 ac_precious_vars
='build_alias
689 # Initialize some variables set by options.
691 ac_init_version
=false
692 ac_unrecognized_opts
=
694 # The variables have the same names as the options, with
695 # dashes changed to underlines.
703 program_transform_name
=s
,x
,x
,
711 # Installation directory options.
712 # These are left unexpanded so users can "make install exec_prefix=/foo"
713 # and all the variables that are supposed to be based on exec_prefix
714 # by default will actually change.
715 # Use braces instead of parens because sh, perl, etc. also accept them.
716 # (The list follows the same order as the GNU Coding Standards.)
717 bindir
='${exec_prefix}/bin'
718 sbindir
='${exec_prefix}/sbin'
719 libexecdir
='${exec_prefix}/libexec'
720 datarootdir
='${prefix}/share'
721 datadir
='${datarootdir}'
722 sysconfdir
='${prefix}/etc'
723 sharedstatedir
='${prefix}/com'
724 localstatedir
='${prefix}/var'
725 includedir
='${prefix}/include'
726 oldincludedir
='/usr/include'
727 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
728 infodir
='${datarootdir}/info'
733 libdir
='${exec_prefix}/lib'
734 localedir
='${datarootdir}/locale'
735 mandir
='${datarootdir}/man'
741 # If the previous option needs an argument, assign it.
742 if test -n "$ac_prev"; then
743 eval $ac_prev=\
$ac_option
749 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
754 # Accept the important Cygnus configure options, so we can diagnose typos.
756 case $ac_dashdash$ac_option in
760 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
762 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
765 -build |
--build |
--buil |
--bui |
--bu)
766 ac_prev
=build_alias
;;
767 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
768 build_alias
=$ac_optarg ;;
770 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
771 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
772 ac_prev
=cache_file
;;
773 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
774 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
775 cache_file
=$ac_optarg ;;
778 cache_file
=config.cache
;;
780 -datadir |
--datadir |
--datadi |
--datad)
782 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
783 datadir
=$ac_optarg ;;
785 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
786 |
--dataroo |
--dataro |
--datar)
787 ac_prev
=datarootdir
;;
788 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
789 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
790 datarootdir
=$ac_optarg ;;
792 -disable-* |
--disable-*)
793 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
794 # Reject names that are not valid shell variable names.
795 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
796 as_fn_error $?
"invalid feature name: $ac_useropt"
797 ac_useropt_orig
=$ac_useropt
798 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
799 case $ac_user_opts in
803 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
804 ac_unrecognized_sep
=', ';;
806 eval enable_
$ac_useropt=no
;;
808 -docdir |
--docdir |
--docdi |
--doc |
--do)
810 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
813 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
815 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
818 -enable-* |
--enable-*)
819 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
820 # Reject names that are not valid shell variable names.
821 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
822 as_fn_error $?
"invalid feature name: $ac_useropt"
823 ac_useropt_orig
=$ac_useropt
824 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
825 case $ac_user_opts in
829 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
830 ac_unrecognized_sep
=', ';;
832 eval enable_
$ac_useropt=\
$ac_optarg ;;
834 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
835 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
836 |
--exec |
--exe |
--ex)
837 ac_prev
=exec_prefix
;;
838 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
839 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
840 |
--exec=* |
--exe=* |
--ex=*)
841 exec_prefix
=$ac_optarg ;;
843 -gas |
--gas |
--ga |
--g)
844 # Obsolete; use --with-gas.
847 -help |
--help |
--hel |
--he |
-h)
849 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
850 ac_init_help
=recursive
;;
851 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
852 ac_init_help
=short
;;
854 -host |
--host |
--hos |
--ho)
855 ac_prev
=host_alias
;;
856 -host=* |
--host=* |
--hos=* |
--ho=*)
857 host_alias
=$ac_optarg ;;
859 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
861 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
863 htmldir
=$ac_optarg ;;
865 -includedir |
--includedir |
--includedi |
--included |
--include \
866 |
--includ |
--inclu |
--incl |
--inc)
867 ac_prev
=includedir
;;
868 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
869 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
870 includedir
=$ac_optarg ;;
872 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
874 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
875 infodir
=$ac_optarg ;;
877 -libdir |
--libdir |
--libdi |
--libd)
879 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
882 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
883 |
--libexe |
--libex |
--libe)
884 ac_prev
=libexecdir
;;
885 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
886 |
--libexe=* |
--libex=* |
--libe=*)
887 libexecdir
=$ac_optarg ;;
889 -localedir |
--localedir |
--localedi |
--localed |
--locale)
891 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
892 localedir
=$ac_optarg ;;
894 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
895 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
896 ac_prev
=localstatedir
;;
897 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
898 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
899 localstatedir
=$ac_optarg ;;
901 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
903 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
907 # Obsolete; use --without-fp.
910 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
911 |
--no-cr |
--no-c |
-n)
914 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
915 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
918 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
919 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
920 |
--oldin |
--oldi |
--old |
--ol |
--o)
921 ac_prev
=oldincludedir
;;
922 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
923 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
924 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
925 oldincludedir
=$ac_optarg ;;
927 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
929 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
932 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
933 |
--program-pre |
--program-pr |
--program-p)
934 ac_prev
=program_prefix
;;
935 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
936 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
937 program_prefix
=$ac_optarg ;;
939 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
940 |
--program-suf |
--program-su |
--program-s)
941 ac_prev
=program_suffix
;;
942 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
943 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
944 program_suffix
=$ac_optarg ;;
946 -program-transform-name |
--program-transform-name \
947 |
--program-transform-nam |
--program-transform-na \
948 |
--program-transform-n |
--program-transform- \
949 |
--program-transform |
--program-transfor \
950 |
--program-transfo |
--program-transf \
951 |
--program-trans |
--program-tran \
952 |
--progr-tra |
--program-tr |
--program-t)
953 ac_prev
=program_transform_name
;;
954 -program-transform-name=* |
--program-transform-name=* \
955 |
--program-transform-nam=* |
--program-transform-na=* \
956 |
--program-transform-n=* |
--program-transform-=* \
957 |
--program-transform=* |
--program-transfor=* \
958 |
--program-transfo=* |
--program-transf=* \
959 |
--program-trans=* |
--program-tran=* \
960 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
961 program_transform_name
=$ac_optarg ;;
963 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
965 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
968 -psdir |
--psdir |
--psdi |
--psd |
--ps)
970 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
973 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
974 |
-silent |
--silent |
--silen |
--sile |
--sil)
977 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
979 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
981 sbindir
=$ac_optarg ;;
983 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
984 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
985 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
987 ac_prev
=sharedstatedir
;;
988 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
989 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
990 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
992 sharedstatedir
=$ac_optarg ;;
994 -site |
--site |
--sit)
996 -site=* |
--site=* |
--sit=*)
999 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1001 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1002 srcdir
=$ac_optarg ;;
1004 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1005 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1006 ac_prev
=sysconfdir
;;
1007 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1008 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1009 sysconfdir
=$ac_optarg ;;
1011 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1012 ac_prev
=target_alias
;;
1013 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1014 target_alias
=$ac_optarg ;;
1016 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1019 -version |
--version |
--versio |
--versi |
--vers |
-V)
1020 ac_init_version
=: ;;
1023 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1024 # Reject names that are not valid shell variable names.
1025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1026 as_fn_error $?
"invalid package name: $ac_useropt"
1027 ac_useropt_orig
=$ac_useropt
1028 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1029 case $ac_user_opts in
1033 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1034 ac_unrecognized_sep
=', ';;
1036 eval with_
$ac_useropt=\
$ac_optarg ;;
1038 -without-* |
--without-*)
1039 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1042 as_fn_error $?
"invalid package name: $ac_useropt"
1043 ac_useropt_orig
=$ac_useropt
1044 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1049 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1050 ac_unrecognized_sep
=', ';;
1052 eval with_
$ac_useropt=no
;;
1055 # Obsolete; use --with-x.
1058 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1059 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1060 ac_prev
=x_includes
;;
1061 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1062 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1063 x_includes
=$ac_optarg ;;
1065 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1066 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1067 ac_prev
=x_libraries
;;
1068 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1069 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1070 x_libraries
=$ac_optarg ;;
1072 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1073 Try \`$0 --help' for more information"
1077 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1078 # Reject names that are not valid shell variable names.
1079 case $ac_envvar in #(
1080 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1081 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1083 eval $ac_envvar=\
$ac_optarg
1084 export $ac_envvar ;;
1087 # FIXME: should be removed in autoconf 3.0.
1088 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1089 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1090 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1091 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1097 if test -n "$ac_prev"; then
1098 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1099 as_fn_error $?
"missing argument to $ac_option"
1102 if test -n "$ac_unrecognized_opts"; then
1103 case $enable_option_checking in
1105 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1106 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1110 # Check all directory arguments for consistency.
1111 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1112 datadir sysconfdir sharedstatedir localstatedir includedir \
1113 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1114 libdir localedir mandir
1116 eval ac_val
=\$
$ac_var
1117 # Remove trailing slashes.
1120 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1121 eval $ac_var=\
$ac_val;;
1123 # Be sure to have absolute directory names.
1125 [\\/$
]* | ?
:[\\/]* ) continue;;
1126 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1128 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1131 # There might be people who depend on the old broken behavior: `$host'
1132 # used to hold the argument of --host etc.
1133 # FIXME: To remove some day.
1136 target
=$target_alias
1138 # FIXME: To remove some day.
1139 if test "x$host_alias" != x
; then
1140 if test "x$build_alias" = x
; then
1141 cross_compiling
=maybe
1142 elif test "x$build_alias" != "x$host_alias"; then
1148 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1150 test "$silent" = yes && exec 6>/dev
/null
1153 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1154 ac_ls_di
=`ls -di .` &&
1155 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1156 as_fn_error $?
"working directory cannot be determined"
1157 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1158 as_fn_error $?
"pwd does not report name of working directory"
1161 # Find the source files, if location was not specified.
1162 if test -z "$srcdir"; then
1163 ac_srcdir_defaulted
=yes
1164 # Try the directory containing this script, then the parent directory.
1165 ac_confdir
=`$as_dirname -- "$as_myself" ||
1166 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1167 X"$as_myself" : 'X\(//\)[^/]' \| \
1168 X"$as_myself" : 'X\(//\)$' \| \
1169 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1170 $as_echo X"$as_myself" |
1171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1189 if test ! -r "$srcdir/$ac_unique_file"; then
1193 ac_srcdir_defaulted
=no
1195 if test ! -r "$srcdir/$ac_unique_file"; then
1196 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1197 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1199 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1201 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1203 # When building in place, set srcdir=.
1204 if test "$ac_abs_confdir" = "$ac_pwd"; then
1207 # Remove unnecessary trailing slashes from srcdir.
1208 # Double slashes in file names in object file debugging info
1209 # mess up M-x gdb in Emacs.
1211 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1213 for ac_var
in $ac_precious_vars; do
1214 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1215 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1216 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1217 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1221 # Report the --help message.
1223 if test "$ac_init_help" = "long"; then
1224 # Omit some internal or obsolete options to make the list less imposing.
1225 # This message is too long to be a string in the A/UX 3.1 sh.
1227 \`configure' configures RISC-V ISA Simulator ? to adapt to many kinds of systems.
1229 Usage: $0 [OPTION]... [VAR=VALUE]...
1231 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1232 VAR=VALUE. See below for descriptions of some of the useful variables.
1234 Defaults for the options are specified in brackets.
1237 -h, --help display this help and exit
1238 --help=short display options specific to this package
1239 --help=recursive display the short help of all the included packages
1240 -V, --version display version information and exit
1241 -q, --quiet, --silent do not print \`checking ...' messages
1242 --cache-file=FILE cache test results in FILE [disabled]
1243 -C, --config-cache alias for \`--cache-file=config.cache'
1244 -n, --no-create do not create output files
1245 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1247 Installation directories:
1248 --prefix=PREFIX install architecture-independent files in PREFIX
1249 [$ac_default_prefix]
1250 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1253 By default, \`make install' will install all the files in
1254 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1255 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1256 for instance \`--prefix=\$HOME'.
1258 For better control, use the options below.
1260 Fine tuning of the installation directories:
1261 --bindir=DIR user executables [EPREFIX/bin]
1262 --sbindir=DIR system admin executables [EPREFIX/sbin]
1263 --libexecdir=DIR program executables [EPREFIX/libexec]
1264 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1265 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1266 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1267 --libdir=DIR object code libraries [EPREFIX/lib]
1268 --includedir=DIR C header files [PREFIX/include]
1269 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1270 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1271 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1272 --infodir=DIR info documentation [DATAROOTDIR/info]
1273 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1274 --mandir=DIR man documentation [DATAROOTDIR/man]
1275 --docdir=DIR documentation root [DATAROOTDIR/doc/spike]
1276 --htmldir=DIR html documentation [DOCDIR]
1277 --dvidir=DIR dvi documentation [DOCDIR]
1278 --pdfdir=DIR pdf documentation [DOCDIR]
1279 --psdir=DIR ps documentation [DOCDIR]
1285 --build=BUILD configure
for building on BUILD
[guessed
]
1286 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1290 if test -n "$ac_init_help"; then
1291 case $ac_init_help in
1292 short | recursive
) echo "Configuration of RISC-V ISA Simulator ?:";;
1297 --disable-option-checking ignore unrecognized
--enable/--with options
1298 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1299 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1300 --enable-stow Enable stow-based
install
1301 --enable-optional-subprojects
1302 Enable all optional subprojects
1303 --disable-fpu Disable floating-point
1304 --disable-rvc Disable RISC-V Compressed
1305 --disable-64bit Disable
64-bit mode
1306 --enable-commitlog Enable commit log generation
1307 --enable-histogram Enable PC histogram generation
1310 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1311 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1312 --with-fesvr path to your fesvr installation
if not
in a standard
1315 Some influential environment variables
:
1316 CC C compiler
command
1317 CFLAGS C compiler flags
1318 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1319 nonstandard directory
<lib dir
>
1320 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1321 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1322 you have headers
in a nonstandard directory
<include dir
>
1323 CXX C
++ compiler
command
1324 CXXFLAGS C
++ compiler flags
1325 STOW_ROOT Root
for non-native stow-based installs
1326 STOW_PREFIX Prefix
for stow-based installs
1329 Use these variables to override the choices made by
`configure' or to help
1330 it to find libraries and programs with nonstandard names/locations.
1332 Report bugs to <Andrew Waterman>.
1337 if test "$ac_init_help" = "recursive"; then
1338 # If there are subdirs, report their specific --help.
1339 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1340 test -d "$ac_dir" ||
1341 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1346 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1348 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1349 # A ".." for each directory in $ac_dir_suffix.
1350 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1351 case $ac_top_builddir_sub in
1352 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1353 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1356 ac_abs_top_builddir=$ac_pwd
1357 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1358 # for backward compatibility:
1359 ac_top_builddir=$ac_top_build_prefix
1362 .) # We are building in place.
1364 ac_top_srcdir=$ac_top_builddir_sub
1365 ac_abs_top_srcdir=$ac_pwd ;;
1366 [\\/]* | ?:[\\/]* ) # Absolute name.
1367 ac_srcdir=$srcdir$ac_dir_suffix;
1368 ac_top_srcdir=$srcdir
1369 ac_abs_top_srcdir=$srcdir ;;
1371 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1372 ac_top_srcdir=$ac_top_build_prefix$srcdir
1373 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1375 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1377 cd "$ac_dir" || { ac_status=$?; continue; }
1378 # Check for guested configure.
1379 if test -f "$ac_srcdir/configure.gnu"; then
1381 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1382 elif test -f "$ac_srcdir/configure"; then
1384 $SHELL "$ac_srcdir/configure" --help=recursive
1386 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1388 cd "$ac_pwd" || { ac_status=$?; break; }
1392 test -n "$ac_init_help" && exit $ac_status
1393 if $ac_init_version; then
1395 RISC-V ISA Simulator configure ?
1396 generated by GNU Autoconf 2.69
1398 Copyright (C) 2012 Free Software Foundation, Inc.
1399 This configure script is free software; the Free Software Foundation
1400 gives unlimited permission to copy, distribute and modify it.
1405 ## ------------------------ ##
1406 ## Autoconf initialization. ##
1407 ## ------------------------ ##
1409 # ac_fn_c_try_compile LINENO
1410 # --------------------------
1411 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1412 ac_fn_c_try_compile ()
1414 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1415 rm -f conftest.$ac_objext
1416 if { { ac_try="$ac_compile"
1418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1419 *) ac_try_echo
=$ac_try;;
1421 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1422 $as_echo "$ac_try_echo"; } >&5
1423 (eval "$ac_compile") 2>conftest.err
1425 if test -s conftest.err
; then
1426 grep -v '^ *+' conftest.err
>conftest.er1
1427 cat conftest.er1
>&5
1428 mv -f conftest.er1 conftest.err
1430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1431 test $ac_status = 0; } && {
1432 test -z "$ac_c_werror_flag" ||
1433 test ! -s conftest.err
1434 } && test -s conftest.
$ac_objext; then :
1437 $as_echo "$as_me: failed program was:" >&5
1438 sed 's/^/| /' conftest.
$ac_ext >&5
1442 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1443 as_fn_set_status
$ac_retval
1445 } # ac_fn_c_try_compile
1447 # ac_fn_cxx_try_compile LINENO
1448 # ----------------------------
1449 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1450 ac_fn_cxx_try_compile
()
1452 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1453 rm -f conftest.
$ac_objext
1454 if { { ac_try
="$ac_compile"
1456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1457 *) ac_try_echo=$ac_try;;
1459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1460 $as_echo "$ac_try_echo"; } >&5
1461 (eval "$ac_compile") 2>conftest.err
1463 if test -s conftest.err; then
1464 grep -v '^ *+' conftest.err >conftest.er1
1465 cat conftest.er1 >&5
1466 mv -f conftest.er1 conftest.err
1468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1469 test $ac_status = 0; } && {
1470 test -z "$ac_cxx_werror_flag" ||
1471 test ! -s conftest.err
1472 } && test -s conftest.$ac_objext; then :
1475 $as_echo "$as_me: failed program was:" >&5
1476 sed 's/^/| /' conftest.$ac_ext >&5
1480 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1481 as_fn_set_status $ac_retval
1483 } # ac_fn_cxx_try_compile
1485 # ac_fn_c_try_cpp LINENO
1486 # ----------------------
1487 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1491 if { { ac_try="$ac_cpp conftest.$ac_ext"
1493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1494 *) ac_try_echo
=$ac_try;;
1496 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497 $as_echo "$ac_try_echo"; } >&5
1498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
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
1505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506 test $ac_status = 0; } > conftest.i
&& {
1507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1508 test ! -s conftest.err
1512 $as_echo "$as_me: failed program was:" >&5
1513 sed 's/^/| /' conftest.
$ac_ext >&5
1517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1518 as_fn_set_status
$ac_retval
1522 # ac_fn_c_try_run LINENO
1523 # ----------------------
1524 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1525 # that executables *can* be run.
1528 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1529 if { { ac_try
="$ac_link"
1531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_link") 2>&5
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1540 { { case "(($ac_try" in
1541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1542 *) ac_try_echo
=$ac_try;;
1544 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_try") 2>&5
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; }; }; then :
1552 $as_echo "$as_me: program exited with status $ac_status" >&5
1553 $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.
$ac_ext >&5
1556 ac_retval
=$ac_status
1558 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560 as_fn_set_status
$ac_retval
1564 # ac_fn_cxx_try_link LINENO
1565 # -------------------------
1566 # Try to link conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_cxx_try_link
()
1569 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1570 rm -f conftest.
$ac_objext conftest
$ac_exeext
1571 if { { ac_try
="$ac_link"
1573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_link") 2>conftest.err
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_cxx_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest$ac_exeext && {
1590 test "$cross_compiling" = yes ||
1591 test -x conftest$ac_exeext
1595 $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1600 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1601 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1602 # interfere with the next link command; also delete a directory that is
1603 # left behind by Apple's compiler. We do this before executing the actions.
1604 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1608 } # ac_fn_cxx_try_link
1609 cat >config.log <<_ACEOF
1610 This file contains any messages produced by compilers while
1611 running configure, to aid debugging if configure makes a mistake.
1613 It was created by RISC-V ISA Simulator $as_me ?, which was
1614 generated by GNU Autoconf 2.69. Invocation command line was
1626 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1627 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1628 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1629 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1630 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1632 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1633 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1635 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1636 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1637 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1638 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1639 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1640 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1641 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 test -z "$as_dir" && as_dir=.
1650 $as_echo "PATH: $as_dir"
1666 # Keep a trace of the command line.
1667 # Strip out --no-create and --no-recursion so they do not pile up.
1668 # Strip out --silent because we don't want to record it for future runs.
1669 # Also quote any args containing shell meta-characters.
1670 # Make two passes to allow for proper duplicate-argument suppression.
1674 ac_must_keep_next=false
1680 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1682 | -silent | --silent | --silen | --sile | --sil)
1685 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1688 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1690 as_fn_append ac_configure_args1 " '$ac_arg'"
1691 if test $ac_must_keep_next = true; then
1692 ac_must_keep_next=false # Got value, back to normal.
1695 *=* | --config-cache | -C | -disable-* | --disable-* \
1696 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1697 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1698 | -with-* | --with-* | -without-* | --without-* | --x)
1699 case "$ac_configure_args0 " in
1700 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1703 -* ) ac_must_keep_next=true ;;
1706 as_fn_append ac_configure_args " '$ac_arg'"
1711 { ac_configure_args0=; unset ac_configure_args0;}
1712 { ac_configure_args1=; unset ac_configure_args1;}
1714 # When interrupted or exit'd, cleanup temporary files, and complete
1715 # config.log. We remove comments because anyway the quotes in there
1716 # would cause problems or look ugly.
1717 # WARNING: Use '\'' to represent an apostrophe within the trap.
1718 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1719 trap 'exit_status=$?
1720 # Save into config.log some information that might help in debugging.
1724 $as_echo "## ---------------- ##
1725 ## Cache variables. ##
1726 ## ---------------- ##"
1728 # The following way of writing the cache mishandles newlines in values,
1730 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1731 eval ac_val=\$$ac_var
1735 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1736 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1739 _ | IFS | as_nl) ;; #(
1740 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1741 *) { eval $ac_var=; unset $ac_var;} ;;
1746 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1747 *${as_nl}ac_space=\ *)
1749 "s/'\''/'\''\\\\'\'''\''/g;
1750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1753 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1760 $as_echo "## ----------------- ##
1761 ## Output variables. ##
1762 ## ----------------- ##"
1764 for ac_var in $ac_subst_vars
1766 eval ac_val=\$$ac_var
1768 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1770 $as_echo "$ac_var='\''$ac_val'\''"
1774 if test -n "$ac_subst_files"; then
1775 $as_echo "## ------------------- ##
1776 ## File substitutions. ##
1777 ## ------------------- ##"
1779 for ac_var in $ac_subst_files
1781 eval ac_val=\$$ac_var
1783 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1785 $as_echo "$ac_var='\''$ac_val'\''"
1790 if test -s confdefs.h; then
1791 $as_echo "## ----------- ##
1798 test "$ac_signal" != 0 &&
1799 $as_echo "$as_me: caught signal $ac_signal"
1800 $as_echo "$as_me: exit $exit_status"
1802 rm -f core *.core core.conftest.* &&
1803 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1806 for ac_signal in 1 2 13 15; do
1807 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1811 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1812 rm -f -r conftest* confdefs.h
1814 $as_echo "/* confdefs.h */" > confdefs.h
1816 # Predefined preprocessor variables.
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_NAME "$PACKAGE_NAME"
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_STRING "$PACKAGE_STRING"
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_URL "$PACKAGE_URL"
1843 # Let the site file select an alternate cache file if it wants to.
1844 # Prefer an explicitly selected file to automatically selected ones.
1847 if test -n "$CONFIG_SITE"; then
1848 # We do not want a PATH search for config.site.
1849 case $CONFIG_SITE in #((
1850 -*) ac_site_file1=./$CONFIG_SITE;;
1851 */*) ac_site_file1=$CONFIG_SITE;;
1852 *) ac_site_file1=./$CONFIG_SITE;;
1854 elif test "x$prefix" != xNONE; then
1855 ac_site_file1=$prefix/share/config.site
1856 ac_site_file2=$prefix/etc/config.site
1858 ac_site_file1=$ac_default_prefix/share/config.site
1859 ac_site_file2=$ac_default_prefix/etc/config.site
1861 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1863 test "x$ac_site_file" = xNONE && continue
1864 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1866 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1867 sed 's/^/| /' "$ac_site_file" >&5
1869 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1871 as_fn_error $? "failed to load site
script $ac_site_file
1872 See \
`config.log' for more details" "$LINENO" 5; }
1876 if test -r "$cache_file"; then
1877 # Some versions of bash will fail to source /dev/null (special files
1878 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1879 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1881 $as_echo "$as_me: loading cache $cache_file" >&6;}
1883 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1884 *) . "./$cache_file";;
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1889 $as_echo "$as_me: creating cache $cache_file" >&6;}
1893 # Check that the precious variables saved in the cache have kept the same
1895 ac_cache_corrupted=false
1896 for ac_var in $ac_precious_vars; do
1897 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1898 eval ac_new_set=\$ac_env_${ac_var}_set
1899 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1900 eval ac_new_val=\$ac_env_${ac_var}_value
1901 case $ac_old_set,$ac_new_set in
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1904 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1905 ac_cache_corrupted=: ;;
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
1908 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1909 ac_cache_corrupted=: ;;
1912 if test "x$ac_old_val" != "x$ac_new_val"; then
1913 # differences in whitespace do not lead to failure.
1914 ac_old_val_w=`echo x
$ac_old_val`
1915 ac_new_val_w=`echo x
$ac_new_val`
1916 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1918 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1919 ac_cache_corrupted=:
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1922 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1923 eval $ac_var=\$ac_old_val
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1926 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1928 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1931 # Pass precious variables to config.status.
1932 if test "$ac_new_set" = set; then
1934 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1935 *) ac_arg=$ac_var=$ac_new_val ;;
1937 case " $ac_configure_args " in
1938 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1939 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1943 if $ac_cache_corrupted; then
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
1945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1947 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1948 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
1950 ## -------------------- ##
1951 ## Main body of script. ##
1952 ## -------------------- ##
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1963 for ac_dir in scripts "$srcdir"/scripts; do
1964 if test -f "$ac_dir/install-sh"; then
1966 ac_install_sh="$ac_aux_dir/install-sh -c"
1968 elif test -f "$ac_dir/install.sh"; then
1970 ac_install_sh="$ac_aux_dir/install.sh -c"
1972 elif test -f "$ac_dir/shtool"; then
1974 ac_install_sh="$ac_aux_dir/shtool install -c"
1978 if test -z "$ac_aux_dir"; then
1979 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
1982 # These three variables are undocumented and unsupported,
1983 # and are intended to be withdrawn in a future Autoconf release.
1984 # They can cause serious problems if a builder's source tree is in a directory
1985 # whose full name contains unusual characters.
1986 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1987 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1988 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1991 # Make sure we can run config.sub.
1992 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1993 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1996 $as_echo_n "checking build system type... " >&6; }
1997 if ${ac_cv_build+:} false; then :
1998 $as_echo_n "(cached) " >&6
2000 ac_build_alias=$build_alias
2001 test "x$ac_build_alias" = x &&
2002 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2003 test "x$ac_build_alias" = x &&
2004 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2005 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2006 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2010 $as_echo "$ac_cv_build" >&6; }
2011 case $ac_cv_build in
2013 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2016 ac_save_IFS=$IFS; IFS='-'
2022 # Remember, the first character of IFS is used to create $*,
2023 # except with old shells:
2026 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2030 $as_echo_n "checking host system type... " >&6; }
2031 if ${ac_cv_host+:} false; then :
2032 $as_echo_n "(cached) " >&6
2034 if test "x$host_alias" = x; then
2035 ac_cv_host=$ac_cv_build
2037 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2038 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2043 $as_echo "$ac_cv_host" >&6; }
2046 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2049 ac_save_IFS=$IFS; IFS='-'
2055 # Remember, the first character of IFS is used to create $*,
2056 # except with old shells:
2059 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2063 #-------------------------------------------------------------------------
2064 # Checks for programs
2065 #-------------------------------------------------------------------------
2068 ac_cpp='$CPP $CPPFLAGS'
2069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2072 if test -n "$ac_tool_prefix"; then
2073 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2074 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2076 $as_echo_n "checking for $ac_word... " >&6; }
2077 if ${ac_cv_prog_CC+:} false; then :
2078 $as_echo_n "(cached) " >&6
2080 if test -n "$CC"; then
2081 ac_cv_prog_CC="$CC" # Let the user override the test.
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 test -z "$as_dir" && as_dir=.
2088 for ac_exec_ext in '' $ac_executable_extensions; do
2089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2101 if test -n "$CC"; then
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2103 $as_echo "$CC" >&6; }
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2106 $as_echo "no" >&6; }
2111 if test -z "$ac_cv_prog_CC"; then
2113 # Extract the first word of "gcc", so it can be a program name with args.
2114 set dummy gcc; ac_word=$2
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2116 $as_echo_n "checking for $ac_word... " >&6; }
2117 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2118 $as_echo_n "(cached) " >&6
2120 if test -n "$ac_ct_CC"; then
2121 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 test -z "$as_dir" && as_dir=.
2128 for ac_exec_ext in '' $ac_executable_extensions; do
2129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2130 ac_cv_prog_ac_ct_CC="gcc"
2131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2141 if test -n "$ac_ct_CC"; then
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2143 $as_echo "$ac_ct_CC" >&6; }
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2146 $as_echo "no" >&6; }
2149 if test "x$ac_ct_CC" = x; then
2152 case $cross_compiling:$ac_tool_warned in
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2156 ac_tool_warned=yes ;;
2164 if test -z "$CC"; then
2165 if test -n "$ac_tool_prefix"; then
2166 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2167 set dummy ${ac_tool_prefix}cc; ac_word=$2
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2169 $as_echo_n "checking for $ac_word... " >&6; }
2170 if ${ac_cv_prog_CC+:} false; then :
2171 $as_echo_n "(cached) " >&6
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC="$CC" # Let the user override the test.
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 test -z "$as_dir" && as_dir=.
2181 for ac_exec_ext in '' $ac_executable_extensions; do
2182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2183 ac_cv_prog_CC="${ac_tool_prefix}cc"
2184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 if test -n "$CC"; then
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2196 $as_echo "$CC" >&6; }
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2199 $as_echo "no" >&6; }
2205 if test -z "$CC"; then
2206 # Extract the first word of "cc", so it can be a program name with args.
2207 set dummy cc; ac_word=$2
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2209 $as_echo_n "checking for $ac_word... " >&6; }
2210 if ${ac_cv_prog_CC+:} false; then :
2211 $as_echo_n "(cached) " >&6
2213 if test -n "$CC"; then
2214 ac_cv_prog_CC="$CC" # Let the user override the test.
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221 test -z "$as_dir" && as_dir=.
2222 for ac_exec_ext in '' $ac_executable_extensions; do
2223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2224 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2225 ac_prog_rejected=yes
2229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 if test $ac_prog_rejected = yes; then
2237 # We found a bogon in the path, so make sure we never use it.
2238 set dummy $ac_cv_prog_CC
2240 if test $# != 0; then
2241 # We chose a different compiler from the bogus one.
2242 # However, it has the same basename, so the bogon will be chosen
2243 # first if we set CC to just the basename; use the full file name.
2245 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2251 if test -n "$CC"; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2253 $as_echo "$CC" >&6; }
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2256 $as_echo "no" >&6; }
2261 if test -z "$CC"; then
2262 if test -n "$ac_tool_prefix"; then
2263 for ac_prog in cl.exe
2265 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2266 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2268 $as_echo_n "checking for $ac_word... " >&6; }
2269 if ${ac_cv_prog_CC+:} false; then :
2270 $as_echo_n "(cached) " >&6
2272 if test -n "$CC"; then
2273 ac_cv_prog_CC="$CC" # Let the user override the test.
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2282 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 if test -n "$CC"; then
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2295 $as_echo "$CC" >&6; }
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2298 $as_echo "no" >&6; }
2302 test -n "$CC" && break
2305 if test -z "$CC"; then
2307 for ac_prog in cl.exe
2309 # Extract the first word of "$ac_prog", so it can be a program name with args.
2310 set dummy $ac_prog; ac_word=$2
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2312 $as_echo_n "checking for $ac_word... " >&6; }
2313 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2314 $as_echo_n "(cached) " >&6
2316 if test -n "$ac_ct_CC"; then
2317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2326 ac_cv_prog_ac_ct_CC="$ac_prog"
2327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2337 if test -n "$ac_ct_CC"; then
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2339 $as_echo "$ac_ct_CC" >&6; }
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2342 $as_echo "no" >&6; }
2346 test -n "$ac_ct_CC" && break
2349 if test "x$ac_ct_CC" = x; then
2352 case $cross_compiling:$ac_tool_warned in
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2356 ac_tool_warned=yes ;;
2365 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2367 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2368 See \
`config.log' for more details" "$LINENO" 5; }
2370 # Provide some information about the compiler.
2371 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2374 for ac_option in --version -v -V -qversion; do
2375 { { ac_try="$ac_compiler $ac_option >&5"
2377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2378 *) ac_try_echo
=$ac_try;;
2380 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2381 $as_echo "$ac_try_echo"; } >&5
2382 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2384 if test -s conftest.err
; then
2386 ... rest of stderr output deleted ...
2387 10q' conftest.err
>conftest.er1
2388 cat conftest.er1
>&5
2390 rm -f conftest.er1 conftest.err
2391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2392 test $ac_status = 0; }
2395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h. */
2406 ac_clean_files_save
=$ac_clean_files
2407 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2408 # Try to create an executable without -o first, disregard a.out.
2409 # It will help us diagnose broken compilers, and finding out an intuition
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2412 $as_echo_n "checking whether the C compiler works... " >&6; }
2413 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2415 # The possible output files:
2416 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2419 for ac_file
in $ac_files
2422 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2423 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2428 if { { ac_try
="$ac_link_default"
2430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2431 *) ac_try_echo=$ac_try;;
2433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2434 $as_echo "$ac_try_echo"; } >&5
2435 (eval "$ac_link_default") 2>&5
2437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2438 test $ac_status = 0; }; then :
2439 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2440 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2441 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2442 # so that the user can short-circuit this test for compilers unknown to
2444 for ac_file in $ac_files ''
2446 test -f "$ac_file" || continue
2448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2451 # We found the default executable, but exeext='' is most
2455 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2457 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2459 # We set ac_cv_exeext here because the later test for it is not
2460 # safe: cross compilers may not add the suffix if given an `-o'
2461 # argument, so we may need to know it at that point already.
2462 # Even if this section looks crufty: it has the advantage of
2469 test "$ac_cv_exeext" = no && ac_cv_exeext=
2474 if test -z "$ac_file"; then :
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2476 $as_echo "no" >&6; }
2477 $as_echo "$as_me: failed program was:" >&5
2478 sed 's
/^
/|
/' conftest.$ac_ext >&5
2480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2481 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2482 as_fn_error 77 "C compiler cannot create executables
2483 See \`config.log
' for more details" "$LINENO" 5; }
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2486 $as_echo "yes" >&6; }
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2489 $as_echo_n "checking for C compiler default output file name... " >&6; }
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2491 $as_echo "$ac_file" >&6; }
2492 ac_exeext=$ac_cv_exeext
2494 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2495 ac_clean_files=$ac_clean_files_save
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2497 $as_echo_n "checking for suffix of executables... " >&6; }
2498 if { { ac_try="$ac_link"
2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2504 $as_echo "$ac_try_echo"; } >&5
2505 (eval "$ac_link") 2>&5
2507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2508 test $ac_status = 0; }; then :
2509 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2510 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2511 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2513 for ac_file
in conftest.exe conftest conftest.
*; do
2514 test -f "$ac_file" ||
continue
2516 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2517 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2526 See \`config.log' for more details" "$LINENO" 5; }
2528 rm -f conftest conftest
$ac_cv_exeext
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2530 $as_echo "$ac_cv_exeext" >&6; }
2532 rm -f conftest.
$ac_ext
2533 EXEEXT
=$ac_cv_exeext
2535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2536 /* end confdefs.h. */
2541 FILE *f = fopen ("conftest.out", "w");
2542 return ferror (f) || fclose (f) != 0;
2548 ac_clean_files
="$ac_clean_files conftest.out"
2549 # Check that the compiler produces executables we can run. If not, either
2550 # the compiler is broken, or we cross compile.
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2552 $as_echo_n "checking whether we are cross compiling... " >&6; }
2553 if test "$cross_compiling" != yes; then
2554 { { ac_try
="$ac_link"
2556 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2557 *) ac_try_echo=$ac_try;;
2559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2560 $as_echo "$ac_try_echo"; } >&5
2561 (eval "$ac_link") 2>&5
2563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2564 test $ac_status = 0; }
2565 if { ac_try='./conftest$ac_cv_exeext'
2566 { { case "(($ac_try" in
2567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2568 *) ac_try_echo
=$ac_try;;
2570 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2571 $as_echo "$ac_try_echo"; } >&5
2572 (eval "$ac_try") 2>&5
2574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2575 test $ac_status = 0; }; }; then
2578 if test "$cross_compiling" = maybe
; then
2581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2583 as_fn_error $?
"cannot run C compiled programs.
2584 If you meant to cross compile, use \`--host'.
2585 See \`config.log' for more details" "$LINENO" 5; }
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2590 $as_echo "$cross_compiling" >&6; }
2592 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2593 ac_clean_files
=$ac_clean_files_save
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2595 $as_echo_n "checking for suffix of object files... " >&6; }
2596 if ${ac_cv_objext+:} false
; then :
2597 $as_echo_n "(cached) " >&6
2599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2600 /* end confdefs.h. */
2610 rm -f conftest.o conftest.obj
2611 if { { ac_try
="$ac_compile"
2613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2614 *) ac_try_echo=$ac_try;;
2616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2617 $as_echo "$ac_try_echo"; } >&5
2618 (eval "$ac_compile") 2>&5
2620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2621 test $ac_status = 0; }; then :
2622 for ac_file in conftest.o conftest.obj conftest.*; do
2623 test -f "$ac_file" || continue;
2625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2626 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2631 $as_echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2636 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2637 See \
`config.log' for more details" "$LINENO" 5; }
2639 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2642 $as_echo "$ac_cv_objext" >&6; }
2643 OBJEXT=$ac_cv_objext
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2646 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2647 if ${ac_cv_c_compiler_gnu+:} false; then :
2648 $as_echo_n "(cached) " >&6
2650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2651 /* end confdefs.h. */
2664 if ac_fn_c_try_compile "$LINENO"; then :
2669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2674 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2675 if test $ac_compiler_gnu = yes; then
2680 ac_test_CFLAGS=${CFLAGS+set}
2681 ac_save_CFLAGS=$CFLAGS
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2683 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2684 if ${ac_cv_prog_cc_g+:} false; then :
2685 $as_echo_n "(cached) " >&6
2687 ac_save_c_werror_flag=$ac_c_werror_flag
2688 ac_c_werror_flag=yes
2691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2692 /* end confdefs.h. */
2702 if ac_fn_c_try_compile "$LINENO"; then :
2706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707 /* end confdefs.h. */
2717 if ac_fn_c_try_compile "$LINENO"; then :
2720 ac_c_werror_flag=$ac_save_c_werror_flag
2722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2723 /* end confdefs.h. */
2733 if ac_fn_c_try_compile "$LINENO"; then :
2736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 ac_c_werror_flag=$ac_save_c_werror_flag
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2744 $as_echo "$ac_cv_prog_cc_g" >&6; }
2745 if test "$ac_test_CFLAGS" = set; then
2746 CFLAGS=$ac_save_CFLAGS
2747 elif test $ac_cv_prog_cc_g = yes; then
2748 if test "$GCC" = yes; then
2754 if test "$GCC" = yes; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2761 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2762 if ${ac_cv_prog_cc_c89+:} false; then :
2763 $as_echo_n "(cached) " >&6
2765 ac_cv_prog_cc_c89=no
2767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768 /* end confdefs.h. */
2772 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2773 struct buf { int x; };
2774 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2775 static char *e (p, i)
2781 static char *f (char * (*g) (char **, int), char **p, ...)
2786 s = g (p, va_arg (v,int));
2791 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2792 function prototypes and stuff, but not '\xHH' hex character constants.
2793 These don't provoke an error unfortunately, instead are silently treated
2794 as 'x'. The following induces an error, until -std is added to get
2795 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2796 array size at least. It's necessary to write '\x00'==0 to get something
2797 that's true only with -std. */
2798 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2800 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2801 inside strings and character constants. */
2803 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2805 int test (int i, double x);
2806 struct s1 {int (*f) (int a);};
2807 struct s2 {int (*f) (double a);};
2808 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2814 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2819 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2820 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2822 CC="$ac_save_CC $ac_arg"
2823 if ac_fn_c_try_compile "$LINENO"; then :
2824 ac_cv_prog_cc_c89=$ac_arg
2826 rm -f core conftest.err conftest.$ac_objext
2827 test "x$ac_cv_prog_cc_c89" != "xno" && break
2829 rm -f conftest.$ac_ext
2834 case "x$ac_cv_prog_cc_c89" in
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2837 $as_echo "none needed" >&6; } ;;
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2840 $as_echo "unsupported" >&6; } ;;
2842 CC="$CC $ac_cv_prog_cc_c89"
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2844 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2846 if test "x$ac_cv_prog_cc_c89" != xno; then :
2851 ac_cpp='$CPP $CPPFLAGS'
2852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2857 ac_cpp='$CXXCPP $CPPFLAGS'
2858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2861 if test -z "$CXX"; then
2862 if test -n "$CCC"; then
2865 if test -n "$ac_tool_prefix"; then
2866 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if ${ac_cv_prog_CXX+:} false; then :
2873 $as_echo_n "(cached) " >&6
2875 if test -n "$CXX"; then
2876 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 if test -n "$CXX"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2898 $as_echo "$CXX" >&6; }
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2905 test -n "$CXX" && break
2908 if test -z "$CXX"; then
2910 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2912 # Extract the first word of "$ac_prog", so it can be a program name with args.
2913 set dummy $ac_prog; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2917 $as_echo_n "(cached) " >&6
2919 if test -n "$ac_ct_CXX"; then
2920 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_ac_ct_CXX="$ac_prog"
2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2940 if test -n "$ac_ct_CXX"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2942 $as_echo "$ac_ct_CXX" >&6; }
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2949 test -n "$ac_ct_CXX" && break
2952 if test "x$ac_ct_CXX" = x; then
2955 case $cross_compiling:$ac_tool_warned in
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2959 ac_tool_warned=yes ;;
2967 # Provide some information about the compiler.
2968 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2971 for ac_option in --version -v -V -qversion; do
2972 { { ac_try="$ac_compiler $ac_option >&5"
2974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2975 *) ac_try_echo
=$ac_try;;
2977 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2978 $as_echo "$ac_try_echo"; } >&5
2979 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2981 if test -s conftest.err
; then
2983 ... rest of stderr output deleted ...
2984 10q' conftest.err
>conftest.er1
2985 cat conftest.er1
>&5
2987 rm -f conftest.er1 conftest.err
2988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2989 test $ac_status = 0; }
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2993 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2994 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
2995 $as_echo_n "(cached) " >&6
2997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2998 /* end confdefs.h. */
3011 if ac_fn_cxx_try_compile
"$LINENO"; then :
3016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3017 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3021 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3022 if test $ac_compiler_gnu = yes; then
3027 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3028 ac_save_CXXFLAGS
=$CXXFLAGS
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3030 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3031 if ${ac_cv_prog_cxx_g+:} false
; then :
3032 $as_echo_n "(cached) " >&6
3034 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3035 ac_cxx_werror_flag
=yes
3038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3039 /* end confdefs.h. */
3049 if ac_fn_cxx_try_compile
"$LINENO"; then :
3050 ac_cv_prog_cxx_g
=yes
3053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3054 /* end confdefs.h. */
3064 if ac_fn_cxx_try_compile
"$LINENO"; then :
3067 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3070 /* end confdefs.h. */
3080 if ac_fn_cxx_try_compile
"$LINENO"; then :
3081 ac_cv_prog_cxx_g
=yes
3083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3087 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3088 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3091 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3092 if test "$ac_test_CXXFLAGS" = set; then
3093 CXXFLAGS
=$ac_save_CXXFLAGS
3094 elif test $ac_cv_prog_cxx_g = yes; then
3095 if test "$GXX" = yes; then
3101 if test "$GXX" = yes; then
3108 ac_cpp
='$CPP $CPPFLAGS'
3109 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3110 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3111 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3113 if test -n "$ac_tool_prefix"; then
3114 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3115 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if ${ac_cv_prog_AR+:} false
; then :
3119 $as_echo_n "(cached) " >&6
3121 if test -n "$AR"; then
3122 ac_cv_prog_AR
="$AR" # Let the user override the test.
3124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3128 test -z "$as_dir" && as_dir
=.
3129 for ac_exec_ext
in '' $ac_executable_extensions; do
3130 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3131 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 if test -n "$AR"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3144 $as_echo "$AR" >&6; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3152 if test -z "$ac_cv_prog_AR"; then
3154 # Extract the first word of "ar", so it can be a program name with args.
3155 set dummy
ar; ac_word
=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
3159 $as_echo_n "(cached) " >&6
3161 if test -n "$ac_ct_AR"; then
3162 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
3164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3168 test -z "$as_dir" && as_dir
=.
3169 for ac_exec_ext
in '' $ac_executable_extensions; do
3170 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3171 ac_cv_prog_ac_ct_AR
="ar"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
3182 if test -n "$ac_ct_AR"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3184 $as_echo "$ac_ct_AR" >&6; }
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3190 if test "x$ac_ct_AR" = x
; then
3193 case $cross_compiling:$ac_tool_warned in
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3197 ac_tool_warned
=yes ;;
3205 if test -n "$ac_tool_prefix"; then
3206 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3207 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if ${ac_cv_prog_RANLIB+:} false
; then :
3211 $as_echo_n "(cached) " >&6
3213 if test -n "$RANLIB"; then
3214 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3220 test -z "$as_dir" && as_dir
=.
3221 for ac_exec_ext
in '' $ac_executable_extensions; do
3222 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3223 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 RANLIB
=$ac_cv_prog_RANLIB
3234 if test -n "$RANLIB"; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3236 $as_echo "$RANLIB" >&6; }
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3244 if test -z "$ac_cv_prog_RANLIB"; then
3245 ac_ct_RANLIB
=$RANLIB
3246 # Extract the first word of "ranlib", so it can be a program name with args.
3247 set dummy ranlib
; ac_word
=$2
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249 $as_echo_n "checking for $ac_word... " >&6; }
3250 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
3251 $as_echo_n "(cached) " >&6
3253 if test -n "$ac_ct_RANLIB"; then
3254 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3260 test -z "$as_dir" && as_dir
=.
3261 for ac_exec_ext
in '' $ac_executable_extensions; do
3262 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3263 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3274 if test -n "$ac_ct_RANLIB"; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3276 $as_echo "$ac_ct_RANLIB" >&6; }
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 $as_echo "no" >&6; }
3282 if test "x$ac_ct_RANLIB" = x
; then
3285 case $cross_compiling:$ac_tool_warned in
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3289 ac_tool_warned
=yes ;;
3291 RANLIB
=$ac_ct_RANLIB
3294 RANLIB
="$ac_cv_prog_RANLIB"
3298 #-------------------------------------------------------------------------
3299 # MCPPBS specific program checks
3300 #-------------------------------------------------------------------------
3301 # These macros check to see if we can do a stow-based install and also
3302 # check for an isa simulator suitable for running the unit test programs
3305 # Find a good install program. We prefer a C program (faster),
3306 # so one script is as good as another. But avoid the broken or
3307 # incompatible versions:
3308 # SysV /etc/install, /usr/sbin/install
3309 # SunOS /usr/etc/install
3310 # IRIX /sbin/install
3312 # AmigaOS /C/install, which installs bootblocks on floppy discs
3313 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3314 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3315 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3316 # OS/2's system install, which has a completely different semantic
3317 # ./install, which can be erroneously created by make from ./install.sh.
3318 # Reject install programs that cannot install multiple files.
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3320 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3321 if test -z "$INSTALL"; then
3322 if ${ac_cv_path_install+:} false
; then :
3323 $as_echo_n "(cached) " >&6
3325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3329 test -z "$as_dir" && as_dir
=.
3330 # Account for people who put trailing slashes in PATH elements.
3331 case $as_dir/ in #((
3332 .
/ | .
// |
/[cC
]/* | \
3333 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3334 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3337 # OSF1 and SCO ODT 3.0 have their own names for install.
3338 # Don't use installbsd from OSF since it installs stuff as root
3340 for ac_prog
in ginstall scoinst
install; do
3341 for ac_exec_ext
in '' $ac_executable_extensions; do
3342 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
3343 if test $ac_prog = install &&
3344 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3345 # AIX install. It has an incompatible calling convention.
3347 elif test $ac_prog = install &&
3348 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3349 # program-specific install script used by HP pwplus--don't use.
3352 rm -rf conftest.one conftest.two conftest.dir
3353 echo one
> conftest.one
3354 echo two
> conftest.two
3356 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3357 test -s conftest.one
&& test -s conftest.two
&&
3358 test -s conftest.dir
/conftest.one
&&
3359 test -s conftest.dir
/conftest.two
3361 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3374 rm -rf conftest.one conftest.two conftest.dir
3377 if test "${ac_cv_path_install+set}" = set; then
3378 INSTALL
=$ac_cv_path_install
3380 # As a last resort, use the slow shell script. Don't cache a
3381 # value for INSTALL within a source directory, because that will
3382 # break other packages using the cache if that directory is
3383 # removed, or if the value is a relative name.
3384 INSTALL
=$ac_install_sh
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3388 $as_echo "$INSTALL" >&6; }
3390 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3391 # It thinks the first close brace ends the variable substitution.
3392 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3394 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3396 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3400 # Configure command line option
3402 # Check whether --enable-stow was given.
3403 if test "${enable_stow+set}" = set; then :
3404 enableval
=$enable_stow; enable_stow
="yes"
3412 # Environment variables
3417 # Check for install script
3421 # Deterimine if native build and set prefix appropriately
3423 if test ${enable_stow} = "yes" ; then :
3427 # Extract the first word of "$ac_prog", so it can be a program name with args.
3428 set dummy
$ac_prog; ac_word
=$2
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430 $as_echo_n "checking for $ac_word... " >&6; }
3431 if ${ac_cv_prog_stow+:} false
; then :
3432 $as_echo_n "(cached) " >&6
3434 if test -n "$stow"; then
3435 ac_cv_prog_stow
="$stow" # Let the user override the test.
3437 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3441 test -z "$as_dir" && as_dir
=.
3442 for ac_exec_ext
in '' $ac_executable_extensions; do
3443 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3444 ac_cv_prog_stow
="$ac_prog"
3445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 stow
=$ac_cv_prog_stow
3455 if test -n "$stow"; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stow" >&5
3457 $as_echo "$stow" >&6; }
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3464 test -n "$stow" && break
3466 test -n "$stow" || stow
="no"
3468 if test ${stow} = "no" ; then :
3470 as_fn_error $?
"Cannot use --enable-stow since stow is not available" "$LINENO" 5
3474 # Check if native or non-native build
3476 if test "${build}" = "${host}" ; then :
3479 # build == host so this is a native build. Make sure --prefix not
3480 # set and $STOW_PREFIX is set, then set prefix=$STOW_PREFIX.
3482 if test "${prefix}" = "NONE" && test -n "${STOW_PREFIX}" ; then :
3484 prefix
="${STOW_PREFIX}"
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_PREFIX from environment" >&5
3486 $as_echo "$as_me: Using \$STOW_PREFIX from environment" >&6;}
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
3488 $as_echo "$as_me: prefix=${prefix}" >&6;}
3496 # build != host so this is a non-native build. Make sure --prefix
3497 # not set and $STOW_ROOT is set, then set
3498 # prefix=$STOW_ROOT/${host_alias}.
3500 if test "${prefix}" = "NONE" && test -n "${STOW_ROOT}" ; then :
3502 prefix
="${STOW_ROOT}/${host_alias}"
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_ROOT from environment" >&5
3504 $as_echo "$as_me: Using \$STOW_ROOT from environment" >&6;}
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
3506 $as_echo "$as_me: prefix=${prefix}" >&6;}
3518 #-------------------------------------------------------------------------
3519 # Checks for header files
3520 #-------------------------------------------------------------------------
3524 ac_cpp
='$CPP $CPPFLAGS'
3525 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3529 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3530 # On Suns, sometimes $CPP names a directory.
3531 if test -n "$CPP" && test -d "$CPP"; then
3534 if test -z "$CPP"; then
3535 if ${ac_cv_prog_CPP+:} false
; then :
3536 $as_echo_n "(cached) " >&6
3538 # Double quotes because CPP needs to be expanded
3539 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3542 for ac_c_preproc_warn_flag
in '' yes
3544 # Use a header file that comes with gcc, so configuring glibc
3545 # with a fresh cross-compiler works.
3546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3547 # <limits.h> exists even on freestanding compilers.
3548 # On the NeXT, cc -E runs the code through the compiler's parser,
3549 # not just through cpp. "Syntax error" is here to catch this case.
3550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3553 # include <limits.h>
3555 # include <assert.h>
3559 if ac_fn_c_try_cpp
"$LINENO"; then :
3562 # Broken: fails on valid input.
3565 rm -f conftest.err conftest.i conftest.
$ac_ext
3567 # OK, works on sane cases. Now check whether nonexistent headers
3568 # can be detected and how.
3569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3571 #include <ac_nonexistent.h>
3573 if ac_fn_c_try_cpp
"$LINENO"; then :
3574 # Broken: success on invalid input.
3577 # Passes both tests.
3581 rm -f conftest.err conftest.i conftest.
$ac_ext
3584 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3585 rm -f conftest.i conftest.err conftest.
$ac_ext
3586 if $ac_preproc_ok; then :
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3599 $as_echo "$CPP" >&6; }
3601 for ac_c_preproc_warn_flag
in '' yes
3603 # Use a header file that comes with gcc, so configuring glibc
3604 # with a fresh cross-compiler works.
3605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3606 # <limits.h> exists even on freestanding compilers.
3607 # On the NeXT, cc -E runs the code through the compiler's parser,
3608 # not just through cpp. "Syntax error" is here to catch this case.
3609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3610 /* end confdefs.h. */
3612 # include <limits.h>
3614 # include <assert.h>
3618 if ac_fn_c_try_cpp
"$LINENO"; then :
3621 # Broken: fails on valid input.
3624 rm -f conftest.err conftest.i conftest.
$ac_ext
3626 # OK, works on sane cases. Now check whether nonexistent headers
3627 # can be detected and how.
3628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3630 #include <ac_nonexistent.h>
3632 if ac_fn_c_try_cpp
"$LINENO"; then :
3633 # Broken: success on invalid input.
3636 # Passes both tests.
3640 rm -f conftest.err conftest.i conftest.
$ac_ext
3643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3644 rm -f conftest.i conftest.err conftest.
$ac_ext
3645 if $ac_preproc_ok; then :
3648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3650 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3651 See \`config.log' for more details" "$LINENO" 5; }
3655 ac_cpp
='$CPP $CPPFLAGS'
3656 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3657 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3658 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3662 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3663 if ${ac_cv_path_GREP+:} false
; then :
3664 $as_echo_n "(cached) " >&6
3666 if test -z "$GREP"; then
3667 ac_path_GREP_found
=false
3668 # Loop through the user's path and test for each of PROGNAME-LIST
3669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3670 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3673 test -z "$as_dir" && as_dir
=.
3674 for ac_prog
in grep ggrep
; do
3675 for ac_exec_ext
in '' $ac_executable_extensions; do
3676 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3677 as_fn_executable_p
"$ac_path_GREP" ||
continue
3678 # Check for GNU ac_path_GREP and select it if it is found.
3679 # Check for GNU $ac_path_GREP
3680 case `"$ac_path_GREP" --version 2>&1` in
3682 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3685 $as_echo_n 0123456789 >"conftest.in"
3688 cat "conftest.in" "conftest.in" >"conftest.tmp"
3689 mv "conftest.tmp" "conftest.in"
3690 cp "conftest.in" "conftest.nl"
3691 $as_echo 'GREP' >> "conftest.nl"
3692 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3693 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3694 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3695 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3696 # Best one so far, save it but keep looking for a better one
3697 ac_cv_path_GREP
="$ac_path_GREP"
3698 ac_path_GREP_max
=$ac_count
3700 # 10*(2^10) chars as input seems more than enough
3701 test $ac_count -gt 10 && break
3703 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3706 $ac_path_GREP_found && break 3
3711 if test -z "$ac_cv_path_GREP"; then
3712 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3715 ac_cv_path_GREP
=$GREP
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3720 $as_echo "$ac_cv_path_GREP" >&6; }
3721 GREP
="$ac_cv_path_GREP"
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3725 $as_echo_n "checking for egrep... " >&6; }
3726 if ${ac_cv_path_EGREP+:} false
; then :
3727 $as_echo_n "(cached) " >&6
3729 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3730 then ac_cv_path_EGREP
="$GREP -E"
3732 if test -z "$EGREP"; then
3733 ac_path_EGREP_found
=false
3734 # Loop through the user's path and test for each of PROGNAME-LIST
3735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3736 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3739 test -z "$as_dir" && as_dir
=.
3740 for ac_prog
in egrep; do
3741 for ac_exec_ext
in '' $ac_executable_extensions; do
3742 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3743 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3744 # Check for GNU ac_path_EGREP and select it if it is found.
3745 # Check for GNU $ac_path_EGREP
3746 case `"$ac_path_EGREP" --version 2>&1` in
3748 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3751 $as_echo_n 0123456789 >"conftest.in"
3754 cat "conftest.in" "conftest.in" >"conftest.tmp"
3755 mv "conftest.tmp" "conftest.in"
3756 cp "conftest.in" "conftest.nl"
3757 $as_echo 'EGREP' >> "conftest.nl"
3758 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3759 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3760 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3761 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3762 # Best one so far, save it but keep looking for a better one
3763 ac_cv_path_EGREP
="$ac_path_EGREP"
3764 ac_path_EGREP_max
=$ac_count
3766 # 10*(2^10) chars as input seems more than enough
3767 test $ac_count -gt 10 && break
3769 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3772 $ac_path_EGREP_found && break 3
3777 if test -z "$ac_cv_path_EGREP"; then
3778 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3781 ac_cv_path_EGREP
=$EGREP
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3787 $as_echo "$ac_cv_path_EGREP" >&6; }
3788 EGREP
="$ac_cv_path_EGREP"
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3792 $as_echo_n "checking for ANSI C header files... " >&6; }
3793 if ${ac_cv_header_stdc+:} false
; then :
3794 $as_echo_n "(cached) " >&6
3796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3811 if ac_fn_c_try_compile
"$LINENO"; then :
3812 ac_cv_header_stdc
=yes
3814 ac_cv_header_stdc
=no
3816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3818 if test $ac_cv_header_stdc = yes; then
3819 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3826 $EGREP "memchr" >/dev
/null
2>&1; then :
3829 ac_cv_header_stdc
=no
3835 if test $ac_cv_header_stdc = yes; then
3836 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3843 $EGREP "free" >/dev
/null
2>&1; then :
3846 ac_cv_header_stdc
=no
3852 if test $ac_cv_header_stdc = yes; then
3853 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3854 if test "$cross_compiling" = yes; then :
3857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3861 #if ((' ' & 0x0FF) == 0x020)
3862 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3863 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3865 # define ISLOWER(c) \
3866 (('a' <= (c) && (c) <= 'i') \
3867 || ('j' <= (c) && (c) <= 'r') \
3868 || ('s' <= (c) && (c) <= 'z'))
3869 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3872 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3877 for (i = 0; i < 256; i++)
3878 if (XOR (islower (i), ISLOWER (i))
3879 || toupper (i) != TOUPPER (i))
3884 if ac_fn_c_try_run
"$LINENO"; then :
3887 ac_cv_header_stdc
=no
3889 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3890 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3896 $as_echo "$ac_cv_header_stdc" >&6; }
3897 if test $ac_cv_header_stdc = yes; then
3899 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3904 #-------------------------------------------------------------------------
3905 # Default compiler flags
3906 #-------------------------------------------------------------------------
3908 CFLAGS
="-Wall -Wno-unused -O2"
3910 CXXFLAGS
="-Wall -Wno-unused -O2 -std=c++11"
3913 #-------------------------------------------------------------------------
3914 # MCPPBS subproject list
3915 #-------------------------------------------------------------------------
3916 # Order list so that subprojects only depend on those listed earlier.
3917 # The '*' suffix indicates an optional subproject. The '**' suffix
3918 # indicates an optional subproject which is also the name of a group.
3923 # Add command line argument to enable all optional subprojects
3925 # Check whether --enable-optional-subprojects was given.
3926 if test "${enable_optional_subprojects+set}" = set; then :
3927 enableval
=$enable_optional_subprojects;
3931 # Loop through the subprojects given in the macro argument
3935 # Determine if this is a required or an optional subproject
3939 # Determine if there is a group with the same name
3943 # Create variations of the subproject name suitable for use as a CPP
3944 # enabled define, a shell enabled variable, and a shell function
3956 # Add subproject to our running list
3958 subprojects
="$subprojects riscv"
3960 # Process the subproject appropriately. If enabled add it to the
3961 # $enabled_subprojects running shell variable, set a
3962 # SUBPROJECT_ENABLED C define, and include the appropriate
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : riscv" >&5
3967 $as_echo "$as_me: configuring default subproject : riscv" >&6;}
3968 ac_config_files
="$ac_config_files riscv.mk:riscv/riscv.mk.in"
3970 enable_riscv_sproj
="yes"
3971 subprojects_enabled
="$subprojects_enabled riscv"
3973 $as_echo "#define RISCV_ENABLED /**/" >>confdefs.h
3976 ac_cpp
='$CXXCPP $CPPFLAGS'
3977 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3983 # Check whether --with-fesvr was given.
3984 if test "${with_fesvr+set}" = set; then :
3985 withval
=$with_fesvr;
3986 LDFLAGS
="-L$withval/lib $LDFLAGS"
3987 CPPFLAGS
="-I$withval/include $CPPFLAGS"
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfesvr_is_present in -lfesvr" >&5
3994 $as_echo_n "checking for libfesvr_is_present in -lfesvr... " >&6; }
3995 if ${ac_cv_lib_fesvr_libfesvr_is_present+:} false
; then :
3996 $as_echo_n "(cached) " >&6
3998 ac_check_lib_save_LIBS
=$LIBS
3999 LIBS
="-lfesvr -pthread $LIBS"
4000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4003 /* Override any GCC internal prototype to avoid an error.
4004 Use char because int might match the return type of a GCC
4005 builtin and then its argument prototype would still apply. */
4009 char libfesvr_is_present ();
4013 return libfesvr_is_present ();
4018 if ac_fn_cxx_try_link
"$LINENO"; then :
4019 ac_cv_lib_fesvr_libfesvr_is_present
=yes
4021 ac_cv_lib_fesvr_libfesvr_is_present
=no
4023 rm -f core conftest.err conftest.
$ac_objext \
4024 conftest
$ac_exeext conftest.
$ac_ext
4025 LIBS
=$ac_check_lib_save_LIBS
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fesvr_libfesvr_is_present" >&5
4028 $as_echo "$ac_cv_lib_fesvr_libfesvr_is_present" >&6; }
4029 if test "x$ac_cv_lib_fesvr_libfesvr_is_present" = xyes
; then :
4030 cat >>confdefs.h
<<_ACEOF
4031 #define HAVE_LIBFESVR 1
4034 LIBS
="-lfesvr $LIBS"
4037 as_fn_error $?
"libfesvr is required" "$LINENO" 5
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
4042 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
4043 if ${ac_cv_lib_pthread_pthread_create+:} false
; then :
4044 $as_echo_n "(cached) " >&6
4046 ac_check_lib_save_LIBS
=$LIBS
4047 LIBS
="-lpthread $LIBS"
4048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4051 /* Override any GCC internal prototype to avoid an error.
4052 Use char because int might match the return type of a GCC
4053 builtin and then its argument prototype would still apply. */
4057 char pthread_create ();
4061 return pthread_create ();
4066 if ac_fn_cxx_try_link
"$LINENO"; then :
4067 ac_cv_lib_pthread_pthread_create
=yes
4069 ac_cv_lib_pthread_pthread_create
=no
4071 rm -f core conftest.err conftest.
$ac_objext \
4072 conftest
$ac_exeext conftest.
$ac_ext
4073 LIBS
=$ac_check_lib_save_LIBS
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
4076 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
4077 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
; then :
4078 cat >>confdefs.h
<<_ACEOF
4079 #define HAVE_LIBPTHREAD 1
4082 LIBS
="-lpthread $LIBS"
4085 as_fn_error $?
"libpthread is required" "$LINENO" 5
4089 # Check whether --enable-fpu was given.
4090 if test "${enable_fpu+set}" = set; then :
4091 enableval
=$enable_fpu;
4094 if test "x$enable_fpu" != "xno"; then :
4097 $as_echo "#define RISCV_ENABLE_FPU /**/" >>confdefs.h
4102 # Check whether --enable-rvc was given.
4103 if test "${enable_rvc+set}" = set; then :
4104 enableval
=$enable_rvc;
4107 if test "x$enable_rvc" != "xno"; then :
4110 $as_echo "#define RISCV_ENABLE_RVC /**/" >>confdefs.h
4115 # Check whether --enable-64bit was given.
4116 if test "${enable_64bit+set}" = set; then :
4117 enableval
=$enable_64bit;
4120 if test "x$enable_64bit" != "xno"; then :
4123 $as_echo "#define RISCV_ENABLE_64BIT /**/" >>confdefs.h
4128 # Check whether --enable-commitlog was given.
4129 if test "${enable_commitlog+set}" = set; then :
4130 enableval
=$enable_commitlog;
4133 if test "x$enable_commitlog" = "xyes"; then :
4136 $as_echo "#define RISCV_ENABLE_COMMITLOG /**/" >>confdefs.h
4141 # Check whether --enable-histogram was given.
4142 if test "${enable_histogram+set}" = set; then :
4143 enableval
=$enable_histogram;
4146 if test "x$enable_histogram" = "xyes"; then :
4149 $as_echo "#define RISCV_ENABLE_HISTOGRAM /**/" >>confdefs.h
4158 # Determine if this is a required or an optional subproject
4162 # Determine if there is a group with the same name
4166 # Create variations of the subproject name suitable for use as a CPP
4167 # enabled define, a shell enabled variable, and a shell function
4179 # Add subproject to our running list
4181 subprojects
="$subprojects hwacha"
4183 # Process the subproject appropriately. If enabled add it to the
4184 # $enabled_subprojects running shell variable, set a
4185 # SUBPROJECT_ENABLED C define, and include the appropriate
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : hwacha" >&5
4190 $as_echo "$as_me: configuring default subproject : hwacha" >&6;}
4191 ac_config_files
="$ac_config_files hwacha.mk:hwacha/hwacha.mk.in"
4193 enable_hwacha_sproj
="yes"
4194 subprojects_enabled
="$subprojects_enabled hwacha"
4196 $as_echo "#define HWACHA_ENABLED /**/" >>confdefs.h
4203 # Determine if this is a required or an optional subproject
4207 # Determine if there is a group with the same name
4211 # Create variations of the subproject name suitable for use as a CPP
4212 # enabled define, a shell enabled variable, and a shell function
4224 # Add subproject to our running list
4226 subprojects
="$subprojects dummy_rocc"
4228 # Process the subproject appropriately. If enabled add it to the
4229 # $enabled_subprojects running shell variable, set a
4230 # SUBPROJECT_ENABLED C define, and include the appropriate
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : dummy_rocc" >&5
4235 $as_echo "$as_me: configuring default subproject : dummy_rocc" >&6;}
4236 ac_config_files
="$ac_config_files dummy_rocc.mk:dummy_rocc/dummy_rocc.mk.in"
4238 enable_dummy_rocc_sproj
="yes"
4239 subprojects_enabled
="$subprojects_enabled dummy_rocc"
4241 $as_echo "#define DUMMY_ROCC_ENABLED /**/" >>confdefs.h
4248 # Determine if this is a required or an optional subproject
4252 # Determine if there is a group with the same name
4256 # Create variations of the subproject name suitable for use as a CPP
4257 # enabled define, a shell enabled variable, and a shell function
4269 # Add subproject to our running list
4271 subprojects
="$subprojects softfloat"
4273 # Process the subproject appropriately. If enabled add it to the
4274 # $enabled_subprojects running shell variable, set a
4275 # SUBPROJECT_ENABLED C define, and include the appropriate
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : softfloat" >&5
4280 $as_echo "$as_me: configuring default subproject : softfloat" >&6;}
4281 ac_config_files
="$ac_config_files softfloat.mk:softfloat/softfloat.mk.in"
4283 enable_softfloat_sproj
="yes"
4284 subprojects_enabled
="$subprojects_enabled softfloat"
4286 $as_echo "#define SOFTFLOAT_ENABLED /**/" >>confdefs.h
4293 # Determine if this is a required or an optional subproject
4297 # Determine if there is a group with the same name
4301 # Create variations of the subproject name suitable for use as a CPP
4302 # enabled define, a shell enabled variable, and a shell function
4314 # Add subproject to our running list
4316 subprojects
="$subprojects spike_main"
4318 # Process the subproject appropriately. If enabled add it to the
4319 # $enabled_subprojects running shell variable, set a
4320 # SUBPROJECT_ENABLED C define, and include the appropriate
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : spike_main" >&5
4325 $as_echo "$as_me: configuring default subproject : spike_main" >&6;}
4326 ac_config_files
="$ac_config_files spike_main.mk:spike_main/spike_main.mk.in"
4328 enable_spike_main_sproj
="yes"
4329 subprojects_enabled
="$subprojects_enabled spike_main"
4331 $as_echo "#define SPIKE_MAIN_ENABLED /**/" >>confdefs.h
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4334 $as_echo_n "checking for library containing dlopen... " >&6; }
4335 if ${ac_cv_search_dlopen+:} false
; then :
4336 $as_echo_n "(cached) " >&6
4338 ac_func_search_save_LIBS
=$LIBS
4339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4342 /* Override any GCC internal prototype to avoid an error.
4343 Use char because int might match the return type of a GCC
4344 builtin and then its argument prototype would still apply. */
4357 for ac_lib
in '' dl dld
; do
4358 if test -z "$ac_lib"; then
4359 ac_res
="none required"
4362 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4364 if ac_fn_cxx_try_link
"$LINENO"; then :
4365 ac_cv_search_dlopen
=$ac_res
4367 rm -f core conftest.err conftest.
$ac_objext \
4369 if ${ac_cv_search_dlopen+:} false
; then :
4373 if ${ac_cv_search_dlopen+:} false
; then :
4376 ac_cv_search_dlopen
=no
4379 LIBS
=$ac_func_search_save_LIBS
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4382 $as_echo "$ac_cv_search_dlopen" >&6; }
4383 ac_res
=$ac_cv_search_dlopen
4384 if test "$ac_res" != no
; then :
4385 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4389 as_fn_error $?
"unable to find the dlopen() function" "$LINENO" 5
4398 # Output make variables
4405 #-------------------------------------------------------------------------
4406 # MCPPBS subproject groups
4407 #-------------------------------------------------------------------------
4408 # If a group has the same name as a subproject then you must add the
4409 # '**' suffix in the subproject list above. The list of subprojects in a
4410 # group should be ordered so that subprojets only depend on those listed
4411 # earlier. Here is an example:
4413 # MCPPBS_GROUP( [group-name], [sproja,sprojb,...] )
4416 #-------------------------------------------------------------------------
4418 #-------------------------------------------------------------------------
4420 ac_config_headers
="$ac_config_headers config.h"
4422 ac_config_files
="$ac_config_files Makefile"
4424 cat >confcache
<<\_ACEOF
4425 # This file is a shell script that caches the results of configure
4426 # tests run on this system so they can be shared between configure
4427 # scripts and configure runs, see configure's option --config-cache.
4428 # It is not useful on other systems. If it contains results you don't
4429 # want to keep, you may remove or edit it.
4431 # config.status only pays attention to the cache file if you give it
4432 # the --recheck option to rerun configure.
4434 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4435 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4440 # The following way of writing the cache mishandles newlines in values,
4441 # but we know of no workaround that is simple, portable, and efficient.
4442 # So, we kill variables containing newlines.
4443 # Ultrix sh set writes to stderr and can't be redirected directly,
4444 # and sets the high bit in the cache file unless we assign to the vars.
4446 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4447 eval ac_val
=\$
$ac_var
4451 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4452 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4455 _ | IFS | as_nl
) ;; #(
4456 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
4457 *) { eval $ac_var=; unset $ac_var;} ;;
4463 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4464 *${as_nl}ac_space
=\
*)
4465 # `set' does not quote correctly, so add quotes: double-quote
4466 # substitution turns \\\\ into \\, and sed turns \\ into \.
4469 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4472 # `set' quotes correctly as required by POSIX, so do not add quotes.
4473 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4482 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4484 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4486 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
4487 if test -w "$cache_file"; then
4488 if test "x$cache_file" != "x/dev/null"; then
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4490 $as_echo "$as_me: updating cache $cache_file" >&6;}
4491 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
4492 cat confcache
>"$cache_file"
4494 case $cache_file in #(
4496 mv -f confcache
"$cache_file"$$
&&
4497 mv -f "$cache_file"$$
"$cache_file" ;; #(
4499 mv -f confcache
"$cache_file" ;;
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4505 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4510 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4511 # Let make expand exec_prefix.
4512 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4514 DEFS
=-DHAVE_CONFIG_H
4519 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4520 # 1. Remove the extension, and $U if already installed.
4521 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
4522 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
4523 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4524 # will be set to the directory where LIBOBJS objects are built.
4525 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4526 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
4530 LTLIBOBJS
=$ac_ltlibobjs
4534 : "${CONFIG_STATUS=./config.status}"
4536 ac_clean_files_save
=$ac_clean_files
4537 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4539 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4541 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4543 # Generated by $as_me.
4544 # Run this file to recreate the current configuration.
4545 # Compiler output produced by configure, useful for debugging
4546 # configure, is in config.log if it exists.
4552 SHELL=\${CONFIG_SHELL-$SHELL}
4555 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
4556 ## -------------------- ##
4557 ## M4sh Initialization. ##
4558 ## -------------------- ##
4560 # Be more Bourne compatible
4561 DUALCASE
=1; export DUALCASE
# for MKS sh
4562 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
4565 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4566 # is contrary to our usage. Disable this feature.
4567 alias -g '${1+"$@"}'='"$@"'
4568 setopt NO_GLOB_SUBST
4570 case `(set -o) 2>/dev/null` in #(
4582 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4583 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4584 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4585 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4586 # Prefer a ksh shell builtin over an external printf program on Solaris,
4587 # but without wasting forks for bash or zsh.
4588 if test -z "$BASH_VERSION$ZSH_VERSION" \
4589 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4590 as_echo='print
-r --'
4591 as_echo_n='print
-rn --'
4592 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4593 as_echo='printf %s
\n'
4594 as_echo_n='printf %s
'
4596 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4597 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
4598 as_echo_n='/usr
/ucb
/echo -n'
4600 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4601 as_echo_n_body='eval
4605 expr "X$arg" : "X\\(.*\\)$as_nl";
4606 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4608 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
4610 export as_echo_n_body
4611 as_echo_n='sh
-c $as_echo_n_body as_echo
'
4614 as_echo='sh
-c $as_echo_body as_echo
'
4617 # The user is always right.
4618 if test "${PATH_SEPARATOR+set}" != set; then
4620 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4621 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4628 # We need space, tab and new line, in precisely that order. Quoting is
4629 # there to prevent editors from complaining about space-tab.
4630 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4631 # splitting by setting IFS to empty value.)
4634 # Find who we are. Look in the path if we contain no directory separator.
4637 *[\\/]* ) as_myself=$0 ;;
4638 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 test -z "$as_dir" && as_dir=.
4643 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4649 # We did not find ourselves, most probably we were run as `sh COMMAND'
4650 # in which case we are not to be found in the path.
4651 if test "x$as_myself" = x
; then
4654 if test ! -f "$as_myself"; then
4655 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4659 # Unset variables that we do not need and which cause bugs (e.g. in
4660 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4661 # suppresses any "Segmentation fault" message there. '((' could
4662 # trigger a bug in pdksh 5.2.14.
4663 for as_var
in BASH_ENV ENV MAIL MAILPATH
4664 do eval test x\
${$as_var+set} = xset \
4665 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
4678 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
4681 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4682 # ----------------------------------------
4683 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4684 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4685 # script with STATUS, using 1 if that was 0.
4688 as_status
=$1; test $as_status -eq 0 && as_status
=1
4690 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
4691 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4693 $as_echo "$as_me: error: $2" >&2
4694 as_fn_exit
$as_status
4698 # as_fn_set_status STATUS
4699 # -----------------------
4700 # Set $? to STATUS, without forking.
4704 } # as_fn_set_status
4708 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4718 # Portably unset VAR.
4721 { eval $1=; unset $1;}
4723 as_unset
=as_fn_unset
4724 # as_fn_append VAR VALUE
4725 # ----------------------
4726 # Append the text in VALUE to the end of the definition contained in VAR. Take
4727 # advantage of any shell optimizations that allow amortized linear growth over
4728 # repeated appends, instead of the typical quadratic growth present in naive
4730 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
4731 eval 'as_fn_append ()
4742 # as_fn_arith ARG...
4743 # ------------------
4744 # Perform arithmetic evaluation on the ARGs, and store the result in the
4745 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4746 # must be portable across $(()) and expr.
4747 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
4748 eval 'as_fn_arith ()
4755 as_val
=`expr "$@" || test $? -eq 1`
4760 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
4761 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
4767 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4768 as_basename
=basename
4773 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
4779 as_me
=`$as_basename -- "$0" ||
4780 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4781 X"$0" : 'X\(//\)$' \| \
4782 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4784 sed '/^.*\/\([^/][^/]*\)\/*$/{
4798 # Avoid depending upon Character Ranges.
4799 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4800 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4801 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4802 as_cr_digits
='0123456789'
4803 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4805 ECHO_C
= ECHO_N
= ECHO_T
=
4806 case `echo -n x` in #(((((
4808 case `echo 'xy\c'` in
4809 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
4811 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
4818 rm -f conf$$ conf$$.exe conf$$.
file
4819 if test -d conf$$.dir
; then
4820 rm -f conf$$.dir
/conf$$.
file
4823 mkdir conf$$.dir
2>/dev
/null
4825 if (echo >conf$$.
file) 2>/dev
/null
; then
4826 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4828 # ... but there are two gotchas:
4829 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4830 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4831 # In both cases, we have to default to `cp -pR'.
4832 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
4834 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4842 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
4843 rmdir conf$$.dir
2>/dev
/null
4848 # Create "$as_dir" as a directory, including parents if necessary.
4853 -*) as_dir
=.
/$as_dir;;
4855 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
4859 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4860 *) as_qdir
=$as_dir;;
4862 as_dirs
="'$as_qdir' $as_dirs"
4863 as_dir
=`$as_dirname -- "$as_dir" ||
4864 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4865 X"$as_dir" : 'X\(//\)[^/]' \| \
4866 X"$as_dir" : 'X\(//\)$' \| \
4867 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4868 $as_echo X"$as_dir" |
4869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4886 test -d "$as_dir" && break
4888 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
4889 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
4893 if mkdir
-p .
2>/dev
/null
; then
4894 as_mkdir_p
='mkdir -p "$as_dir"'
4896 test -d .
/-p && rmdir .
/-p
4901 # as_fn_executable_p FILE
4902 # -----------------------
4903 # Test if FILE is an executable regular file.
4904 as_fn_executable_p
()
4906 test -f "$1" && test -x "$1"
4907 } # as_fn_executable_p
4909 as_executable_p
=as_fn_executable_p
4911 # Sed expression to map a string onto a valid CPP name.
4912 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4914 # Sed expression to map a string onto a valid variable name.
4915 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4919 ## ----------------------------------- ##
4920 ## Main body of $CONFIG_STATUS script. ##
4921 ## ----------------------------------- ##
4923 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
4925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4926 # Save the log message, to keep $0 and so on meaningful, and to
4927 # report actual input values of CONFIG_FILES etc. instead of their
4928 # values after options handling.
4930 This file was extended by RISC-V ISA Simulator $as_me ?, which was
4931 generated by GNU Autoconf 2.69. Invocation command line was
4933 CONFIG_FILES = $CONFIG_FILES
4934 CONFIG_HEADERS = $CONFIG_HEADERS
4935 CONFIG_LINKS = $CONFIG_LINKS
4936 CONFIG_COMMANDS = $CONFIG_COMMANDS
4939 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4944 case $ac_config_files in *"
4945 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
4948 case $ac_config_headers in *"
4949 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
4953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4954 # Files that config.status was made for.
4955 config_files="$ac_config_files"
4956 config_headers="$ac_config_headers"
4960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4962 \`$as_me' instantiates files and other configuration actions
4963 from templates according to the current configuration. Unless the files
4964 and actions are specified as TAGs, all are instantiated by default.
4966 Usage: $0 [OPTION]... [TAG]...
4968 -h, --help print this help, then exit
4969 -V, --version print version number and configuration settings, then exit
4970 --config print configuration, then exit
4971 -q, --quiet, --silent
4972 do not print progress messages
4973 -d, --debug don't remove temporary files
4974 --recheck update $as_me by reconfiguring in the same conditions
4975 --file=FILE[:TEMPLATE]
4976 instantiate the configuration file FILE
4977 --header=FILE[:TEMPLATE]
4978 instantiate the configuration header FILE
4980 Configuration files:
4983 Configuration headers:
4986 Report bugs to <Andrew Waterman>."
4989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4990 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4992 RISC-V ISA Simulator config.status ?
4993 configured by $0, generated by GNU Autoconf 2.69,
4994 with options \\"\$ac_cs_config\\"
4996 Copyright (C) 2012 Free Software Foundation, Inc.
4997 This config.status script is free software; the Free Software Foundation
4998 gives unlimited permission to copy, distribute and modify it."
5003 test -n "\$AWK" || AWK=awk
5006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5007 # The default lists apply if the user does not specify any file.
5013 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5014 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
5018 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5030 # Handling of the options.
5031 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
5033 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
5034 $as_echo "$ac_cs_version"; exit ;;
5035 --config |
--confi |
--conf |
--con |
--co |
--c )
5036 $as_echo "$ac_cs_config"; exit ;;
5037 --debug |
--debu |
--deb |
--de |
--d |
-d )
5039 --file |
--fil |
--fi |
--f )
5042 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5043 '') as_fn_error $?
"missing file argument" ;;
5045 as_fn_append CONFIG_FILES
" '$ac_optarg'"
5046 ac_need_defaults
=false
;;
5047 --header |
--heade |
--head |
--hea )
5050 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5052 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
5053 ac_need_defaults
=false
;;
5055 # Conflict between --help and --header
5056 as_fn_error $?
"ambiguous option: \`$1'
5057 Try \`$0 --help' for more information.";;
5058 --help |
--hel |
-h )
5059 $as_echo "$ac_cs_usage"; exit ;;
5060 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
5061 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
5065 -*) as_fn_error $?
"unrecognized option: \`$1'
5066 Try \`$0 --help' for more information." ;;
5068 *) as_fn_append ac_config_targets
" $1"
5069 ac_need_defaults
=false
;;
5075 ac_configure_extra_args
=
5077 if $ac_cs_silent; then
5079 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5084 if \$ac_cs_recheck; then
5085 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5087 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5088 CONFIG_SHELL='$SHELL'
5094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5098 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5099 ## Running $as_me. ##
5105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5110 # Handling of arguments.
5111 for ac_config_target
in $ac_config_targets
5113 case $ac_config_target in
5114 "riscv.mk") CONFIG_FILES
="$CONFIG_FILES riscv.mk:riscv/riscv.mk.in" ;;
5115 "hwacha.mk") CONFIG_FILES
="$CONFIG_FILES hwacha.mk:hwacha/hwacha.mk.in" ;;
5116 "dummy_rocc.mk") CONFIG_FILES
="$CONFIG_FILES dummy_rocc.mk:dummy_rocc/dummy_rocc.mk.in" ;;
5117 "softfloat.mk") CONFIG_FILES
="$CONFIG_FILES softfloat.mk:softfloat/softfloat.mk.in" ;;
5118 "spike_main.mk") CONFIG_FILES
="$CONFIG_FILES spike_main.mk:spike_main/spike_main.mk.in" ;;
5119 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
5120 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5122 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5127 # If the user did not use the arguments to specify the items to instantiate,
5128 # then the envvar interface is used. Set only those that are not.
5129 # We use the long form for the default assignment because of an extremely
5130 # bizarre bug on SunOS 4.1.3.
5131 if $ac_need_defaults; then
5132 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5133 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5136 # Have a temporary directory for convenience. Make it in the build tree
5137 # simply because there is no reason against having it here, and in addition,
5138 # creating and moving files from /tmp can sometimes cause problems.
5139 # Hook for its removal unless debugging.
5140 # Note that there is a small window in which the directory will not be cleaned:
5141 # after its creation but before its name has been assigned to `$tmp'.
5145 trap 'exit_status=$?
5147 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5149 trap 'as_fn_exit 1' 1 2 13 15
5151 # Create a (secure) tmp directory for tmp files.
5154 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5158 tmp
=.
/conf$$
-$RANDOM
5159 (umask 077 && mkdir
"$tmp")
5160 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
5163 # Set up the scripts for CONFIG_FILES section.
5164 # No need to generate them if there are no CONFIG_FILES.
5165 # This happens for instance with `./config.status config.h'.
5166 if test -n "$CONFIG_FILES"; then
5169 ac_cr
=`echo X | tr X '\015'`
5170 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5171 # But we know of no other shell where ac_cr would be empty at this
5172 # point, so we can use a bashism as a fallback.
5173 if test "x$ac_cr" = x
; then
5174 eval ac_cr
=\$
\'\\r
\'
5176 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5177 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5183 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5188 echo "cat >conf$$subs.awk <<_ACEOF" &&
5189 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5192 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5193 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5195 for ac_last_try in false false false false false :; do
5196 . ./conf$$subs.sh ||
5197 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5199 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
5200 if test $ac_delim_n = $ac_delim_num; then
5202 elif $ac_last_try; then
5203 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5205 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5211 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
5215 s/^/S["/; s
/!.
*/"]=/
5225 s/\(.\{148\}\)..*/\1/
5227 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
5232 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5239 s/\(.\{148\}\)..*/\1/
5241 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5245 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5250 ' <conf$$subs.awk | sed '
5255 ' >>$CONFIG_STATUS || ac_write_fail=1
5256 rm -f conf$$subs.awk
5257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5259 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
5260 for (key in S) S_is_set[key] = 1
5266 nfields = split(line, field, "@
")
5268 len = length(field[1])
5269 for (i = 2; i < nfields; i++) {
5271 keylen = length(key)
5272 if (S_is_set[key]) {
5274 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5275 len += length(value) + length(field[++i])
5286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5287 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5288 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
5291 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
5292 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
5295 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5296 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
5297 # trailing colons and then remove the whole line if VPATH becomes empty
5298 # (actually we leave an empty line to preserve line numbers).
5299 if test "x
$srcdir" = x.; then
5300 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5319 fi # test -n "$CONFIG_FILES"
5321 # Set up the scripts for CONFIG_HEADERS section.
5322 # No need to generate them if there are no CONFIG_HEADERS.
5323 # This happens for instance with `./config.status Makefile'.
5324 if test -n "$CONFIG_HEADERS"; then
5325 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
5329 # Transform confdefs.h into an awk script `defines.awk', embedded as
5330 # here-document in config.status, that substitutes the proper values into
5331 # config.h.in to produce config.h.
5333 # Create a delimiter string that does not exist in confdefs.h, to ease
5334 # handling of long lines.
5336 for ac_last_try in false false :; do
5337 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
5338 if test -z "$ac_tt"; then
5340 elif $ac_last_try; then
5341 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
5343 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5347 # For the awk script, D is an array of macro values keyed by name,
5348 # likewise P contains macro parameters if any. Preserve backslash
5349 # newline sequences.
5351 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5353 s/.\{148\}/&'"$ac_delim"'/g
5356 s/^[ ]*#[ ]*define[ ][ ]*/ /
5363 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5365 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5369 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5370 D["\
1"]=" \
3\\\\\\n
"\\/p
5372 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5377 s/.\{148\}/&'"$ac_delim"'/g
5382 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5385 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5387 ' <confdefs.h | sed '
5388 s/'"$ac_delim"'/"\\\
5389 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5392 for (key in D) D_is_set[key] = 1
5395 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5397 split(line, arg, " ")
5398 if (arg[1] == "#") {
5402 defundef
= substr
(arg
[1], 2)
5405 split(mac1
, mac2
, "(") #)
5407 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5408 if (D_is_set
[macro
]) {
5409 # Preserve the white space surrounding the "#".
5410 print prefix
"define", macro P
[macro
] D
[macro
]
5413 # Replace #undef with comments. This is necessary, for example,
5414 # in the case of _POSIX_SOURCE, which is predefined and required
5415 # on some systems where configure will not decide to define it.
5416 if (defundef
== "undef") {
5417 print
"/*", prefix defundef
, macro
, "*/"
5425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5426 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
5427 fi # test -n "$CONFIG_HEADERS"
5430 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
5435 :[FHLC
]) ac_mode
=$ac_tag; continue;;
5437 case $ac_mode$ac_tag in
5439 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
5440 :[FH
]-) ac_tag
=-:-;;
5441 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
5458 -) ac_f
="$ac_tmp/stdin";;
5459 *) # Look for the file first in the build tree, then in the source tree
5460 # (if the path is not absolute). The absolute path cannot be DOS-style,
5461 # because $ac_f cannot contain `:'.
5465 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
5467 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5469 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5470 as_fn_append ac_file_inputs
" '$ac_f'"
5473 # Let's still pretend it is `configure' which instantiates (i.e., don't
5474 # use $as_me), people would be surprised to read:
5475 # /* config.h. Generated by config.status. */
5476 configure_input
='Generated from '`
5477 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5479 if test x
"$ac_file" != x-
; then
5480 configure_input
="$ac_file. $configure_input"
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5482 $as_echo "$as_me: creating $ac_file" >&6;}
5484 # Neutralize special characters interpreted by sed in replacement strings.
5485 case $configure_input in #(
5486 *\
&* |
*\|
* |
*\\* )
5487 ac_sed_conf_input
=`$as_echo "$configure_input" |
5488 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5489 *) ac_sed_conf_input
=$configure_input;;
5493 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
5494 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
5499 ac_dir
=`$as_dirname -- "$ac_file" ||
5500 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5501 X"$ac_file" : 'X\(//\)[^/]' \| \
5502 X"$ac_file" : 'X\(//\)$' \| \
5503 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5504 $as_echo X"$ac_file" |
5505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5522 as_dir
="$ac_dir"; as_fn_mkdir_p
5526 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5528 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5529 # A ".." for each directory in $ac_dir_suffix.
5530 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5531 case $ac_top_builddir_sub in
5532 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5533 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
5536 ac_abs_top_builddir
=$ac_pwd
5537 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
5538 # for backward compatibility:
5539 ac_top_builddir
=$ac_top_build_prefix
5542 .
) # We are building in place.
5544 ac_top_srcdir
=$ac_top_builddir_sub
5545 ac_abs_top_srcdir
=$ac_pwd ;;
5546 [\\/]* | ?
:[\\/]* ) # Absolute name.
5547 ac_srcdir
=$srcdir$ac_dir_suffix;
5548 ac_top_srcdir
=$srcdir
5549 ac_abs_top_srcdir
=$srcdir ;;
5551 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
5552 ac_top_srcdir
=$ac_top_build_prefix$srcdir
5553 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
5555 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
5565 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5566 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
5570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5571 # If the template does not know about datarootdir, expand it.
5572 # FIXME: This hack should be removed a few years after 2.60.
5573 ac_datarootdir_hack
=; ac_datarootdir_seen
=
5584 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5585 *datarootdir
*) ac_datarootdir_seen
=yes;;
5586 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5588 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5591 ac_datarootdir_hack='
5592 s&@datadir@&$datadir&g
5593 s&@docdir@&$docdir&g
5594 s&@infodir@&$infodir&g
5595 s&@localedir@&$localedir&g
5596 s&@mandir@&$mandir&g
5597 s&\\\${datarootdir}&$datarootdir&g' ;;
5601 # Neutralize VPATH when `$srcdir' = `.'.
5602 # Shell code in configure.ac might set extrasub.
5603 # FIXME: do we really want to maintain this feature?
5604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5605 ac_sed_extra="$ac_vpsub
5608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5610 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5611 s|@configure_input@|
$ac_sed_conf_input|
;t t
5612 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
5613 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
5614 s
&@srcdir@
&$ac_srcdir&;t t
5615 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
5616 s
&@top_srcdir@
&$ac_top_srcdir&;t t
5617 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
5618 s
&@builddir@
&$ac_builddir&;t t
5619 s
&@abs_builddir@
&$ac_abs_builddir&;t t
5620 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
5621 s
&@INSTALL@
&$ac_INSTALL&;t t
5622 $ac_datarootdir_hack
5624 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
5625 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
5627 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5628 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
5629 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5630 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
5632 which seems to be undefined. Please make sure it is defined" >&5
5633 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
5634 which seems to be undefined. Please make sure it is defined" >&2;}
5636 rm -f "$ac_tmp/stdin"
5638 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5639 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5641 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5647 if test x"$ac_file" != x-; then
5649 $as_echo "/* $configure_input */" \
5650 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5651 } >"$ac_tmp/config.h" \
5652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5653 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5655 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5658 mv "$ac_tmp/config.h" "$ac_file" \
5659 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5662 $as_echo "/* $configure_input */" \
5663 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5664 || as_fn_error $? "could not create -" "$LINENO" 5
5676 ac_clean_files=$ac_clean_files_save
5678 test $ac_write_fail = 0 ||
5679 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5682 # configure is writing to config.log, and then calls config.status.
5683 # config.status does its own redirection, appending to config.log.
5684 # Unfortunately, on DOS this fails, as config.log is still kept open
5685 # by configure, so config.status won't be able to
write to it
; its
5686 # output is simply discarded. So we exec the FD to /dev/null,
5687 # effectively closing config.log, so it can be properly (re)opened and
5688 # appended to by config.status. When coming back to configure, we
5689 # need to make the FD available again.
5690 if test "$no_create" != yes; then
5692 ac_config_status_args
=
5693 test "$silent" = yes &&
5694 ac_config_status_args
="$ac_config_status_args --quiet"
5696 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5698 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5699 # would make configure fail if this is the last instruction.
5700 $ac_cs_success || as_fn_exit
1
5702 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5704 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}