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
653 program_transform_name
666 enable_option_checking
668 enable_optional_subprojects
674 ac_precious_vars
='build_alias
690 # Initialize some variables set by options.
692 ac_init_version
=false
693 ac_unrecognized_opts
=
695 # The variables have the same names as the options, with
696 # dashes changed to underlines.
704 program_transform_name
=s
,x
,x
,
712 # Installation directory options.
713 # These are left unexpanded so users can "make install exec_prefix=/foo"
714 # and all the variables that are supposed to be based on exec_prefix
715 # by default will actually change.
716 # Use braces instead of parens because sh, perl, etc. also accept them.
717 # (The list follows the same order as the GNU Coding Standards.)
718 bindir
='${exec_prefix}/bin'
719 sbindir
='${exec_prefix}/sbin'
720 libexecdir
='${exec_prefix}/libexec'
721 datarootdir
='${prefix}/share'
722 datadir
='${datarootdir}'
723 sysconfdir
='${prefix}/etc'
724 sharedstatedir
='${prefix}/com'
725 localstatedir
='${prefix}/var'
726 includedir
='${prefix}/include'
727 oldincludedir
='/usr/include'
728 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
729 infodir
='${datarootdir}/info'
734 libdir
='${exec_prefix}/lib'
735 localedir
='${datarootdir}/locale'
736 mandir
='${datarootdir}/man'
742 # If the previous option needs an argument, assign it.
743 if test -n "$ac_prev"; then
744 eval $ac_prev=\
$ac_option
750 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
755 # Accept the important Cygnus configure options, so we can diagnose typos.
757 case $ac_dashdash$ac_option in
761 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
763 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
766 -build |
--build |
--buil |
--bui |
--bu)
767 ac_prev
=build_alias
;;
768 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
769 build_alias
=$ac_optarg ;;
771 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
772 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
773 ac_prev
=cache_file
;;
774 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
775 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
776 cache_file
=$ac_optarg ;;
779 cache_file
=config.cache
;;
781 -datadir |
--datadir |
--datadi |
--datad)
783 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
784 datadir
=$ac_optarg ;;
786 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
787 |
--dataroo |
--dataro |
--datar)
788 ac_prev
=datarootdir
;;
789 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
790 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
791 datarootdir
=$ac_optarg ;;
793 -disable-* |
--disable-*)
794 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795 # Reject names that are not valid shell variable names.
796 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
797 as_fn_error $?
"invalid feature name: $ac_useropt"
798 ac_useropt_orig
=$ac_useropt
799 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
800 case $ac_user_opts in
804 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
805 ac_unrecognized_sep
=', ';;
807 eval enable_
$ac_useropt=no
;;
809 -docdir |
--docdir |
--docdi |
--doc |
--do)
811 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
814 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
816 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
819 -enable-* |
--enable-*)
820 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
821 # Reject names that are not valid shell variable names.
822 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
823 as_fn_error $?
"invalid feature name: $ac_useropt"
824 ac_useropt_orig
=$ac_useropt
825 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
826 case $ac_user_opts in
830 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
831 ac_unrecognized_sep
=', ';;
833 eval enable_
$ac_useropt=\
$ac_optarg ;;
835 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
836 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
837 |
--exec |
--exe |
--ex)
838 ac_prev
=exec_prefix
;;
839 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
840 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
841 |
--exec=* |
--exe=* |
--ex=*)
842 exec_prefix
=$ac_optarg ;;
844 -gas |
--gas |
--ga |
--g)
845 # Obsolete; use --with-gas.
848 -help |
--help |
--hel |
--he |
-h)
850 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
851 ac_init_help
=recursive
;;
852 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
853 ac_init_help
=short
;;
855 -host |
--host |
--hos |
--ho)
856 ac_prev
=host_alias
;;
857 -host=* |
--host=* |
--hos=* |
--ho=*)
858 host_alias
=$ac_optarg ;;
860 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
862 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
864 htmldir
=$ac_optarg ;;
866 -includedir |
--includedir |
--includedi |
--included |
--include \
867 |
--includ |
--inclu |
--incl |
--inc)
868 ac_prev
=includedir
;;
869 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
870 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
871 includedir
=$ac_optarg ;;
873 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
875 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
876 infodir
=$ac_optarg ;;
878 -libdir |
--libdir |
--libdi |
--libd)
880 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
883 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
884 |
--libexe |
--libex |
--libe)
885 ac_prev
=libexecdir
;;
886 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
887 |
--libexe=* |
--libex=* |
--libe=*)
888 libexecdir
=$ac_optarg ;;
890 -localedir |
--localedir |
--localedi |
--localed |
--locale)
892 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
893 localedir
=$ac_optarg ;;
895 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
896 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
897 ac_prev
=localstatedir
;;
898 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
899 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
900 localstatedir
=$ac_optarg ;;
902 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
904 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
908 # Obsolete; use --without-fp.
911 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
912 |
--no-cr |
--no-c |
-n)
915 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
916 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
919 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
920 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
921 |
--oldin |
--oldi |
--old |
--ol |
--o)
922 ac_prev
=oldincludedir
;;
923 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
924 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
925 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
926 oldincludedir
=$ac_optarg ;;
928 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
930 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
933 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
934 |
--program-pre |
--program-pr |
--program-p)
935 ac_prev
=program_prefix
;;
936 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
937 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
938 program_prefix
=$ac_optarg ;;
940 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
941 |
--program-suf |
--program-su |
--program-s)
942 ac_prev
=program_suffix
;;
943 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
944 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
945 program_suffix
=$ac_optarg ;;
947 -program-transform-name |
--program-transform-name \
948 |
--program-transform-nam |
--program-transform-na \
949 |
--program-transform-n |
--program-transform- \
950 |
--program-transform |
--program-transfor \
951 |
--program-transfo |
--program-transf \
952 |
--program-trans |
--program-tran \
953 |
--progr-tra |
--program-tr |
--program-t)
954 ac_prev
=program_transform_name
;;
955 -program-transform-name=* |
--program-transform-name=* \
956 |
--program-transform-nam=* |
--program-transform-na=* \
957 |
--program-transform-n=* |
--program-transform-=* \
958 |
--program-transform=* |
--program-transfor=* \
959 |
--program-transfo=* |
--program-transf=* \
960 |
--program-trans=* |
--program-tran=* \
961 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
962 program_transform_name
=$ac_optarg ;;
964 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
966 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
969 -psdir |
--psdir |
--psdi |
--psd |
--ps)
971 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
974 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
975 |
-silent |
--silent |
--silen |
--sile |
--sil)
978 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
980 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
982 sbindir
=$ac_optarg ;;
984 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
985 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
986 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
988 ac_prev
=sharedstatedir
;;
989 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
990 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
991 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
993 sharedstatedir
=$ac_optarg ;;
995 -site |
--site |
--sit)
997 -site=* |
--site=* |
--sit=*)
1000 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1002 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1003 srcdir
=$ac_optarg ;;
1005 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1006 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1007 ac_prev
=sysconfdir
;;
1008 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1009 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1010 sysconfdir
=$ac_optarg ;;
1012 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1013 ac_prev
=target_alias
;;
1014 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1015 target_alias
=$ac_optarg ;;
1017 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1020 -version |
--version |
--versio |
--versi |
--vers |
-V)
1021 ac_init_version
=: ;;
1024 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1027 as_fn_error $?
"invalid package name: $ac_useropt"
1028 ac_useropt_orig
=$ac_useropt
1029 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1034 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1035 ac_unrecognized_sep
=', ';;
1037 eval with_
$ac_useropt=\
$ac_optarg ;;
1039 -without-* |
--without-*)
1040 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1043 as_fn_error $?
"invalid package name: $ac_useropt"
1044 ac_useropt_orig
=$ac_useropt
1045 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1050 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1051 ac_unrecognized_sep
=', ';;
1053 eval with_
$ac_useropt=no
;;
1056 # Obsolete; use --with-x.
1059 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1060 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1061 ac_prev
=x_includes
;;
1062 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1063 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1064 x_includes
=$ac_optarg ;;
1066 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1067 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1068 ac_prev
=x_libraries
;;
1069 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1070 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1071 x_libraries
=$ac_optarg ;;
1073 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1074 Try \`$0 --help' for more information"
1078 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1079 # Reject names that are not valid shell variable names.
1080 case $ac_envvar in #(
1081 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1082 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1084 eval $ac_envvar=\
$ac_optarg
1085 export $ac_envvar ;;
1088 # FIXME: should be removed in autoconf 3.0.
1089 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1090 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1091 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1092 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1098 if test -n "$ac_prev"; then
1099 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1100 as_fn_error $?
"missing argument to $ac_option"
1103 if test -n "$ac_unrecognized_opts"; then
1104 case $enable_option_checking in
1106 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1107 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1111 # Check all directory arguments for consistency.
1112 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1113 datadir sysconfdir sharedstatedir localstatedir includedir \
1114 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1115 libdir localedir mandir
1117 eval ac_val
=\$
$ac_var
1118 # Remove trailing slashes.
1121 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1122 eval $ac_var=\
$ac_val;;
1124 # Be sure to have absolute directory names.
1126 [\\/$
]* | ?
:[\\/]* ) continue;;
1127 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1129 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1132 # There might be people who depend on the old broken behavior: `$host'
1133 # used to hold the argument of --host etc.
1134 # FIXME: To remove some day.
1137 target
=$target_alias
1139 # FIXME: To remove some day.
1140 if test "x$host_alias" != x
; then
1141 if test "x$build_alias" = x
; then
1142 cross_compiling
=maybe
1143 elif test "x$build_alias" != "x$host_alias"; then
1149 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1151 test "$silent" = yes && exec 6>/dev
/null
1154 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1155 ac_ls_di
=`ls -di .` &&
1156 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1157 as_fn_error $?
"working directory cannot be determined"
1158 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1159 as_fn_error $?
"pwd does not report name of working directory"
1162 # Find the source files, if location was not specified.
1163 if test -z "$srcdir"; then
1164 ac_srcdir_defaulted
=yes
1165 # Try the directory containing this script, then the parent directory.
1166 ac_confdir
=`$as_dirname -- "$as_myself" ||
1167 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1168 X"$as_myself" : 'X\(//\)[^/]' \| \
1169 X"$as_myself" : 'X\(//\)$' \| \
1170 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1171 $as_echo X"$as_myself" |
1172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1190 if test ! -r "$srcdir/$ac_unique_file"; then
1194 ac_srcdir_defaulted
=no
1196 if test ! -r "$srcdir/$ac_unique_file"; then
1197 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1198 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1200 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1202 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1204 # When building in place, set srcdir=.
1205 if test "$ac_abs_confdir" = "$ac_pwd"; then
1208 # Remove unnecessary trailing slashes from srcdir.
1209 # Double slashes in file names in object file debugging info
1210 # mess up M-x gdb in Emacs.
1212 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1214 for ac_var
in $ac_precious_vars; do
1215 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1216 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1217 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1218 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1222 # Report the --help message.
1224 if test "$ac_init_help" = "long"; then
1225 # Omit some internal or obsolete options to make the list less imposing.
1226 # This message is too long to be a string in the A/UX 3.1 sh.
1228 \`configure' configures RISC-V ISA Simulator ? to adapt to many kinds of systems.
1230 Usage: $0 [OPTION]... [VAR=VALUE]...
1232 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1233 VAR=VALUE. See below for descriptions of some of the useful variables.
1235 Defaults for the options are specified in brackets.
1238 -h, --help display this help and exit
1239 --help=short display options specific to this package
1240 --help=recursive display the short help of all the included packages
1241 -V, --version display version information and exit
1242 -q, --quiet, --silent do not print \`checking ...' messages
1243 --cache-file=FILE cache test results in FILE [disabled]
1244 -C, --config-cache alias for \`--cache-file=config.cache'
1245 -n, --no-create do not create output files
1246 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1248 Installation directories:
1249 --prefix=PREFIX install architecture-independent files in PREFIX
1250 [$ac_default_prefix]
1251 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1254 By default, \`make install' will install all the files in
1255 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1256 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1257 for instance \`--prefix=\$HOME'.
1259 For better control, use the options below.
1261 Fine tuning of the installation directories:
1262 --bindir=DIR user executables [EPREFIX/bin]
1263 --sbindir=DIR system admin executables [EPREFIX/sbin]
1264 --libexecdir=DIR program executables [EPREFIX/libexec]
1265 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1266 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1267 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1268 --libdir=DIR object code libraries [EPREFIX/lib]
1269 --includedir=DIR C header files [PREFIX/include]
1270 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1271 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1272 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1273 --infodir=DIR info documentation [DATAROOTDIR/info]
1274 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1275 --mandir=DIR man documentation [DATAROOTDIR/man]
1276 --docdir=DIR documentation root [DATAROOTDIR/doc/spike]
1277 --htmldir=DIR html documentation [DOCDIR]
1278 --dvidir=DIR dvi documentation [DOCDIR]
1279 --pdfdir=DIR pdf documentation [DOCDIR]
1280 --psdir=DIR ps documentation [DOCDIR]
1286 --build=BUILD configure
for building on BUILD
[guessed
]
1287 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1291 if test -n "$ac_init_help"; then
1292 case $ac_init_help in
1293 short | recursive
) echo "Configuration of RISC-V ISA Simulator ?:";;
1298 --disable-option-checking ignore unrecognized
--enable/--with options
1299 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1300 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1301 --enable-stow Enable stow-based
install
1302 --enable-optional-subprojects
1303 Enable all optional subprojects
1304 --disable-fpu Disable floating-point
1305 --disable-64bit Disable
64-bit mode
1306 --enable-commitlog Enable commit log generation
1309 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1310 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1311 --with-fesvr path to your fesvr installation
if not
in a standard
1314 Some influential environment variables
:
1315 CC C compiler
command
1316 CFLAGS C compiler flags
1317 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1318 nonstandard directory
<lib dir
>
1319 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1320 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1321 you have headers
in a nonstandard directory
<include dir
>
1322 CXX C
++ compiler
command
1323 CXXFLAGS C
++ compiler flags
1324 STOW_ROOT Root
for non-native stow-based installs
1325 STOW_PREFIX Prefix
for stow-based installs
1328 Use these variables to override the choices made by
`configure' or to help
1329 it to find libraries and programs with nonstandard names/locations.
1331 Report bugs to <Andrew Waterman>.
1336 if test "$ac_init_help" = "recursive"; then
1337 # If there are subdirs, report their specific --help.
1338 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1339 test -d "$ac_dir" ||
1340 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1345 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1347 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1348 # A ".." for each directory in $ac_dir_suffix.
1349 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1350 case $ac_top_builddir_sub in
1351 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1355 ac_abs_top_builddir=$ac_pwd
1356 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1357 # for backward compatibility:
1358 ac_top_builddir=$ac_top_build_prefix
1361 .) # We are building in place.
1363 ac_top_srcdir=$ac_top_builddir_sub
1364 ac_abs_top_srcdir=$ac_pwd ;;
1365 [\\/]* | ?:[\\/]* ) # Absolute name.
1366 ac_srcdir=$srcdir$ac_dir_suffix;
1367 ac_top_srcdir=$srcdir
1368 ac_abs_top_srcdir=$srcdir ;;
1370 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1371 ac_top_srcdir=$ac_top_build_prefix$srcdir
1372 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1374 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1376 cd "$ac_dir" || { ac_status=$?; continue; }
1377 # Check for guested configure.
1378 if test -f "$ac_srcdir/configure.gnu"; then
1380 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1381 elif test -f "$ac_srcdir/configure"; then
1383 $SHELL "$ac_srcdir/configure" --help=recursive
1385 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1387 cd "$ac_pwd" || { ac_status=$?; break; }
1391 test -n "$ac_init_help" && exit $ac_status
1392 if $ac_init_version; then
1394 RISC-V ISA Simulator configure ?
1395 generated by GNU Autoconf 2.69
1397 Copyright (C) 2012 Free Software Foundation, Inc.
1398 This configure script is free software; the Free Software Foundation
1399 gives unlimited permission to copy, distribute and modify it.
1404 ## ------------------------ ##
1405 ## Autoconf initialization. ##
1406 ## ------------------------ ##
1408 # ac_fn_c_try_compile LINENO
1409 # --------------------------
1410 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1411 ac_fn_c_try_compile ()
1413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1414 rm -f conftest.$ac_objext
1415 if { { ac_try="$ac_compile"
1417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1418 *) ac_try_echo
=$ac_try;;
1420 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1421 $as_echo "$ac_try_echo"; } >&5
1422 (eval "$ac_compile") 2>conftest.err
1424 if test -s conftest.err
; then
1425 grep -v '^ *+' conftest.err
>conftest.er1
1426 cat conftest.er1
>&5
1427 mv -f conftest.er1 conftest.err
1429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1430 test $ac_status = 0; } && {
1431 test -z "$ac_c_werror_flag" ||
1432 test ! -s conftest.err
1433 } && test -s conftest.
$ac_objext; then :
1436 $as_echo "$as_me: failed program was:" >&5
1437 sed 's/^/| /' conftest.
$ac_ext >&5
1441 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1442 as_fn_set_status
$ac_retval
1444 } # ac_fn_c_try_compile
1446 # ac_fn_cxx_try_compile LINENO
1447 # ----------------------------
1448 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1449 ac_fn_cxx_try_compile
()
1451 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1452 rm -f conftest.
$ac_objext
1453 if { { ac_try
="$ac_compile"
1455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1456 *) ac_try_echo=$ac_try;;
1458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1459 $as_echo "$ac_try_echo"; } >&5
1460 (eval "$ac_compile") 2>conftest.err
1462 if test -s conftest.err; then
1463 grep -v '^ *+' conftest.err >conftest.er1
1464 cat conftest.er1 >&5
1465 mv -f conftest.er1 conftest.err
1467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1468 test $ac_status = 0; } && {
1469 test -z "$ac_cxx_werror_flag" ||
1470 test ! -s conftest.err
1471 } && test -s conftest.$ac_objext; then :
1474 $as_echo "$as_me: failed program was:" >&5
1475 sed 's/^/| /' conftest.$ac_ext >&5
1479 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1480 as_fn_set_status $ac_retval
1482 } # ac_fn_cxx_try_compile
1484 # ac_fn_c_try_cpp LINENO
1485 # ----------------------
1486 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1490 if { { ac_try="$ac_cpp conftest.$ac_ext"
1492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1493 *) ac_try_echo
=$ac_try;;
1495 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496 $as_echo "$ac_try_echo"; } >&5
1497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1499 if test -s conftest.err
; then
1500 grep -v '^ *+' conftest.err
>conftest.er1
1501 cat conftest.er1
>&5
1502 mv -f conftest.er1 conftest.err
1504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1505 test $ac_status = 0; } > conftest.i
&& {
1506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1507 test ! -s conftest.err
1511 $as_echo "$as_me: failed program was:" >&5
1512 sed 's/^/| /' conftest.
$ac_ext >&5
1516 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1517 as_fn_set_status
$ac_retval
1521 # ac_fn_c_try_run LINENO
1522 # ----------------------
1523 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1524 # that executables *can* be run.
1527 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1528 if { { ac_try
="$ac_link"
1530 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534 $as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_link") 2>&5
1537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1539 { { case "(($ac_try" in
1540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1541 *) ac_try_echo
=$ac_try;;
1543 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_try") 2>&5
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; }; }; then :
1551 $as_echo "$as_me: program exited with status $ac_status" >&5
1552 $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.
$ac_ext >&5
1555 ac_retval
=$ac_status
1557 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559 as_fn_set_status
$ac_retval
1563 # ac_fn_c_try_link LINENO
1564 # -----------------------
1565 # Try to link conftest.$ac_ext, and return whether this succeeded.
1568 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1569 rm -f conftest.
$ac_objext conftest
$ac_exeext
1570 if { { ac_try
="$ac_link"
1572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_link") 2>conftest.err
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest$ac_exeext && {
1589 test "$cross_compiling" = yes ||
1590 test -x conftest$ac_exeext
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1599 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1600 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1601 # interfere with the next link command; also delete a directory that is
1602 # left behind by Apple's compiler. We do this before executing the actions.
1603 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 as_fn_set_status $ac_retval
1607 } # ac_fn_c_try_link
1608 cat >config.log <<_ACEOF
1609 This file contains any messages produced by compilers while
1610 running configure, to aid debugging if configure makes a mistake.
1612 It was created by RISC-V ISA Simulator $as_me ?, which was
1613 generated by GNU Autoconf 2.69. Invocation command line was
1625 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1626 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1627 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1628 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1629 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1631 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1632 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1634 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1635 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1636 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1637 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1638 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1639 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1640 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648 test -z "$as_dir" && as_dir=.
1649 $as_echo "PATH: $as_dir"
1665 # Keep a trace of the command line.
1666 # Strip out --no-create and --no-recursion so they do not pile up.
1667 # Strip out --silent because we don't want to record it for future runs.
1668 # Also quote any args containing shell meta-characters.
1669 # Make two passes to allow for proper duplicate-argument suppression.
1673 ac_must_keep_next=false
1679 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1680 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1681 | -silent | --silent | --silen | --sile | --sil)
1684 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1687 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1689 as_fn_append ac_configure_args1 " '$ac_arg'"
1690 if test $ac_must_keep_next = true; then
1691 ac_must_keep_next=false # Got value, back to normal.
1694 *=* | --config-cache | -C | -disable-* | --disable-* \
1695 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1696 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1697 | -with-* | --with-* | -without-* | --without-* | --x)
1698 case "$ac_configure_args0 " in
1699 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1702 -* ) ac_must_keep_next=true ;;
1705 as_fn_append ac_configure_args " '$ac_arg'"
1710 { ac_configure_args0=; unset ac_configure_args0;}
1711 { ac_configure_args1=; unset ac_configure_args1;}
1713 # When interrupted or exit'd, cleanup temporary files, and complete
1714 # config.log. We remove comments because anyway the quotes in there
1715 # would cause problems or look ugly.
1716 # WARNING: Use '\'' to represent an apostrophe within the trap.
1717 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1718 trap 'exit_status=$?
1719 # Save into config.log some information that might help in debugging.
1723 $as_echo "## ---------------- ##
1724 ## Cache variables. ##
1725 ## ---------------- ##"
1727 # The following way of writing the cache mishandles newlines in values,
1729 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1730 eval ac_val=\$$ac_var
1734 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1735 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1738 _ | IFS | as_nl) ;; #(
1739 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1740 *) { eval $ac_var=; unset $ac_var;} ;;
1745 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1746 *${as_nl}ac_space=\ *)
1748 "s/'\''/'\''\\\\'\'''\''/g;
1749 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1752 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1759 $as_echo "## ----------------- ##
1760 ## Output variables. ##
1761 ## ----------------- ##"
1763 for ac_var in $ac_subst_vars
1765 eval ac_val=\$$ac_var
1767 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1769 $as_echo "$ac_var='\''$ac_val'\''"
1773 if test -n "$ac_subst_files"; then
1774 $as_echo "## ------------------- ##
1775 ## File substitutions. ##
1776 ## ------------------- ##"
1778 for ac_var in $ac_subst_files
1780 eval ac_val=\$$ac_var
1782 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1784 $as_echo "$ac_var='\''$ac_val'\''"
1789 if test -s confdefs.h; then
1790 $as_echo "## ----------- ##
1797 test "$ac_signal" != 0 &&
1798 $as_echo "$as_me: caught signal $ac_signal"
1799 $as_echo "$as_me: exit $exit_status"
1801 rm -f core *.core core.conftest.* &&
1802 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1805 for ac_signal in 1 2 13 15; do
1806 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1810 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1811 rm -f -r conftest* confdefs.h
1813 $as_echo "/* confdefs.h */" > confdefs.h
1815 # Predefined preprocessor variables.
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_NAME "$PACKAGE_NAME"
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_STRING "$PACKAGE_STRING"
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_URL "$PACKAGE_URL"
1842 # Let the site file select an alternate cache file if it wants to.
1843 # Prefer an explicitly selected file to automatically selected ones.
1846 if test -n "$CONFIG_SITE"; then
1847 # We do not want a PATH search for config.site.
1848 case $CONFIG_SITE in #((
1849 -*) ac_site_file1=./$CONFIG_SITE;;
1850 */*) ac_site_file1=$CONFIG_SITE;;
1851 *) ac_site_file1=./$CONFIG_SITE;;
1853 elif test "x$prefix" != xNONE; then
1854 ac_site_file1=$prefix/share/config.site
1855 ac_site_file2=$prefix/etc/config.site
1857 ac_site_file1=$ac_default_prefix/share/config.site
1858 ac_site_file2=$ac_default_prefix/etc/config.site
1860 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1862 test "x$ac_site_file" = xNONE && continue
1863 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1865 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1866 sed 's/^/| /' "$ac_site_file" >&5
1868 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1870 as_fn_error $? "failed to load site
script $ac_site_file
1871 See \
`config.log' for more details" "$LINENO" 5; }
1875 if test -r "$cache_file"; then
1876 # Some versions of bash will fail to source /dev/null (special files
1877 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1878 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1880 $as_echo "$as_me: loading cache $cache_file" >&6;}
1882 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1883 *) . "./$cache_file";;
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1888 $as_echo "$as_me: creating cache $cache_file" >&6;}
1892 # Check that the precious variables saved in the cache have kept the same
1894 ac_cache_corrupted=false
1895 for ac_var in $ac_precious_vars; do
1896 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1897 eval ac_new_set=\$ac_env_${ac_var}_set
1898 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1899 eval ac_new_val=\$ac_env_${ac_var}_value
1900 case $ac_old_set,$ac_new_set in
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1903 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1904 ac_cache_corrupted=: ;;
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
1907 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1908 ac_cache_corrupted=: ;;
1911 if test "x$ac_old_val" != "x$ac_new_val"; then
1912 # differences in whitespace do not lead to failure.
1913 ac_old_val_w=`echo x
$ac_old_val`
1914 ac_new_val_w=`echo x
$ac_new_val`
1915 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1917 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1918 ac_cache_corrupted=:
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1921 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1922 eval $ac_var=\$ac_old_val
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1925 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1927 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1930 # Pass precious variables to config.status.
1931 if test "$ac_new_set" = set; then
1933 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1934 *) ac_arg=$ac_var=$ac_new_val ;;
1936 case " $ac_configure_args " in
1937 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1938 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1942 if $ac_cache_corrupted; then
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
1944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1946 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1947 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
1949 ## -------------------- ##
1950 ## Main body of script. ##
1951 ## -------------------- ##
1954 ac_cpp='$CPP $CPPFLAGS'
1955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1962 for ac_dir in scripts "$srcdir"/scripts; do
1963 if test -f "$ac_dir/install-sh"; then
1965 ac_install_sh="$ac_aux_dir/install-sh -c"
1967 elif test -f "$ac_dir/install.sh"; then
1969 ac_install_sh="$ac_aux_dir/install.sh -c"
1971 elif test -f "$ac_dir/shtool"; then
1973 ac_install_sh="$ac_aux_dir/shtool install -c"
1977 if test -z "$ac_aux_dir"; then
1978 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
1981 # These three variables are undocumented and unsupported,
1982 # and are intended to be withdrawn in a future Autoconf release.
1983 # They can cause serious problems if a builder's source tree is in a directory
1984 # whose full name contains unusual characters.
1985 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1986 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1987 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1990 # Make sure we can run config.sub.
1991 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1992 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1995 $as_echo_n "checking build system type... " >&6; }
1996 if ${ac_cv_build+:} false; then :
1997 $as_echo_n "(cached) " >&6
1999 ac_build_alias=$build_alias
2000 test "x$ac_build_alias" = x &&
2001 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2002 test "x$ac_build_alias" = x &&
2003 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2004 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2005 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2009 $as_echo "$ac_cv_build" >&6; }
2010 case $ac_cv_build in
2012 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2015 ac_save_IFS=$IFS; IFS='-'
2021 # Remember, the first character of IFS is used to create $*,
2022 # except with old shells:
2025 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2029 $as_echo_n "checking host system type... " >&6; }
2030 if ${ac_cv_host+:} false; then :
2031 $as_echo_n "(cached) " >&6
2033 if test "x$host_alias" = x; then
2034 ac_cv_host=$ac_cv_build
2036 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2037 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2042 $as_echo "$ac_cv_host" >&6; }
2045 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2048 ac_save_IFS=$IFS; IFS='-'
2054 # Remember, the first character of IFS is used to create $*,
2055 # except with old shells:
2058 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2062 #-------------------------------------------------------------------------
2063 # Checks for programs
2064 #-------------------------------------------------------------------------
2067 ac_cpp='$CPP $CPPFLAGS'
2068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2071 if test -n "$ac_tool_prefix"; then
2072 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2073 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2075 $as_echo_n "checking for $ac_word... " >&6; }
2076 if ${ac_cv_prog_CC+:} false; then :
2077 $as_echo_n "(cached) " >&6
2079 if test -n "$CC"; then
2080 ac_cv_prog_CC="$CC" # Let the user override the test.
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2089 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2100 if test -n "$CC"; then
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2102 $as_echo "$CC" >&6; }
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2105 $as_echo "no" >&6; }
2110 if test -z "$ac_cv_prog_CC"; then
2112 # Extract the first word of "gcc", so it can be a program name with args.
2113 set dummy gcc; ac_word=$2
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2115 $as_echo_n "checking for $ac_word... " >&6; }
2116 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2117 $as_echo_n "(cached) " >&6
2119 if test -n "$ac_ct_CC"; then
2120 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 test -z "$as_dir" && as_dir=.
2127 for ac_exec_ext in '' $ac_executable_extensions; do
2128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2129 ac_cv_prog_ac_ct_CC="gcc"
2130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2139 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2140 if test -n "$ac_ct_CC"; then
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2142 $as_echo "$ac_ct_CC" >&6; }
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2145 $as_echo "no" >&6; }
2148 if test "x$ac_ct_CC" = x; then
2151 case $cross_compiling:$ac_tool_warned in
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2155 ac_tool_warned=yes ;;
2163 if test -z "$CC"; then
2164 if test -n "$ac_tool_prefix"; then
2165 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2166 set dummy ${ac_tool_prefix}cc; ac_word=$2
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2168 $as_echo_n "checking for $ac_word... " >&6; }
2169 if ${ac_cv_prog_CC+:} false; then :
2170 $as_echo_n "(cached) " >&6
2172 if test -n "$CC"; then
2173 ac_cv_prog_CC="$CC" # Let the user override the test.
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 test -z "$as_dir" && as_dir=.
2180 for ac_exec_ext in '' $ac_executable_extensions; do
2181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2182 ac_cv_prog_CC="${ac_tool_prefix}cc"
2183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 if test -n "$CC"; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2195 $as_echo "$CC" >&6; }
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2198 $as_echo "no" >&6; }
2204 if test -z "$CC"; then
2205 # Extract the first word of "cc", so it can be a program name with args.
2206 set dummy cc; ac_word=$2
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2208 $as_echo_n "checking for $ac_word... " >&6; }
2209 if ${ac_cv_prog_CC+:} false; then :
2210 $as_echo_n "(cached) " >&6
2212 if test -n "$CC"; then
2213 ac_cv_prog_CC="$CC" # Let the user override the test.
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2223 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2224 ac_prog_rejected=yes
2228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2235 if test $ac_prog_rejected = yes; then
2236 # We found a bogon in the path, so make sure we never use it.
2237 set dummy $ac_cv_prog_CC
2239 if test $# != 0; then
2240 # We chose a different compiler from the bogus one.
2241 # However, it has the same basename, so the bogon will be chosen
2242 # first if we set CC to just the basename; use the full file name.
2244 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2250 if test -n "$CC"; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2252 $as_echo "$CC" >&6; }
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2255 $as_echo "no" >&6; }
2260 if test -z "$CC"; then
2261 if test -n "$ac_tool_prefix"; then
2262 for ac_prog in cl.exe
2264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2265 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2267 $as_echo_n "checking for $ac_word... " >&6; }
2268 if ${ac_cv_prog_CC+:} false; then :
2269 $as_echo_n "(cached) " >&6
2271 if test -n "$CC"; then
2272 ac_cv_prog_CC="$CC" # Let the user override the test.
2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 test -z "$as_dir" && as_dir=.
2279 for ac_exec_ext in '' $ac_executable_extensions; do
2280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2281 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2292 if test -n "$CC"; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2294 $as_echo "$CC" >&6; }
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2297 $as_echo "no" >&6; }
2301 test -n "$CC" && break
2304 if test -z "$CC"; then
2306 for ac_prog in cl.exe
2308 # Extract the first word of "$ac_prog", so it can be a program name with args.
2309 set dummy $ac_prog; ac_word=$2
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2311 $as_echo_n "checking for $ac_word... " >&6; }
2312 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2313 $as_echo_n "(cached) " >&6
2315 if test -n "$ac_ct_CC"; then
2316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 test -z "$as_dir" && as_dir=.
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2325 ac_cv_prog_ac_ct_CC="$ac_prog"
2326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2336 if test -n "$ac_ct_CC"; then
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2338 $as_echo "$ac_ct_CC" >&6; }
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2341 $as_echo "no" >&6; }
2345 test -n "$ac_ct_CC" && break
2348 if test "x$ac_ct_CC" = x; then
2351 case $cross_compiling:$ac_tool_warned in
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2355 ac_tool_warned=yes ;;
2364 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2366 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2367 See \
`config.log' for more details" "$LINENO" 5; }
2369 # Provide some information about the compiler.
2370 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2373 for ac_option in --version -v -V -qversion; do
2374 { { ac_try="$ac_compiler $ac_option >&5"
2376 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2377 *) ac_try_echo
=$ac_try;;
2379 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2380 $as_echo "$ac_try_echo"; } >&5
2381 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2383 if test -s conftest.err
; then
2385 ... rest of stderr output deleted ...
2386 10q' conftest.err
>conftest.er1
2387 cat conftest.er1
>&5
2389 rm -f conftest.er1 conftest.err
2390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2391 test $ac_status = 0; }
2394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2395 /* end confdefs.h. */
2405 ac_clean_files_save
=$ac_clean_files
2406 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2407 # Try to create an executable without -o first, disregard a.out.
2408 # It will help us diagnose broken compilers, and finding out an intuition
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2411 $as_echo_n "checking whether the C compiler works... " >&6; }
2412 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2414 # The possible output files:
2415 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2418 for ac_file
in $ac_files
2421 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2422 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2427 if { { ac_try
="$ac_link_default"
2429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2430 *) ac_try_echo=$ac_try;;
2432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2433 $as_echo "$ac_try_echo"; } >&5
2434 (eval "$ac_link_default") 2>&5
2436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2437 test $ac_status = 0; }; then :
2438 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2439 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2440 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2441 # so that the user can short-circuit this test for compilers unknown to
2443 for ac_file in $ac_files ''
2445 test -f "$ac_file" || continue
2447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2450 # We found the default executable, but exeext='' is most
2454 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2456 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2458 # We set ac_cv_exeext here because the later test for it is not
2459 # safe: cross compilers may not add the suffix if given an `-o'
2460 # argument, so we may need to know it at that point already.
2461 # Even if this section looks crufty: it has the advantage of
2468 test "$ac_cv_exeext" = no && ac_cv_exeext=
2473 if test -z "$ac_file"; then :
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2475 $as_echo "no" >&6; }
2476 $as_echo "$as_me: failed program was:" >&5
2477 sed 's
/^
/|
/' conftest.$ac_ext >&5
2479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2480 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2481 as_fn_error 77 "C compiler cannot create executables
2482 See \`config.log
' for more details" "$LINENO" 5; }
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2485 $as_echo "yes" >&6; }
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2488 $as_echo_n "checking for C compiler default output file name... " >&6; }
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2490 $as_echo "$ac_file" >&6; }
2491 ac_exeext=$ac_cv_exeext
2493 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2494 ac_clean_files=$ac_clean_files_save
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2496 $as_echo_n "checking for suffix of executables... " >&6; }
2497 if { { ac_try="$ac_link"
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2503 $as_echo "$ac_try_echo"; } >&5
2504 (eval "$ac_link") 2>&5
2506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2507 test $ac_status = 0; }; then :
2508 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2509 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2510 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2512 for ac_file
in conftest.exe conftest conftest.
*; do
2513 test -f "$ac_file" ||
continue
2515 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2516 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2524 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2525 See \`config.log' for more details" "$LINENO" 5; }
2527 rm -f conftest conftest
$ac_cv_exeext
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2529 $as_echo "$ac_cv_exeext" >&6; }
2531 rm -f conftest.
$ac_ext
2532 EXEEXT
=$ac_cv_exeext
2534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2535 /* end confdefs.h. */
2540 FILE *f = fopen ("conftest.out", "w");
2541 return ferror (f) || fclose (f) != 0;
2547 ac_clean_files
="$ac_clean_files conftest.out"
2548 # Check that the compiler produces executables we can run. If not, either
2549 # the compiler is broken, or we cross compile.
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2551 $as_echo_n "checking whether we are cross compiling... " >&6; }
2552 if test "$cross_compiling" != yes; then
2553 { { ac_try
="$ac_link"
2555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2559 $as_echo "$ac_try_echo"; } >&5
2560 (eval "$ac_link") 2>&5
2562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2563 test $ac_status = 0; }
2564 if { ac_try='./conftest$ac_cv_exeext'
2565 { { case "(($ac_try" in
2566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2567 *) ac_try_echo
=$ac_try;;
2569 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2570 $as_echo "$ac_try_echo"; } >&5
2571 (eval "$ac_try") 2>&5
2573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2574 test $ac_status = 0; }; }; then
2577 if test "$cross_compiling" = maybe
; then
2580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2582 as_fn_error $?
"cannot run C compiled programs.
2583 If you meant to cross compile, use \`--host'.
2584 See \`config.log' for more details" "$LINENO" 5; }
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2589 $as_echo "$cross_compiling" >&6; }
2591 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2592 ac_clean_files
=$ac_clean_files_save
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2594 $as_echo_n "checking for suffix of object files... " >&6; }
2595 if ${ac_cv_objext+:} false
; then :
2596 $as_echo_n "(cached) " >&6
2598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2599 /* end confdefs.h. */
2609 rm -f conftest.o conftest.obj
2610 if { { ac_try
="$ac_compile"
2612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2613 *) ac_try_echo=$ac_try;;
2615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2616 $as_echo "$ac_try_echo"; } >&5
2617 (eval "$ac_compile") 2>&5
2619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2620 test $ac_status = 0; }; then :
2621 for ac_file in conftest.o conftest.obj conftest.*; do
2622 test -f "$ac_file" || continue;
2624 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2625 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2630 $as_echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2635 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2636 See \
`config.log' for more details" "$LINENO" 5; }
2638 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2641 $as_echo "$ac_cv_objext" >&6; }
2642 OBJEXT=$ac_cv_objext
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2645 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2646 if ${ac_cv_c_compiler_gnu+:} false; then :
2647 $as_echo_n "(cached) " >&6
2649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650 /* end confdefs.h. */
2663 if ac_fn_c_try_compile "$LINENO"; then :
2668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2673 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2674 if test $ac_compiler_gnu = yes; then
2679 ac_test_CFLAGS=${CFLAGS+set}
2680 ac_save_CFLAGS=$CFLAGS
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2682 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2683 if ${ac_cv_prog_cc_g+:} false; then :
2684 $as_echo_n "(cached) " >&6
2686 ac_save_c_werror_flag=$ac_c_werror_flag
2687 ac_c_werror_flag=yes
2690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2691 /* end confdefs.h. */
2701 if ac_fn_c_try_compile "$LINENO"; then :
2705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2706 /* end confdefs.h. */
2716 if ac_fn_c_try_compile "$LINENO"; then :
2719 ac_c_werror_flag=$ac_save_c_werror_flag
2721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2722 /* end confdefs.h. */
2732 if ac_fn_c_try_compile "$LINENO"; then :
2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 ac_c_werror_flag=$ac_save_c_werror_flag
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2743 $as_echo "$ac_cv_prog_cc_g" >&6; }
2744 if test "$ac_test_CFLAGS" = set; then
2745 CFLAGS=$ac_save_CFLAGS
2746 elif test $ac_cv_prog_cc_g = yes; then
2747 if test "$GCC" = yes; then
2753 if test "$GCC" = yes; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2760 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2761 if ${ac_cv_prog_cc_c89+:} false; then :
2762 $as_echo_n "(cached) " >&6
2764 ac_cv_prog_cc_c89=no
2766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2767 /* end confdefs.h. */
2771 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2772 struct buf { int x; };
2773 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2774 static char *e (p, i)
2780 static char *f (char * (*g) (char **, int), char **p, ...)
2785 s = g (p, va_arg (v,int));
2790 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2791 function prototypes and stuff, but not '\xHH' hex character constants.
2792 These don't provoke an error unfortunately, instead are silently treated
2793 as 'x'. The following induces an error, until -std is added to get
2794 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2795 array size at least. It's necessary to write '\x00'==0 to get something
2796 that's true only with -std. */
2797 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2799 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2800 inside strings and character constants. */
2802 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2804 int test (int i, double x);
2805 struct s1 {int (*f) (int a);};
2806 struct s2 {int (*f) (double a);};
2807 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2813 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2818 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2819 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2821 CC="$ac_save_CC $ac_arg"
2822 if ac_fn_c_try_compile "$LINENO"; then :
2823 ac_cv_prog_cc_c89=$ac_arg
2825 rm -f core conftest.err conftest.$ac_objext
2826 test "x$ac_cv_prog_cc_c89" != "xno" && break
2828 rm -f conftest.$ac_ext
2833 case "x$ac_cv_prog_cc_c89" in
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2836 $as_echo "none needed" >&6; } ;;
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2839 $as_echo "unsupported" >&6; } ;;
2841 CC="$CC $ac_cv_prog_cc_c89"
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2843 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2845 if test "x$ac_cv_prog_cc_c89" != xno; then :
2850 ac_cpp='$CPP $CPPFLAGS'
2851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2856 ac_cpp='$CXXCPP $CPPFLAGS'
2857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2860 if test -z "$CXX"; then
2861 if test -n "$CCC"; then
2864 if test -n "$ac_tool_prefix"; then
2865 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2868 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 $as_echo_n "checking for $ac_word... " >&6; }
2871 if ${ac_cv_prog_CXX+:} false; then :
2872 $as_echo_n "(cached) " >&6
2874 if test -n "$CXX"; then
2875 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 if test -n "$CXX"; then
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2897 $as_echo "$CXX" >&6; }
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 $as_echo "no" >&6; }
2904 test -n "$CXX" && break
2907 if test -z "$CXX"; then
2909 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2911 # Extract the first word of "$ac_prog", so it can be a program name with args.
2912 set dummy $ac_prog; ac_word=$2
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2916 $as_echo_n "(cached) " >&6
2918 if test -n "$ac_ct_CXX"; then
2919 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928 ac_cv_prog_ac_ct_CXX="$ac_prog"
2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2939 if test -n "$ac_ct_CXX"; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2941 $as_echo "$ac_ct_CXX" >&6; }
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 $as_echo "no" >&6; }
2948 test -n "$ac_ct_CXX" && break
2951 if test "x$ac_ct_CXX" = x; then
2954 case $cross_compiling:$ac_tool_warned in
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2958 ac_tool_warned=yes ;;
2966 # Provide some information about the compiler.
2967 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2970 for ac_option in --version -v -V -qversion; do
2971 { { ac_try="$ac_compiler $ac_option >&5"
2973 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2974 *) ac_try_echo
=$ac_try;;
2976 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2977 $as_echo "$ac_try_echo"; } >&5
2978 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2980 if test -s conftest.err
; then
2982 ... rest of stderr output deleted ...
2983 10q' conftest.err
>conftest.er1
2984 cat conftest.er1
>&5
2986 rm -f conftest.er1 conftest.err
2987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2988 test $ac_status = 0; }
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2992 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2993 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
2994 $as_echo_n "(cached) " >&6
2996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2997 /* end confdefs.h. */
3010 if ac_fn_cxx_try_compile
"$LINENO"; then :
3015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3016 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3020 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3021 if test $ac_compiler_gnu = yes; then
3026 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3027 ac_save_CXXFLAGS
=$CXXFLAGS
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3029 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3030 if ${ac_cv_prog_cxx_g+:} false
; then :
3031 $as_echo_n "(cached) " >&6
3033 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3034 ac_cxx_werror_flag
=yes
3037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h. */
3048 if ac_fn_cxx_try_compile
"$LINENO"; then :
3049 ac_cv_prog_cxx_g
=yes
3052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3053 /* end confdefs.h. */
3063 if ac_fn_cxx_try_compile
"$LINENO"; then :
3066 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3069 /* end confdefs.h. */
3079 if ac_fn_cxx_try_compile
"$LINENO"; then :
3080 ac_cv_prog_cxx_g
=yes
3082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3087 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3090 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3091 if test "$ac_test_CXXFLAGS" = set; then
3092 CXXFLAGS
=$ac_save_CXXFLAGS
3093 elif test $ac_cv_prog_cxx_g = yes; then
3094 if test "$GXX" = yes; then
3100 if test "$GXX" = yes; then
3107 ac_cpp
='$CPP $CPPFLAGS'
3108 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3109 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3112 if test -n "$ac_tool_prefix"; then
3113 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3114 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116 $as_echo_n "checking for $ac_word... " >&6; }
3117 if ${ac_cv_prog_AR+:} false
; then :
3118 $as_echo_n "(cached) " >&6
3120 if test -n "$AR"; then
3121 ac_cv_prog_AR
="$AR" # Let the user override the test.
3123 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3127 test -z "$as_dir" && as_dir
=.
3128 for ac_exec_ext
in '' $ac_executable_extensions; do
3129 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3130 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 if test -n "$AR"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3143 $as_echo "$AR" >&6; }
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3151 if test -z "$ac_cv_prog_AR"; then
3153 # Extract the first word of "ar", so it can be a program name with args.
3154 set dummy
ar; ac_word
=$2
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3156 $as_echo_n "checking for $ac_word... " >&6; }
3157 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
3158 $as_echo_n "(cached) " >&6
3160 if test -n "$ac_ct_AR"; then
3161 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
3163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3167 test -z "$as_dir" && as_dir
=.
3168 for ac_exec_ext
in '' $ac_executable_extensions; do
3169 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3170 ac_cv_prog_ac_ct_AR
="ar"
3171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
3181 if test -n "$ac_ct_AR"; then
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3183 $as_echo "$ac_ct_AR" >&6; }
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186 $as_echo "no" >&6; }
3189 if test "x$ac_ct_AR" = x
; then
3192 case $cross_compiling:$ac_tool_warned in
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3196 ac_tool_warned
=yes ;;
3204 if test -n "$ac_tool_prefix"; then
3205 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3206 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208 $as_echo_n "checking for $ac_word... " >&6; }
3209 if ${ac_cv_prog_RANLIB+:} false
; then :
3210 $as_echo_n "(cached) " >&6
3212 if test -n "$RANLIB"; then
3213 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3219 test -z "$as_dir" && as_dir
=.
3220 for ac_exec_ext
in '' $ac_executable_extensions; do
3221 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3222 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232 RANLIB
=$ac_cv_prog_RANLIB
3233 if test -n "$RANLIB"; then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3235 $as_echo "$RANLIB" >&6; }
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; }
3243 if test -z "$ac_cv_prog_RANLIB"; then
3244 ac_ct_RANLIB
=$RANLIB
3245 # Extract the first word of "ranlib", so it can be a program name with args.
3246 set dummy ranlib
; ac_word
=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
3250 $as_echo_n "(cached) " >&6
3252 if test -n "$ac_ct_RANLIB"; then
3253 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3259 test -z "$as_dir" && as_dir
=.
3260 for ac_exec_ext
in '' $ac_executable_extensions; do
3261 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3262 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3273 if test -n "$ac_ct_RANLIB"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3275 $as_echo "$ac_ct_RANLIB" >&6; }
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3281 if test "x$ac_ct_RANLIB" = x
; then
3284 case $cross_compiling:$ac_tool_warned in
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3288 ac_tool_warned
=yes ;;
3290 RANLIB
=$ac_ct_RANLIB
3293 RANLIB
="$ac_cv_prog_RANLIB"
3297 #-------------------------------------------------------------------------
3298 # MCPPBS specific program checks
3299 #-------------------------------------------------------------------------
3300 # These macros check to see if we can do a stow-based install and also
3301 # check for an isa simulator suitable for running the unit test programs
3304 # Find a good install program. We prefer a C program (faster),
3305 # so one script is as good as another. But avoid the broken or
3306 # incompatible versions:
3307 # SysV /etc/install, /usr/sbin/install
3308 # SunOS /usr/etc/install
3309 # IRIX /sbin/install
3311 # AmigaOS /C/install, which installs bootblocks on floppy discs
3312 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3313 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3314 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3315 # OS/2's system install, which has a completely different semantic
3316 # ./install, which can be erroneously created by make from ./install.sh.
3317 # Reject install programs that cannot install multiple files.
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3319 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3320 if test -z "$INSTALL"; then
3321 if ${ac_cv_path_install+:} false
; then :
3322 $as_echo_n "(cached) " >&6
3324 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3328 test -z "$as_dir" && as_dir
=.
3329 # Account for people who put trailing slashes in PATH elements.
3330 case $as_dir/ in #((
3331 .
/ | .
// |
/[cC
]/* | \
3332 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3333 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3336 # OSF1 and SCO ODT 3.0 have their own names for install.
3337 # Don't use installbsd from OSF since it installs stuff as root
3339 for ac_prog
in ginstall scoinst
install; do
3340 for ac_exec_ext
in '' $ac_executable_extensions; do
3341 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
3342 if test $ac_prog = install &&
3343 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3344 # AIX install. It has an incompatible calling convention.
3346 elif test $ac_prog = install &&
3347 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3348 # program-specific install script used by HP pwplus--don't use.
3351 rm -rf conftest.one conftest.two conftest.dir
3352 echo one
> conftest.one
3353 echo two
> conftest.two
3355 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3356 test -s conftest.one
&& test -s conftest.two
&&
3357 test -s conftest.dir
/conftest.one
&&
3358 test -s conftest.dir
/conftest.two
3360 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3373 rm -rf conftest.one conftest.two conftest.dir
3376 if test "${ac_cv_path_install+set}" = set; then
3377 INSTALL
=$ac_cv_path_install
3379 # As a last resort, use the slow shell script. Don't cache a
3380 # value for INSTALL within a source directory, because that will
3381 # break other packages using the cache if that directory is
3382 # removed, or if the value is a relative name.
3383 INSTALL
=$ac_install_sh
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3387 $as_echo "$INSTALL" >&6; }
3389 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3390 # It thinks the first close brace ends the variable substitution.
3391 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3393 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3395 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3399 # Configure command line option
3401 # Check whether --enable-stow was given.
3402 if test "${enable_stow+set}" = set; then :
3403 enableval
=$enable_stow; enable_stow
="yes"
3411 # Environment variables
3416 # Check for install script
3420 # Deterimine if native build and set prefix appropriately
3422 if test ${enable_stow} = "yes" ; then :
3426 # Extract the first word of "$ac_prog", so it can be a program name with args.
3427 set dummy
$ac_prog; ac_word
=$2
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if ${ac_cv_prog_stow+:} false
; then :
3431 $as_echo_n "(cached) " >&6
3433 if test -n "$stow"; then
3434 ac_cv_prog_stow
="$stow" # Let the user override the test.
3436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3440 test -z "$as_dir" && as_dir
=.
3441 for ac_exec_ext
in '' $ac_executable_extensions; do
3442 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3443 ac_cv_prog_stow
="$ac_prog"
3444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 stow
=$ac_cv_prog_stow
3454 if test -n "$stow"; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stow" >&5
3456 $as_echo "$stow" >&6; }
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3463 test -n "$stow" && break
3465 test -n "$stow" || stow
="no"
3467 if test ${stow} = "no" ; then :
3469 as_fn_error $?
"Cannot use --enable-stow since stow is not available" "$LINENO" 5
3473 # Check if native or non-native build
3475 if test "${build}" = "${host}" ; then :
3478 # build == host so this is a native build. Make sure --prefix not
3479 # set and $STOW_PREFIX is set, then set prefix=$STOW_PREFIX.
3481 if test "${prefix}" = "NONE" && test -n "${STOW_PREFIX}" ; then :
3483 prefix
="${STOW_PREFIX}"
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_PREFIX from environment" >&5
3485 $as_echo "$as_me: Using \$STOW_PREFIX from environment" >&6;}
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
3487 $as_echo "$as_me: prefix=${prefix}" >&6;}
3495 # build != host so this is a non-native build. Make sure --prefix
3496 # not set and $STOW_ROOT is set, then set
3497 # prefix=$STOW_ROOT/${host_alias}.
3499 if test "${prefix}" = "NONE" && test -n "${STOW_ROOT}" ; then :
3501 prefix
="${STOW_ROOT}/${host_alias}"
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_ROOT from environment" >&5
3503 $as_echo "$as_me: Using \$STOW_ROOT from environment" >&6;}
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
3505 $as_echo "$as_me: prefix=${prefix}" >&6;}
3517 if test "${build}" != "${host}" ; then :
3519 if test -n "$ac_tool_prefix"; then
3520 for ac_prog
in isa-run run
3522 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3523 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525 $as_echo_n "checking for $ac_word... " >&6; }
3526 if ${ac_cv_prog_RUN+:} false
; then :
3527 $as_echo_n "(cached) " >&6
3529 if test -n "$RUN"; then
3530 ac_cv_prog_RUN
="$RUN" # Let the user override the test.
3532 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3536 test -z "$as_dir" && as_dir
=.
3537 for ac_exec_ext
in '' $ac_executable_extensions; do
3538 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3539 ac_cv_prog_RUN
="$ac_tool_prefix$ac_prog"
3540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 if test -n "$RUN"; then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUN" >&5
3552 $as_echo "$RUN" >&6; }
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3559 test -n "$RUN" && break
3562 if test -z "$RUN"; then
3564 for ac_prog
in isa-run run
3566 # Extract the first word of "$ac_prog", so it can be a program name with args.
3567 set dummy
$ac_prog; ac_word
=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if ${ac_cv_prog_ac_ct_RUN+:} false
; then :
3571 $as_echo_n "(cached) " >&6
3573 if test -n "$ac_ct_RUN"; then
3574 ac_cv_prog_ac_ct_RUN
="$ac_ct_RUN" # Let the user override the test.
3576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3580 test -z "$as_dir" && as_dir
=.
3581 for ac_exec_ext
in '' $ac_executable_extensions; do
3582 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3583 ac_cv_prog_ac_ct_RUN
="$ac_prog"
3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3593 ac_ct_RUN
=$ac_cv_prog_ac_ct_RUN
3594 if test -n "$ac_ct_RUN"; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RUN" >&5
3596 $as_echo "$ac_ct_RUN" >&6; }
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3603 test -n "$ac_ct_RUN" && break
3606 if test "x$ac_ct_RUN" = x
; then
3609 case $cross_compiling:$ac_tool_warned in
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3613 ac_tool_warned
=yes ;;
3619 if test ${RUN} = "no" ; then :
3621 as_fn_error $?
"Cannot find simulator for target ${target_alias}" "$LINENO" 5
3634 #-------------------------------------------------------------------------
3635 # Checks for header files
3636 #-------------------------------------------------------------------------
3640 ac_cpp
='$CPP $CPPFLAGS'
3641 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3645 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3646 # On Suns, sometimes $CPP names a directory.
3647 if test -n "$CPP" && test -d "$CPP"; then
3650 if test -z "$CPP"; then
3651 if ${ac_cv_prog_CPP+:} false
; then :
3652 $as_echo_n "(cached) " >&6
3654 # Double quotes because CPP needs to be expanded
3655 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3658 for ac_c_preproc_warn_flag
in '' yes
3660 # Use a header file that comes with gcc, so configuring glibc
3661 # with a fresh cross-compiler works.
3662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3663 # <limits.h> exists even on freestanding compilers.
3664 # On the NeXT, cc -E runs the code through the compiler's parser,
3665 # not just through cpp. "Syntax error" is here to catch this case.
3666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3669 # include <limits.h>
3671 # include <assert.h>
3675 if ac_fn_c_try_cpp
"$LINENO"; then :
3678 # Broken: fails on valid input.
3681 rm -f conftest.err conftest.i conftest.
$ac_ext
3683 # OK, works on sane cases. Now check whether nonexistent headers
3684 # can be detected and how.
3685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3687 #include <ac_nonexistent.h>
3689 if ac_fn_c_try_cpp
"$LINENO"; then :
3690 # Broken: success on invalid input.
3693 # Passes both tests.
3697 rm -f conftest.err conftest.i conftest.
$ac_ext
3700 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3701 rm -f conftest.i conftest.err conftest.
$ac_ext
3702 if $ac_preproc_ok; then :
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3715 $as_echo "$CPP" >&6; }
3717 for ac_c_preproc_warn_flag
in '' yes
3719 # Use a header file that comes with gcc, so configuring glibc
3720 # with a fresh cross-compiler works.
3721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3722 # <limits.h> exists even on freestanding compilers.
3723 # On the NeXT, cc -E runs the code through the compiler's parser,
3724 # not just through cpp. "Syntax error" is here to catch this case.
3725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3728 # include <limits.h>
3730 # include <assert.h>
3734 if ac_fn_c_try_cpp
"$LINENO"; then :
3737 # Broken: fails on valid input.
3740 rm -f conftest.err conftest.i conftest.
$ac_ext
3742 # OK, works on sane cases. Now check whether nonexistent headers
3743 # can be detected and how.
3744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3746 #include <ac_nonexistent.h>
3748 if ac_fn_c_try_cpp
"$LINENO"; then :
3749 # Broken: success on invalid input.
3752 # Passes both tests.
3756 rm -f conftest.err conftest.i conftest.
$ac_ext
3759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3760 rm -f conftest.i conftest.err conftest.
$ac_ext
3761 if $ac_preproc_ok; then :
3764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3766 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3767 See \`config.log' for more details" "$LINENO" 5; }
3771 ac_cpp
='$CPP $CPPFLAGS'
3772 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3778 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3779 if ${ac_cv_path_GREP+:} false
; then :
3780 $as_echo_n "(cached) " >&6
3782 if test -z "$GREP"; then
3783 ac_path_GREP_found
=false
3784 # Loop through the user's path and test for each of PROGNAME-LIST
3785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3786 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3789 test -z "$as_dir" && as_dir
=.
3790 for ac_prog
in grep ggrep
; do
3791 for ac_exec_ext
in '' $ac_executable_extensions; do
3792 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3793 as_fn_executable_p
"$ac_path_GREP" ||
continue
3794 # Check for GNU ac_path_GREP and select it if it is found.
3795 # Check for GNU $ac_path_GREP
3796 case `"$ac_path_GREP" --version 2>&1` in
3798 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3801 $as_echo_n 0123456789 >"conftest.in"
3804 cat "conftest.in" "conftest.in" >"conftest.tmp"
3805 mv "conftest.tmp" "conftest.in"
3806 cp "conftest.in" "conftest.nl"
3807 $as_echo 'GREP' >> "conftest.nl"
3808 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3809 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3810 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3811 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3812 # Best one so far, save it but keep looking for a better one
3813 ac_cv_path_GREP
="$ac_path_GREP"
3814 ac_path_GREP_max
=$ac_count
3816 # 10*(2^10) chars as input seems more than enough
3817 test $ac_count -gt 10 && break
3819 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3822 $ac_path_GREP_found && break 3
3827 if test -z "$ac_cv_path_GREP"; then
3828 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3831 ac_cv_path_GREP
=$GREP
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3836 $as_echo "$ac_cv_path_GREP" >&6; }
3837 GREP
="$ac_cv_path_GREP"
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3841 $as_echo_n "checking for egrep... " >&6; }
3842 if ${ac_cv_path_EGREP+:} false
; then :
3843 $as_echo_n "(cached) " >&6
3845 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3846 then ac_cv_path_EGREP
="$GREP -E"
3848 if test -z "$EGREP"; then
3849 ac_path_EGREP_found
=false
3850 # Loop through the user's path and test for each of PROGNAME-LIST
3851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3852 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3855 test -z "$as_dir" && as_dir
=.
3856 for ac_prog
in egrep; do
3857 for ac_exec_ext
in '' $ac_executable_extensions; do
3858 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3859 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3860 # Check for GNU ac_path_EGREP and select it if it is found.
3861 # Check for GNU $ac_path_EGREP
3862 case `"$ac_path_EGREP" --version 2>&1` in
3864 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3867 $as_echo_n 0123456789 >"conftest.in"
3870 cat "conftest.in" "conftest.in" >"conftest.tmp"
3871 mv "conftest.tmp" "conftest.in"
3872 cp "conftest.in" "conftest.nl"
3873 $as_echo 'EGREP' >> "conftest.nl"
3874 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3875 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3876 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3877 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3878 # Best one so far, save it but keep looking for a better one
3879 ac_cv_path_EGREP
="$ac_path_EGREP"
3880 ac_path_EGREP_max
=$ac_count
3882 # 10*(2^10) chars as input seems more than enough
3883 test $ac_count -gt 10 && break
3885 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3888 $ac_path_EGREP_found && break 3
3893 if test -z "$ac_cv_path_EGREP"; then
3894 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3897 ac_cv_path_EGREP
=$EGREP
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3903 $as_echo "$ac_cv_path_EGREP" >&6; }
3904 EGREP
="$ac_cv_path_EGREP"
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3908 $as_echo_n "checking for ANSI C header files... " >&6; }
3909 if ${ac_cv_header_stdc+:} false
; then :
3910 $as_echo_n "(cached) " >&6
3912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3927 if ac_fn_c_try_compile
"$LINENO"; then :
3928 ac_cv_header_stdc
=yes
3930 ac_cv_header_stdc
=no
3932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3934 if test $ac_cv_header_stdc = yes; then
3935 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3942 $EGREP "memchr" >/dev
/null
2>&1; then :
3945 ac_cv_header_stdc
=no
3951 if test $ac_cv_header_stdc = yes; then
3952 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3959 $EGREP "free" >/dev
/null
2>&1; then :
3962 ac_cv_header_stdc
=no
3968 if test $ac_cv_header_stdc = yes; then
3969 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3970 if test "$cross_compiling" = yes; then :
3973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3977 #if ((' ' & 0x0FF) == 0x020)
3978 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3979 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3981 # define ISLOWER(c) \
3982 (('a' <= (c) && (c) <= 'i') \
3983 || ('j' <= (c) && (c) <= 'r') \
3984 || ('s' <= (c) && (c) <= 'z'))
3985 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3988 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3993 for (i = 0; i < 256; i++)
3994 if (XOR (islower (i), ISLOWER (i))
3995 || toupper (i) != TOUPPER (i))
4000 if ac_fn_c_try_run
"$LINENO"; then :
4003 ac_cv_header_stdc
=no
4005 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4006 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4012 $as_echo "$ac_cv_header_stdc" >&6; }
4013 if test $ac_cv_header_stdc = yes; then
4015 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4020 #-------------------------------------------------------------------------
4021 # Default compiler flags
4022 #-------------------------------------------------------------------------
4024 CFLAGS
="-Wall -O2 -Wno-unused"
4026 CXXFLAGS
="-Wall -O2 -std=c++11"
4029 #-------------------------------------------------------------------------
4030 # MCPPBS subproject list
4031 #-------------------------------------------------------------------------
4032 # Order list so that subprojects only depend on those listed earlier.
4033 # The '*' suffix indicates an optional subproject. The '**' suffix
4034 # indicates an optional subproject which is also the name of a group.
4038 # Add command line argument to enable all optional subprojects
4040 # Check whether --enable-optional-subprojects was given.
4041 if test "${enable_optional_subprojects+set}" = set; then :
4042 enableval
=$enable_optional_subprojects;
4046 # Loop through the subprojects given in the macro argument
4050 # Determine if this is a required or an optional subproject
4054 # Determine if there is a group with the same name
4058 # Create variations of the subproject name suitable for use as a CPP
4059 # enabled define, a shell enabled variable, and a shell function
4071 # Add subproject to our running list
4073 subprojects
="$subprojects riscv"
4075 # Process the subproject appropriately. If enabled add it to the
4076 # $enabled_subprojects running shell variable, set a
4077 # SUBPROJECT_ENABLED C define, and include the appropriate
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : riscv" >&5
4082 $as_echo "$as_me: configuring default subproject : riscv" >&6;}
4083 ac_config_files
="$ac_config_files riscv.mk:riscv/riscv.mk.in"
4085 enable_riscv_sproj
="yes"
4086 subprojects_enabled
="$subprojects_enabled riscv"
4088 $as_echo "#define RISCV_ENABLED /**/" >>confdefs.h
4091 # Check whether --with-fesvr was given.
4092 if test "${with_fesvr+set}" = set; then :
4093 withval
=$with_fesvr;
4094 LDFLAGS
="-L$withval/lib $LDFLAGS"
4095 CFLAGS
="-I$withval/include $CFLAGS"
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfesvr_is_present in -lfesvr" >&5
4102 $as_echo_n "checking for libfesvr_is_present in -lfesvr... " >&6; }
4103 if ${ac_cv_lib_fesvr_libfesvr_is_present+:} false
; then :
4104 $as_echo_n "(cached) " >&6
4106 ac_check_lib_save_LIBS
=$LIBS
4107 LIBS
="-lfesvr -pthread $LIBS"
4108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4111 /* Override any GCC internal prototype to avoid an error.
4112 Use char because int might match the return type of a GCC
4113 builtin and then its argument prototype would still apply. */
4117 char libfesvr_is_present ();
4121 return libfesvr_is_present ();
4126 if ac_fn_c_try_link
"$LINENO"; then :
4127 ac_cv_lib_fesvr_libfesvr_is_present
=yes
4129 ac_cv_lib_fesvr_libfesvr_is_present
=no
4131 rm -f core conftest.err conftest.
$ac_objext \
4132 conftest
$ac_exeext conftest.
$ac_ext
4133 LIBS
=$ac_check_lib_save_LIBS
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fesvr_libfesvr_is_present" >&5
4136 $as_echo "$ac_cv_lib_fesvr_libfesvr_is_present" >&6; }
4137 if test "x$ac_cv_lib_fesvr_libfesvr_is_present" = xyes
; then :
4138 cat >>confdefs.h
<<_ACEOF
4139 #define HAVE_LIBFESVR 1
4142 LIBS
="-lfesvr $LIBS"
4145 as_fn_error $?
"libfesvr is required" "$LINENO" 5
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
4150 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
4151 if ${ac_cv_lib_pthread_pthread_create+:} false
; then :
4152 $as_echo_n "(cached) " >&6
4154 ac_check_lib_save_LIBS
=$LIBS
4155 LIBS
="-lpthread $LIBS"
4156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4159 /* Override any GCC internal prototype to avoid an error.
4160 Use char because int might match the return type of a GCC
4161 builtin and then its argument prototype would still apply. */
4165 char pthread_create ();
4169 return pthread_create ();
4174 if ac_fn_c_try_link
"$LINENO"; then :
4175 ac_cv_lib_pthread_pthread_create
=yes
4177 ac_cv_lib_pthread_pthread_create
=no
4179 rm -f core conftest.err conftest.
$ac_objext \
4180 conftest
$ac_exeext conftest.
$ac_ext
4181 LIBS
=$ac_check_lib_save_LIBS
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
4184 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
4185 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
; then :
4186 cat >>confdefs.h
<<_ACEOF
4187 #define HAVE_LIBPTHREAD 1
4190 LIBS
="-lpthread $LIBS"
4193 as_fn_error $?
"libpthread is required" "$LINENO" 5
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4198 $as_echo_n "checking for dlopen in -ldl... " >&6; }
4199 if ${ac_cv_lib_dl_dlopen+:} false
; then :
4200 $as_echo_n "(cached) " >&6
4202 ac_check_lib_save_LIBS
=$LIBS
4204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4207 /* Override any GCC internal prototype to avoid an error.
4208 Use char because int might match the return type of a GCC
4209 builtin and then its argument prototype would still apply. */
4222 if ac_fn_c_try_link
"$LINENO"; then :
4223 ac_cv_lib_dl_dlopen
=yes
4225 ac_cv_lib_dl_dlopen
=no
4227 rm -f core conftest.err conftest.
$ac_objext \
4228 conftest
$ac_exeext conftest.
$ac_ext
4229 LIBS
=$ac_check_lib_save_LIBS
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4232 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4233 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
4234 cat >>confdefs.h
<<_ACEOF
4235 #define HAVE_LIBDL 1
4241 as_fn_error $?
"libdl is required" "$LINENO" 5
4245 # Check whether --enable-fpu was given.
4246 if test "${enable_fpu+set}" = set; then :
4247 enableval
=$enable_fpu;
4250 if test "x$enable_fpu" != "xno"; then :
4253 $as_echo "#define RISCV_ENABLE_FPU /**/" >>confdefs.h
4258 # Check whether --enable-64bit was given.
4259 if test "${enable_64bit+set}" = set; then :
4260 enableval
=$enable_64bit;
4263 if test "x$enable_64bit" != "xno"; then :
4266 $as_echo "#define RISCV_ENABLE_64BIT /**/" >>confdefs.h
4271 # Check whether --enable-commitlog was given.
4272 if test "${enable_commitlog+set}" = set; then :
4273 enableval
=$enable_commitlog;
4276 if test "x$enable_commitlog" = "xyes"; then :
4279 $as_echo "#define RISCV_ENABLE_COMMITLOG /**/" >>confdefs.h
4288 # Determine if this is a required or an optional subproject
4292 # Determine if there is a group with the same name
4296 # Create variations of the subproject name suitable for use as a CPP
4297 # enabled define, a shell enabled variable, and a shell function
4309 # Add subproject to our running list
4311 subprojects
="$subprojects hwacha"
4313 # Process the subproject appropriately. If enabled add it to the
4314 # $enabled_subprojects running shell variable, set a
4315 # SUBPROJECT_ENABLED C define, and include the appropriate
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : hwacha" >&5
4320 $as_echo "$as_me: configuring default subproject : hwacha" >&6;}
4321 ac_config_files
="$ac_config_files hwacha.mk:hwacha/hwacha.mk.in"
4323 enable_hwacha_sproj
="yes"
4324 subprojects_enabled
="$subprojects_enabled hwacha"
4326 $as_echo "#define HWACHA_ENABLED /**/" >>confdefs.h
4333 # Determine if this is a required or an optional subproject
4337 # Determine if there is a group with the same name
4341 # Create variations of the subproject name suitable for use as a CPP
4342 # enabled define, a shell enabled variable, and a shell function
4354 # Add subproject to our running list
4356 subprojects
="$subprojects softfloat"
4358 # Process the subproject appropriately. If enabled add it to the
4359 # $enabled_subprojects running shell variable, set a
4360 # SUBPROJECT_ENABLED C define, and include the appropriate
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : softfloat" >&5
4365 $as_echo "$as_me: configuring default subproject : softfloat" >&6;}
4366 ac_config_files
="$ac_config_files softfloat.mk:softfloat/softfloat.mk.in"
4368 enable_softfloat_sproj
="yes"
4369 subprojects_enabled
="$subprojects_enabled softfloat"
4371 $as_echo "#define SOFTFLOAT_ENABLED /**/" >>confdefs.h
4378 # Determine if this is a required or an optional subproject
4382 # Determine if there is a group with the same name
4386 # Create variations of the subproject name suitable for use as a CPP
4387 # enabled define, a shell enabled variable, and a shell function
4399 # Add subproject to our running list
4401 subprojects
="$subprojects spike"
4403 # Process the subproject appropriately. If enabled add it to the
4404 # $enabled_subprojects running shell variable, set a
4405 # SUBPROJECT_ENABLED C define, and include the appropriate
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : spike" >&5
4410 $as_echo "$as_me: configuring default subproject : spike" >&6;}
4411 ac_config_files
="$ac_config_files spike.mk:spike/spike.mk.in"
4413 enable_spike_sproj
="yes"
4414 subprojects_enabled
="$subprojects_enabled spike"
4416 $as_echo "#define SPIKE_ENABLED /**/" >>confdefs.h
4423 # Output make variables
4430 #-------------------------------------------------------------------------
4431 # MCPPBS subproject groups
4432 #-------------------------------------------------------------------------
4433 # If a group has the same name as a subproject then you must add the
4434 # '**' suffix in the subproject list above. The list of subprojects in a
4435 # group should be ordered so that subprojets only depend on those listed
4436 # earlier. Here is an example:
4438 # MCPPBS_GROUP( [group-name], [sproja,sprojb,...] )
4441 #-------------------------------------------------------------------------
4443 #-------------------------------------------------------------------------
4445 ac_config_headers
="$ac_config_headers config.h"
4447 ac_config_files
="$ac_config_files Makefile"
4449 cat >confcache
<<\_ACEOF
4450 # This file is a shell script that caches the results of configure
4451 # tests run on this system so they can be shared between configure
4452 # scripts and configure runs, see configure's option --config-cache.
4453 # It is not useful on other systems. If it contains results you don't
4454 # want to keep, you may remove or edit it.
4456 # config.status only pays attention to the cache file if you give it
4457 # the --recheck option to rerun configure.
4459 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4460 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4465 # The following way of writing the cache mishandles newlines in values,
4466 # but we know of no workaround that is simple, portable, and efficient.
4467 # So, we kill variables containing newlines.
4468 # Ultrix sh set writes to stderr and can't be redirected directly,
4469 # and sets the high bit in the cache file unless we assign to the vars.
4471 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4472 eval ac_val
=\$
$ac_var
4476 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4477 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4480 _ | IFS | as_nl
) ;; #(
4481 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
4482 *) { eval $ac_var=; unset $ac_var;} ;;
4488 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4489 *${as_nl}ac_space
=\
*)
4490 # `set' does not quote correctly, so add quotes: double-quote
4491 # substitution turns \\\\ into \\, and sed turns \\ into \.
4494 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4497 # `set' quotes correctly as required by POSIX, so do not add quotes.
4498 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4507 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4509 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4511 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
4512 if test -w "$cache_file"; then
4513 if test "x$cache_file" != "x/dev/null"; then
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4515 $as_echo "$as_me: updating cache $cache_file" >&6;}
4516 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
4517 cat confcache
>"$cache_file"
4519 case $cache_file in #(
4521 mv -f confcache
"$cache_file"$$
&&
4522 mv -f "$cache_file"$$
"$cache_file" ;; #(
4524 mv -f confcache
"$cache_file" ;;
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4530 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4535 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4536 # Let make expand exec_prefix.
4537 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4539 DEFS
=-DHAVE_CONFIG_H
4544 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4545 # 1. Remove the extension, and $U if already installed.
4546 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
4547 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
4548 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4549 # will be set to the directory where LIBOBJS objects are built.
4550 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4551 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
4555 LTLIBOBJS
=$ac_ltlibobjs
4559 : "${CONFIG_STATUS=./config.status}"
4561 ac_clean_files_save
=$ac_clean_files
4562 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4564 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4566 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4568 # Generated by $as_me.
4569 # Run this file to recreate the current configuration.
4570 # Compiler output produced by configure, useful for debugging
4571 # configure, is in config.log if it exists.
4577 SHELL=\${CONFIG_SHELL-$SHELL}
4580 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
4581 ## -------------------- ##
4582 ## M4sh Initialization. ##
4583 ## -------------------- ##
4585 # Be more Bourne compatible
4586 DUALCASE
=1; export DUALCASE
# for MKS sh
4587 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
4590 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4591 # is contrary to our usage. Disable this feature.
4592 alias -g '${1+"$@"}'='"$@"'
4593 setopt NO_GLOB_SUBST
4595 case `(set -o) 2>/dev/null` in #(
4607 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4608 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4609 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4610 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4611 # Prefer a ksh shell builtin over an external printf program on Solaris,
4612 # but without wasting forks for bash or zsh.
4613 if test -z "$BASH_VERSION$ZSH_VERSION" \
4614 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4615 as_echo='print
-r --'
4616 as_echo_n='print
-rn --'
4617 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4618 as_echo='printf %s
\n'
4619 as_echo_n='printf %s
'
4621 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4622 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
4623 as_echo_n='/usr
/ucb
/echo -n'
4625 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4626 as_echo_n_body='eval
4630 expr "X$arg" : "X\\(.*\\)$as_nl";
4631 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4633 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
4635 export as_echo_n_body
4636 as_echo_n='sh
-c $as_echo_n_body as_echo
'
4639 as_echo='sh
-c $as_echo_body as_echo
'
4642 # The user is always right.
4643 if test "${PATH_SEPARATOR+set}" != set; then
4645 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4646 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4653 # We need space, tab and new line, in precisely that order. Quoting is
4654 # there to prevent editors from complaining about space-tab.
4655 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4656 # splitting by setting IFS to empty value.)
4659 # Find who we are. Look in the path if we contain no directory separator.
4662 *[\\/]* ) as_myself=$0 ;;
4663 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 test -z "$as_dir" && as_dir=.
4668 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4674 # We did not find ourselves, most probably we were run as `sh COMMAND'
4675 # in which case we are not to be found in the path.
4676 if test "x$as_myself" = x
; then
4679 if test ! -f "$as_myself"; then
4680 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4684 # Unset variables that we do not need and which cause bugs (e.g. in
4685 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4686 # suppresses any "Segmentation fault" message there. '((' could
4687 # trigger a bug in pdksh 5.2.14.
4688 for as_var
in BASH_ENV ENV MAIL MAILPATH
4689 do eval test x\
${$as_var+set} = xset \
4690 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
4703 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
4706 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4707 # ----------------------------------------
4708 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4709 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4710 # script with STATUS, using 1 if that was 0.
4713 as_status
=$1; test $as_status -eq 0 && as_status
=1
4715 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
4716 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4718 $as_echo "$as_me: error: $2" >&2
4719 as_fn_exit
$as_status
4723 # as_fn_set_status STATUS
4724 # -----------------------
4725 # Set $? to STATUS, without forking.
4729 } # as_fn_set_status
4733 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4743 # Portably unset VAR.
4746 { eval $1=; unset $1;}
4748 as_unset
=as_fn_unset
4749 # as_fn_append VAR VALUE
4750 # ----------------------
4751 # Append the text in VALUE to the end of the definition contained in VAR. Take
4752 # advantage of any shell optimizations that allow amortized linear growth over
4753 # repeated appends, instead of the typical quadratic growth present in naive
4755 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
4756 eval 'as_fn_append ()
4767 # as_fn_arith ARG...
4768 # ------------------
4769 # Perform arithmetic evaluation on the ARGs, and store the result in the
4770 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4771 # must be portable across $(()) and expr.
4772 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
4773 eval 'as_fn_arith ()
4780 as_val
=`expr "$@" || test $? -eq 1`
4785 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
4786 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
4792 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4793 as_basename
=basename
4798 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
4804 as_me
=`$as_basename -- "$0" ||
4805 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4806 X"$0" : 'X\(//\)$' \| \
4807 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4809 sed '/^.*\/\([^/][^/]*\)\/*$/{
4823 # Avoid depending upon Character Ranges.
4824 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4825 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4826 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4827 as_cr_digits
='0123456789'
4828 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4830 ECHO_C
= ECHO_N
= ECHO_T
=
4831 case `echo -n x` in #(((((
4833 case `echo 'xy\c'` in
4834 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
4836 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
4843 rm -f conf$$ conf$$.exe conf$$.
file
4844 if test -d conf$$.dir
; then
4845 rm -f conf$$.dir
/conf$$.
file
4848 mkdir conf$$.dir
2>/dev
/null
4850 if (echo >conf$$.
file) 2>/dev
/null
; then
4851 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4853 # ... but there are two gotchas:
4854 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4855 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4856 # In both cases, we have to default to `cp -pR'.
4857 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
4859 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4867 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
4868 rmdir conf$$.dir
2>/dev
/null
4873 # Create "$as_dir" as a directory, including parents if necessary.
4878 -*) as_dir
=.
/$as_dir;;
4880 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
4884 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4885 *) as_qdir
=$as_dir;;
4887 as_dirs
="'$as_qdir' $as_dirs"
4888 as_dir
=`$as_dirname -- "$as_dir" ||
4889 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4890 X"$as_dir" : 'X\(//\)[^/]' \| \
4891 X"$as_dir" : 'X\(//\)$' \| \
4892 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4893 $as_echo X"$as_dir" |
4894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4911 test -d "$as_dir" && break
4913 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
4914 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
4918 if mkdir
-p .
2>/dev
/null
; then
4919 as_mkdir_p
='mkdir -p "$as_dir"'
4921 test -d .
/-p && rmdir .
/-p
4926 # as_fn_executable_p FILE
4927 # -----------------------
4928 # Test if FILE is an executable regular file.
4929 as_fn_executable_p
()
4931 test -f "$1" && test -x "$1"
4932 } # as_fn_executable_p
4934 as_executable_p
=as_fn_executable_p
4936 # Sed expression to map a string onto a valid CPP name.
4937 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4939 # Sed expression to map a string onto a valid variable name.
4940 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4944 ## ----------------------------------- ##
4945 ## Main body of $CONFIG_STATUS script. ##
4946 ## ----------------------------------- ##
4948 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
4950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4951 # Save the log message, to keep $0 and so on meaningful, and to
4952 # report actual input values of CONFIG_FILES etc. instead of their
4953 # values after options handling.
4955 This file was extended by RISC-V ISA Simulator $as_me ?, which was
4956 generated by GNU Autoconf 2.69. Invocation command line was
4958 CONFIG_FILES = $CONFIG_FILES
4959 CONFIG_HEADERS = $CONFIG_HEADERS
4960 CONFIG_LINKS = $CONFIG_LINKS
4961 CONFIG_COMMANDS = $CONFIG_COMMANDS
4964 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4969 case $ac_config_files in *"
4970 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
4973 case $ac_config_headers in *"
4974 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
4978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4979 # Files that config.status was made for.
4980 config_files="$ac_config_files"
4981 config_headers="$ac_config_headers"
4985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4987 \`$as_me' instantiates files and other configuration actions
4988 from templates according to the current configuration. Unless the files
4989 and actions are specified as TAGs, all are instantiated by default.
4991 Usage: $0 [OPTION]... [TAG]...
4993 -h, --help print this help, then exit
4994 -V, --version print version number and configuration settings, then exit
4995 --config print configuration, then exit
4996 -q, --quiet, --silent
4997 do not print progress messages
4998 -d, --debug don't remove temporary files
4999 --recheck update $as_me by reconfiguring in the same conditions
5000 --file=FILE[:TEMPLATE]
5001 instantiate the configuration file FILE
5002 --header=FILE[:TEMPLATE]
5003 instantiate the configuration header FILE
5005 Configuration files:
5008 Configuration headers:
5011 Report bugs to <Andrew Waterman>."
5014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5015 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5017 RISC-V ISA Simulator config.status ?
5018 configured by $0, generated by GNU Autoconf 2.69,
5019 with options \\"\$ac_cs_config\\"
5021 Copyright (C) 2012 Free Software Foundation, Inc.
5022 This config.status script is free software; the Free Software Foundation
5023 gives unlimited permission to copy, distribute and modify it."
5028 test -n "\$AWK" || AWK=awk
5031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5032 # The default lists apply if the user does not specify any file.
5038 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5039 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
5043 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5055 # Handling of the options.
5056 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
5058 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
5059 $as_echo "$ac_cs_version"; exit ;;
5060 --config |
--confi |
--conf |
--con |
--co |
--c )
5061 $as_echo "$ac_cs_config"; exit ;;
5062 --debug |
--debu |
--deb |
--de |
--d |
-d )
5064 --file |
--fil |
--fi |
--f )
5067 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5068 '') as_fn_error $?
"missing file argument" ;;
5070 as_fn_append CONFIG_FILES
" '$ac_optarg'"
5071 ac_need_defaults
=false
;;
5072 --header |
--heade |
--head |
--hea )
5075 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5077 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
5078 ac_need_defaults
=false
;;
5080 # Conflict between --help and --header
5081 as_fn_error $?
"ambiguous option: \`$1'
5082 Try \`$0 --help' for more information.";;
5083 --help |
--hel |
-h )
5084 $as_echo "$ac_cs_usage"; exit ;;
5085 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
5086 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
5090 -*) as_fn_error $?
"unrecognized option: \`$1'
5091 Try \`$0 --help' for more information." ;;
5093 *) as_fn_append ac_config_targets
" $1"
5094 ac_need_defaults
=false
;;
5100 ac_configure_extra_args
=
5102 if $ac_cs_silent; then
5104 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5109 if \$ac_cs_recheck; then
5110 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5112 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5113 CONFIG_SHELL='$SHELL'
5119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5123 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5124 ## Running $as_me. ##
5130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5135 # Handling of arguments.
5136 for ac_config_target
in $ac_config_targets
5138 case $ac_config_target in
5139 "riscv.mk") CONFIG_FILES
="$CONFIG_FILES riscv.mk:riscv/riscv.mk.in" ;;
5140 "hwacha.mk") CONFIG_FILES
="$CONFIG_FILES hwacha.mk:hwacha/hwacha.mk.in" ;;
5141 "softfloat.mk") CONFIG_FILES
="$CONFIG_FILES softfloat.mk:softfloat/softfloat.mk.in" ;;
5142 "spike.mk") CONFIG_FILES
="$CONFIG_FILES spike.mk:spike/spike.mk.in" ;;
5143 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
5144 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5146 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5151 # If the user did not use the arguments to specify the items to instantiate,
5152 # then the envvar interface is used. Set only those that are not.
5153 # We use the long form for the default assignment because of an extremely
5154 # bizarre bug on SunOS 4.1.3.
5155 if $ac_need_defaults; then
5156 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5157 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5160 # Have a temporary directory for convenience. Make it in the build tree
5161 # simply because there is no reason against having it here, and in addition,
5162 # creating and moving files from /tmp can sometimes cause problems.
5163 # Hook for its removal unless debugging.
5164 # Note that there is a small window in which the directory will not be cleaned:
5165 # after its creation but before its name has been assigned to `$tmp'.
5169 trap 'exit_status=$?
5171 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5173 trap 'as_fn_exit 1' 1 2 13 15
5175 # Create a (secure) tmp directory for tmp files.
5178 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5182 tmp
=.
/conf$$
-$RANDOM
5183 (umask 077 && mkdir
"$tmp")
5184 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
5187 # Set up the scripts for CONFIG_FILES section.
5188 # No need to generate them if there are no CONFIG_FILES.
5189 # This happens for instance with `./config.status config.h'.
5190 if test -n "$CONFIG_FILES"; then
5193 ac_cr
=`echo X | tr X '\015'`
5194 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5195 # But we know of no other shell where ac_cr would be empty at this
5196 # point, so we can use a bashism as a fallback.
5197 if test "x$ac_cr" = x
; then
5198 eval ac_cr
=\$
\'\\r
\'
5200 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5201 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5207 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5212 echo "cat >conf$$subs.awk <<_ACEOF" &&
5213 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5216 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5217 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5219 for ac_last_try in false false false false false :; do
5220 . ./conf$$subs.sh ||
5221 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5223 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
5224 if test $ac_delim_n = $ac_delim_num; then
5226 elif $ac_last_try; then
5227 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5229 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5235 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
5239 s/^/S["/; s
/!.
*/"]=/
5249 s/\(.\{148\}\)..*/\1/
5251 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
5256 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5263 s/\(.\{148\}\)..*/\1/
5265 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5269 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5274 ' <conf$$subs.awk | sed '
5279 ' >>$CONFIG_STATUS || ac_write_fail=1
5280 rm -f conf$$subs.awk
5281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5283 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
5284 for (key in S) S_is_set[key] = 1
5290 nfields = split(line, field, "@
")
5292 len = length(field[1])
5293 for (i = 2; i < nfields; i++) {
5295 keylen = length(key)
5296 if (S_is_set[key]) {
5298 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5299 len += length(value) + length(field[++i])
5310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5311 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5312 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
5315 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
5316 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
5319 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5320 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
5321 # trailing colons and then remove the whole line if VPATH becomes empty
5322 # (actually we leave an empty line to preserve line numbers).
5323 if test "x
$srcdir" = x.; then
5324 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5343 fi # test -n "$CONFIG_FILES"
5345 # Set up the scripts for CONFIG_HEADERS section.
5346 # No need to generate them if there are no CONFIG_HEADERS.
5347 # This happens for instance with `./config.status Makefile'.
5348 if test -n "$CONFIG_HEADERS"; then
5349 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
5353 # Transform confdefs.h into an awk script `defines.awk', embedded as
5354 # here-document in config.status, that substitutes the proper values into
5355 # config.h.in to produce config.h.
5357 # Create a delimiter string that does not exist in confdefs.h, to ease
5358 # handling of long lines.
5360 for ac_last_try in false false :; do
5361 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
5362 if test -z "$ac_tt"; then
5364 elif $ac_last_try; then
5365 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
5367 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5371 # For the awk script, D is an array of macro values keyed by name,
5372 # likewise P contains macro parameters if any. Preserve backslash
5373 # newline sequences.
5375 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5377 s/.\{148\}/&'"$ac_delim"'/g
5380 s/^[ ]*#[ ]*define[ ][ ]*/ /
5387 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5389 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5393 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5394 D["\
1"]=" \
3\\\\\\n
"\\/p
5396 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5401 s/.\{148\}/&'"$ac_delim"'/g
5406 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5409 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5411 ' <confdefs.h | sed '
5412 s/'"$ac_delim"'/"\\\
5413 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5416 for (key in D) D_is_set[key] = 1
5419 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5421 split(line, arg, " ")
5422 if (arg[1] == "#") {
5426 defundef
= substr
(arg
[1], 2)
5429 split(mac1
, mac2
, "(") #)
5431 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5432 if (D_is_set
[macro
]) {
5433 # Preserve the white space surrounding the "#".
5434 print prefix
"define", macro P
[macro
] D
[macro
]
5437 # Replace #undef with comments. This is necessary, for example,
5438 # in the case of _POSIX_SOURCE, which is predefined and required
5439 # on some systems where configure will not decide to define it.
5440 if (defundef
== "undef") {
5441 print
"/*", prefix defundef
, macro
, "*/"
5449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5450 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
5451 fi # test -n "$CONFIG_HEADERS"
5454 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
5459 :[FHLC
]) ac_mode
=$ac_tag; continue;;
5461 case $ac_mode$ac_tag in
5463 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
5464 :[FH
]-) ac_tag
=-:-;;
5465 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
5482 -) ac_f
="$ac_tmp/stdin";;
5483 *) # Look for the file first in the build tree, then in the source tree
5484 # (if the path is not absolute). The absolute path cannot be DOS-style,
5485 # because $ac_f cannot contain `:'.
5489 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
5491 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5493 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5494 as_fn_append ac_file_inputs
" '$ac_f'"
5497 # Let's still pretend it is `configure' which instantiates (i.e., don't
5498 # use $as_me), people would be surprised to read:
5499 # /* config.h. Generated by config.status. */
5500 configure_input
='Generated from '`
5501 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5503 if test x
"$ac_file" != x-
; then
5504 configure_input
="$ac_file. $configure_input"
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5506 $as_echo "$as_me: creating $ac_file" >&6;}
5508 # Neutralize special characters interpreted by sed in replacement strings.
5509 case $configure_input in #(
5510 *\
&* |
*\|
* |
*\\* )
5511 ac_sed_conf_input
=`$as_echo "$configure_input" |
5512 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5513 *) ac_sed_conf_input
=$configure_input;;
5517 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
5518 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
5523 ac_dir
=`$as_dirname -- "$ac_file" ||
5524 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5525 X"$ac_file" : 'X\(//\)[^/]' \| \
5526 X"$ac_file" : 'X\(//\)$' \| \
5527 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5528 $as_echo X"$ac_file" |
5529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5546 as_dir
="$ac_dir"; as_fn_mkdir_p
5550 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5552 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5553 # A ".." for each directory in $ac_dir_suffix.
5554 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5555 case $ac_top_builddir_sub in
5556 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5557 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
5560 ac_abs_top_builddir
=$ac_pwd
5561 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
5562 # for backward compatibility:
5563 ac_top_builddir
=$ac_top_build_prefix
5566 .
) # We are building in place.
5568 ac_top_srcdir
=$ac_top_builddir_sub
5569 ac_abs_top_srcdir
=$ac_pwd ;;
5570 [\\/]* | ?
:[\\/]* ) # Absolute name.
5571 ac_srcdir
=$srcdir$ac_dir_suffix;
5572 ac_top_srcdir
=$srcdir
5573 ac_abs_top_srcdir
=$srcdir ;;
5575 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
5576 ac_top_srcdir
=$ac_top_build_prefix$srcdir
5577 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
5579 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
5589 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5590 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
5594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5595 # If the template does not know about datarootdir, expand it.
5596 # FIXME: This hack should be removed a few years after 2.60.
5597 ac_datarootdir_hack
=; ac_datarootdir_seen
=
5608 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5609 *datarootdir
*) ac_datarootdir_seen
=yes;;
5610 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5612 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5615 ac_datarootdir_hack='
5616 s&@datadir@&$datadir&g
5617 s&@docdir@&$docdir&g
5618 s&@infodir@&$infodir&g
5619 s&@localedir@&$localedir&g
5620 s&@mandir@&$mandir&g
5621 s&\\\${datarootdir}&$datarootdir&g' ;;
5625 # Neutralize VPATH when `$srcdir' = `.'.
5626 # Shell code in configure.ac might set extrasub.
5627 # FIXME: do we really want to maintain this feature?
5628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5629 ac_sed_extra="$ac_vpsub
5632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5634 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5635 s|@configure_input@|
$ac_sed_conf_input|
;t t
5636 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
5637 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
5638 s
&@srcdir@
&$ac_srcdir&;t t
5639 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
5640 s
&@top_srcdir@
&$ac_top_srcdir&;t t
5641 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
5642 s
&@builddir@
&$ac_builddir&;t t
5643 s
&@abs_builddir@
&$ac_abs_builddir&;t t
5644 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
5645 s
&@INSTALL@
&$ac_INSTALL&;t t
5646 $ac_datarootdir_hack
5648 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
5649 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
5651 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5652 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
5653 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5654 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
5656 which seems to be undefined. Please make sure it is defined" >&5
5657 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
5658 which seems to be undefined. Please make sure it is defined" >&2;}
5660 rm -f "$ac_tmp/stdin"
5662 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5663 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5665 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5671 if test x"$ac_file" != x-; then
5673 $as_echo "/* $configure_input */" \
5674 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5675 } >"$ac_tmp/config.h" \
5676 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5677 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5679 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5682 mv "$ac_tmp/config.h" "$ac_file" \
5683 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5686 $as_echo "/* $configure_input */" \
5687 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5688 || as_fn_error $? "could not create -" "$LINENO" 5
5700 ac_clean_files=$ac_clean_files_save
5702 test $ac_write_fail = 0 ||
5703 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5706 # configure is writing to config.log, and then calls config.status.
5707 # config.status does its own redirection, appending to config.log.
5708 # Unfortunately, on DOS this fails, as config.log is still kept open
5709 # by configure, so config.status won't be able to
write to it
; its
5710 # output is simply discarded. So we exec the FD to /dev/null,
5711 # effectively closing config.log, so it can be properly (re)opened and
5712 # appended to by config.status. When coming back to configure, we
5713 # need to make the FD available again.
5714 if test "$no_create" != yes; then
5716 ac_config_status_args
=
5717 test "$silent" = yes &&
5718 ac_config_status_args
="$ac_config_status_args --quiet"
5720 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5722 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5723 # would make configure fail if this is the last instruction.
5724 $ac_cs_success || as_fn_exit
1
5726 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5728 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}