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
675 ac_precious_vars
='build_alias
691 # Initialize some variables set by options.
693 ac_init_version
=false
694 ac_unrecognized_opts
=
696 # The variables have the same names as the options, with
697 # dashes changed to underlines.
705 program_transform_name
=s
,x
,x
,
713 # Installation directory options.
714 # These are left unexpanded so users can "make install exec_prefix=/foo"
715 # and all the variables that are supposed to be based on exec_prefix
716 # by default will actually change.
717 # Use braces instead of parens because sh, perl, etc. also accept them.
718 # (The list follows the same order as the GNU Coding Standards.)
719 bindir
='${exec_prefix}/bin'
720 sbindir
='${exec_prefix}/sbin'
721 libexecdir
='${exec_prefix}/libexec'
722 datarootdir
='${prefix}/share'
723 datadir
='${datarootdir}'
724 sysconfdir
='${prefix}/etc'
725 sharedstatedir
='${prefix}/com'
726 localstatedir
='${prefix}/var'
727 includedir
='${prefix}/include'
728 oldincludedir
='/usr/include'
729 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
730 infodir
='${datarootdir}/info'
735 libdir
='${exec_prefix}/lib'
736 localedir
='${datarootdir}/locale'
737 mandir
='${datarootdir}/man'
743 # If the previous option needs an argument, assign it.
744 if test -n "$ac_prev"; then
745 eval $ac_prev=\
$ac_option
751 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
756 # Accept the important Cygnus configure options, so we can diagnose typos.
758 case $ac_dashdash$ac_option in
762 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
764 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
767 -build |
--build |
--buil |
--bui |
--bu)
768 ac_prev
=build_alias
;;
769 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
770 build_alias
=$ac_optarg ;;
772 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
773 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
774 ac_prev
=cache_file
;;
775 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
776 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
777 cache_file
=$ac_optarg ;;
780 cache_file
=config.cache
;;
782 -datadir |
--datadir |
--datadi |
--datad)
784 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
785 datadir
=$ac_optarg ;;
787 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
788 |
--dataroo |
--dataro |
--datar)
789 ac_prev
=datarootdir
;;
790 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
791 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
792 datarootdir
=$ac_optarg ;;
794 -disable-* |
--disable-*)
795 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
796 # Reject names that are not valid shell variable names.
797 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
798 as_fn_error $?
"invalid feature name: $ac_useropt"
799 ac_useropt_orig
=$ac_useropt
800 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
801 case $ac_user_opts in
805 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
806 ac_unrecognized_sep
=', ';;
808 eval enable_
$ac_useropt=no
;;
810 -docdir |
--docdir |
--docdi |
--doc |
--do)
812 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
815 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
817 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
820 -enable-* |
--enable-*)
821 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
824 as_fn_error $?
"invalid feature name: $ac_useropt"
825 ac_useropt_orig
=$ac_useropt
826 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
827 case $ac_user_opts in
831 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
832 ac_unrecognized_sep
=', ';;
834 eval enable_
$ac_useropt=\
$ac_optarg ;;
836 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
837 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
838 |
--exec |
--exe |
--ex)
839 ac_prev
=exec_prefix
;;
840 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
841 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
842 |
--exec=* |
--exe=* |
--ex=*)
843 exec_prefix
=$ac_optarg ;;
845 -gas |
--gas |
--ga |
--g)
846 # Obsolete; use --with-gas.
849 -help |
--help |
--hel |
--he |
-h)
851 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
852 ac_init_help
=recursive
;;
853 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
854 ac_init_help
=short
;;
856 -host |
--host |
--hos |
--ho)
857 ac_prev
=host_alias
;;
858 -host=* |
--host=* |
--hos=* |
--ho=*)
859 host_alias
=$ac_optarg ;;
861 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
863 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
865 htmldir
=$ac_optarg ;;
867 -includedir |
--includedir |
--includedi |
--included |
--include \
868 |
--includ |
--inclu |
--incl |
--inc)
869 ac_prev
=includedir
;;
870 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
871 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
872 includedir
=$ac_optarg ;;
874 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
876 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
877 infodir
=$ac_optarg ;;
879 -libdir |
--libdir |
--libdi |
--libd)
881 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
884 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
885 |
--libexe |
--libex |
--libe)
886 ac_prev
=libexecdir
;;
887 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
888 |
--libexe=* |
--libex=* |
--libe=*)
889 libexecdir
=$ac_optarg ;;
891 -localedir |
--localedir |
--localedi |
--localed |
--locale)
893 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
894 localedir
=$ac_optarg ;;
896 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
897 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
898 ac_prev
=localstatedir
;;
899 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
900 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
901 localstatedir
=$ac_optarg ;;
903 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
905 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
909 # Obsolete; use --without-fp.
912 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
913 |
--no-cr |
--no-c |
-n)
916 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
917 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
920 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
921 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
922 |
--oldin |
--oldi |
--old |
--ol |
--o)
923 ac_prev
=oldincludedir
;;
924 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
925 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
926 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
927 oldincludedir
=$ac_optarg ;;
929 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
931 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
934 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
935 |
--program-pre |
--program-pr |
--program-p)
936 ac_prev
=program_prefix
;;
937 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
938 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
939 program_prefix
=$ac_optarg ;;
941 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
942 |
--program-suf |
--program-su |
--program-s)
943 ac_prev
=program_suffix
;;
944 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
945 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
946 program_suffix
=$ac_optarg ;;
948 -program-transform-name |
--program-transform-name \
949 |
--program-transform-nam |
--program-transform-na \
950 |
--program-transform-n |
--program-transform- \
951 |
--program-transform |
--program-transfor \
952 |
--program-transfo |
--program-transf \
953 |
--program-trans |
--program-tran \
954 |
--progr-tra |
--program-tr |
--program-t)
955 ac_prev
=program_transform_name
;;
956 -program-transform-name=* |
--program-transform-name=* \
957 |
--program-transform-nam=* |
--program-transform-na=* \
958 |
--program-transform-n=* |
--program-transform-=* \
959 |
--program-transform=* |
--program-transfor=* \
960 |
--program-transfo=* |
--program-transf=* \
961 |
--program-trans=* |
--program-tran=* \
962 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
963 program_transform_name
=$ac_optarg ;;
965 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
967 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
970 -psdir |
--psdir |
--psdi |
--psd |
--ps)
972 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
975 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
976 |
-silent |
--silent |
--silen |
--sile |
--sil)
979 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
981 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
983 sbindir
=$ac_optarg ;;
985 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
986 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
987 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
989 ac_prev
=sharedstatedir
;;
990 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
991 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
992 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
994 sharedstatedir
=$ac_optarg ;;
996 -site |
--site |
--sit)
998 -site=* |
--site=* |
--sit=*)
1001 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1003 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1004 srcdir
=$ac_optarg ;;
1006 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1007 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1008 ac_prev
=sysconfdir
;;
1009 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1010 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1011 sysconfdir
=$ac_optarg ;;
1013 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1014 ac_prev
=target_alias
;;
1015 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1016 target_alias
=$ac_optarg ;;
1018 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1021 -version |
--version |
--versio |
--versi |
--vers |
-V)
1022 ac_init_version
=: ;;
1025 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1028 as_fn_error $?
"invalid package name: $ac_useropt"
1029 ac_useropt_orig
=$ac_useropt
1030 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1035 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1036 ac_unrecognized_sep
=', ';;
1038 eval with_
$ac_useropt=\
$ac_optarg ;;
1040 -without-* |
--without-*)
1041 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1044 as_fn_error $?
"invalid package name: $ac_useropt"
1045 ac_useropt_orig
=$ac_useropt
1046 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1051 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1052 ac_unrecognized_sep
=', ';;
1054 eval with_
$ac_useropt=no
;;
1057 # Obsolete; use --with-x.
1060 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1061 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1062 ac_prev
=x_includes
;;
1063 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1064 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1065 x_includes
=$ac_optarg ;;
1067 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1068 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1069 ac_prev
=x_libraries
;;
1070 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1071 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1072 x_libraries
=$ac_optarg ;;
1074 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1075 Try \`$0 --help' for more information"
1079 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1080 # Reject names that are not valid shell variable names.
1081 case $ac_envvar in #(
1082 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1083 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1085 eval $ac_envvar=\
$ac_optarg
1086 export $ac_envvar ;;
1089 # FIXME: should be removed in autoconf 3.0.
1090 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1091 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1092 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1093 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1099 if test -n "$ac_prev"; then
1100 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1101 as_fn_error $?
"missing argument to $ac_option"
1104 if test -n "$ac_unrecognized_opts"; then
1105 case $enable_option_checking in
1107 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1108 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1112 # Check all directory arguments for consistency.
1113 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1114 datadir sysconfdir sharedstatedir localstatedir includedir \
1115 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1116 libdir localedir mandir
1118 eval ac_val
=\$
$ac_var
1119 # Remove trailing slashes.
1122 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1123 eval $ac_var=\
$ac_val;;
1125 # Be sure to have absolute directory names.
1127 [\\/$
]* | ?
:[\\/]* ) continue;;
1128 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1130 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1133 # There might be people who depend on the old broken behavior: `$host'
1134 # used to hold the argument of --host etc.
1135 # FIXME: To remove some day.
1138 target
=$target_alias
1140 # FIXME: To remove some day.
1141 if test "x$host_alias" != x
; then
1142 if test "x$build_alias" = x
; then
1143 cross_compiling
=maybe
1144 elif test "x$build_alias" != "x$host_alias"; then
1150 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1152 test "$silent" = yes && exec 6>/dev
/null
1155 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1156 ac_ls_di
=`ls -di .` &&
1157 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1158 as_fn_error $?
"working directory cannot be determined"
1159 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1160 as_fn_error $?
"pwd does not report name of working directory"
1163 # Find the source files, if location was not specified.
1164 if test -z "$srcdir"; then
1165 ac_srcdir_defaulted
=yes
1166 # Try the directory containing this script, then the parent directory.
1167 ac_confdir
=`$as_dirname -- "$as_myself" ||
1168 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1169 X"$as_myself" : 'X\(//\)[^/]' \| \
1170 X"$as_myself" : 'X\(//\)$' \| \
1171 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1172 $as_echo X"$as_myself" |
1173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1191 if test ! -r "$srcdir/$ac_unique_file"; then
1195 ac_srcdir_defaulted
=no
1197 if test ! -r "$srcdir/$ac_unique_file"; then
1198 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1199 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1201 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1203 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1205 # When building in place, set srcdir=.
1206 if test "$ac_abs_confdir" = "$ac_pwd"; then
1209 # Remove unnecessary trailing slashes from srcdir.
1210 # Double slashes in file names in object file debugging info
1211 # mess up M-x gdb in Emacs.
1213 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1215 for ac_var
in $ac_precious_vars; do
1216 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1217 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1218 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1219 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1223 # Report the --help message.
1225 if test "$ac_init_help" = "long"; then
1226 # Omit some internal or obsolete options to make the list less imposing.
1227 # This message is too long to be a string in the A/UX 3.1 sh.
1229 \`configure' configures RISC-V ISA Simulator ? to adapt to many kinds of systems.
1231 Usage: $0 [OPTION]... [VAR=VALUE]...
1233 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1234 VAR=VALUE. See below for descriptions of some of the useful variables.
1236 Defaults for the options are specified in brackets.
1239 -h, --help display this help and exit
1240 --help=short display options specific to this package
1241 --help=recursive display the short help of all the included packages
1242 -V, --version display version information and exit
1243 -q, --quiet, --silent do not print \`checking ...' messages
1244 --cache-file=FILE cache test results in FILE [disabled]
1245 -C, --config-cache alias for \`--cache-file=config.cache'
1246 -n, --no-create do not create output files
1247 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1249 Installation directories:
1250 --prefix=PREFIX install architecture-independent files in PREFIX
1251 [$ac_default_prefix]
1252 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1255 By default, \`make install' will install all the files in
1256 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1257 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1258 for instance \`--prefix=\$HOME'.
1260 For better control, use the options below.
1262 Fine tuning of the installation directories:
1263 --bindir=DIR user executables [EPREFIX/bin]
1264 --sbindir=DIR system admin executables [EPREFIX/sbin]
1265 --libexecdir=DIR program executables [EPREFIX/libexec]
1266 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1267 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1268 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1269 --libdir=DIR object code libraries [EPREFIX/lib]
1270 --includedir=DIR C header files [PREFIX/include]
1271 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1272 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1273 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1274 --infodir=DIR info documentation [DATAROOTDIR/info]
1275 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1276 --mandir=DIR man documentation [DATAROOTDIR/man]
1277 --docdir=DIR documentation root [DATAROOTDIR/doc/spike]
1278 --htmldir=DIR html documentation [DOCDIR]
1279 --dvidir=DIR dvi documentation [DOCDIR]
1280 --pdfdir=DIR pdf documentation [DOCDIR]
1281 --psdir=DIR ps documentation [DOCDIR]
1287 --build=BUILD configure
for building on BUILD
[guessed
]
1288 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1292 if test -n "$ac_init_help"; then
1293 case $ac_init_help in
1294 short | recursive
) echo "Configuration of RISC-V ISA Simulator ?:";;
1299 --disable-option-checking ignore unrecognized
--enable/--with options
1300 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1301 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1302 --enable-stow Enable stow-based
install
1303 --enable-optional-subprojects
1304 Enable all optional subprojects
1305 --disable-fpu Disable floating-point
1306 --disable-64bit Disable
64-bit mode
1307 --enable-commitlog Enable commit log generation
1308 --enable-histogram Enable PC histogram generation
1311 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1312 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1313 --with-fesvr path to your fesvr installation
if not
in a standard
1316 Some influential environment variables
:
1317 CC C compiler
command
1318 CFLAGS C compiler flags
1319 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1320 nonstandard directory
<lib dir
>
1321 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1322 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1323 you have headers
in a nonstandard directory
<include dir
>
1324 CXX C
++ compiler
command
1325 CXXFLAGS C
++ compiler flags
1326 STOW_ROOT Root
for non-native stow-based installs
1327 STOW_PREFIX Prefix
for stow-based installs
1330 Use these variables to override the choices made by
`configure' or to help
1331 it to find libraries and programs with nonstandard names/locations.
1333 Report bugs to <Andrew Waterman>.
1338 if test "$ac_init_help" = "recursive"; then
1339 # If there are subdirs, report their specific --help.
1340 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1341 test -d "$ac_dir" ||
1342 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1347 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1349 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1350 # A ".." for each directory in $ac_dir_suffix.
1351 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1352 case $ac_top_builddir_sub in
1353 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1354 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1357 ac_abs_top_builddir=$ac_pwd
1358 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1359 # for backward compatibility:
1360 ac_top_builddir=$ac_top_build_prefix
1363 .) # We are building in place.
1365 ac_top_srcdir=$ac_top_builddir_sub
1366 ac_abs_top_srcdir=$ac_pwd ;;
1367 [\\/]* | ?:[\\/]* ) # Absolute name.
1368 ac_srcdir=$srcdir$ac_dir_suffix;
1369 ac_top_srcdir=$srcdir
1370 ac_abs_top_srcdir=$srcdir ;;
1372 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1373 ac_top_srcdir=$ac_top_build_prefix$srcdir
1374 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1376 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1378 cd "$ac_dir" || { ac_status=$?; continue; }
1379 # Check for guested configure.
1380 if test -f "$ac_srcdir/configure.gnu"; then
1382 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1383 elif test -f "$ac_srcdir/configure"; then
1385 $SHELL "$ac_srcdir/configure" --help=recursive
1387 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1389 cd "$ac_pwd" || { ac_status=$?; break; }
1393 test -n "$ac_init_help" && exit $ac_status
1394 if $ac_init_version; then
1396 RISC-V ISA Simulator configure ?
1397 generated by GNU Autoconf 2.69
1399 Copyright (C) 2012 Free Software Foundation, Inc.
1400 This configure script is free software; the Free Software Foundation
1401 gives unlimited permission to copy, distribute and modify it.
1406 ## ------------------------ ##
1407 ## Autoconf initialization. ##
1408 ## ------------------------ ##
1410 # ac_fn_c_try_compile LINENO
1411 # --------------------------
1412 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1413 ac_fn_c_try_compile ()
1415 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1416 rm -f conftest.$ac_objext
1417 if { { ac_try="$ac_compile"
1419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1420 *) ac_try_echo
=$ac_try;;
1422 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1423 $as_echo "$ac_try_echo"; } >&5
1424 (eval "$ac_compile") 2>conftest.err
1426 if test -s conftest.err
; then
1427 grep -v '^ *+' conftest.err
>conftest.er1
1428 cat conftest.er1
>&5
1429 mv -f conftest.er1 conftest.err
1431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1432 test $ac_status = 0; } && {
1433 test -z "$ac_c_werror_flag" ||
1434 test ! -s conftest.err
1435 } && test -s conftest.
$ac_objext; then :
1438 $as_echo "$as_me: failed program was:" >&5
1439 sed 's/^/| /' conftest.
$ac_ext >&5
1443 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1444 as_fn_set_status
$ac_retval
1446 } # ac_fn_c_try_compile
1448 # ac_fn_cxx_try_compile LINENO
1449 # ----------------------------
1450 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1451 ac_fn_cxx_try_compile
()
1453 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1454 rm -f conftest.
$ac_objext
1455 if { { ac_try
="$ac_compile"
1457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1458 *) ac_try_echo=$ac_try;;
1460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1461 $as_echo "$ac_try_echo"; } >&5
1462 (eval "$ac_compile") 2>conftest.err
1464 if test -s conftest.err; then
1465 grep -v '^ *+' conftest.err >conftest.er1
1466 cat conftest.er1 >&5
1467 mv -f conftest.er1 conftest.err
1469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1470 test $ac_status = 0; } && {
1471 test -z "$ac_cxx_werror_flag" ||
1472 test ! -s conftest.err
1473 } && test -s conftest.$ac_objext; then :
1476 $as_echo "$as_me: failed program was:" >&5
1477 sed 's/^/| /' conftest.$ac_ext >&5
1481 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1482 as_fn_set_status $ac_retval
1484 } # ac_fn_cxx_try_compile
1486 # ac_fn_c_try_cpp LINENO
1487 # ----------------------
1488 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1492 if { { ac_try="$ac_cpp conftest.$ac_ext"
1494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1495 *) ac_try_echo
=$ac_try;;
1497 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498 $as_echo "$ac_try_echo"; } >&5
1499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1501 if test -s conftest.err
; then
1502 grep -v '^ *+' conftest.err
>conftest.er1
1503 cat conftest.er1
>&5
1504 mv -f conftest.er1 conftest.err
1506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1507 test $ac_status = 0; } > conftest.i
&& {
1508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1509 test ! -s conftest.err
1513 $as_echo "$as_me: failed program was:" >&5
1514 sed 's/^/| /' conftest.
$ac_ext >&5
1518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1519 as_fn_set_status
$ac_retval
1523 # ac_fn_c_try_run LINENO
1524 # ----------------------
1525 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1526 # that executables *can* be run.
1529 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1530 if { { ac_try
="$ac_link"
1532 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_link") 2>&5
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1541 { { case "(($ac_try" in
1542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1543 *) ac_try_echo
=$ac_try;;
1545 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_try") 2>&5
1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550 test $ac_status = 0; }; }; then :
1553 $as_echo "$as_me: program exited with status $ac_status" >&5
1554 $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.
$ac_ext >&5
1557 ac_retval
=$ac_status
1559 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561 as_fn_set_status
$ac_retval
1565 # ac_fn_c_try_link LINENO
1566 # -----------------------
1567 # Try to link conftest.$ac_ext, and return whether this succeeded.
1570 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1571 rm -f conftest.
$ac_objext conftest
$ac_exeext
1572 if { { ac_try
="$ac_link"
1574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1575 *) ac_try_echo=$ac_try;;
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579 (eval "$ac_link") 2>conftest.err
1581 if test -s conftest.err; then
1582 grep -v '^ *+' conftest.err >conftest.er1
1583 cat conftest.er1 >&5
1584 mv -f conftest.er1 conftest.err
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; } && {
1588 test -z "$ac_c_werror_flag" ||
1589 test ! -s conftest.err
1590 } && test -s conftest$ac_exeext && {
1591 test "$cross_compiling" = yes ||
1592 test -x conftest$ac_exeext
1596 $as_echo "$as_me: failed program was:" >&5
1597 sed 's/^/| /' conftest.$ac_ext >&5
1601 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1602 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1603 # interfere with the next link command; also delete a directory that is
1604 # left behind by Apple's compiler. We do this before executing the actions.
1605 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1609 } # ac_fn_c_try_link
1610 cat >config.log <<_ACEOF
1611 This file contains any messages produced by compilers while
1612 running configure, to aid debugging if configure makes a mistake.
1614 It was created by RISC-V ISA Simulator $as_me ?, which was
1615 generated by GNU Autoconf 2.69. Invocation command line was
1627 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1628 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1629 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1630 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1631 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1633 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1634 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1636 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1637 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1638 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1639 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1640 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1641 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1642 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 test -z "$as_dir" && as_dir=.
1651 $as_echo "PATH: $as_dir"
1667 # Keep a trace of the command line.
1668 # Strip out --no-create and --no-recursion so they do not pile up.
1669 # Strip out --silent because we don't want to record it for future runs.
1670 # Also quote any args containing shell meta-characters.
1671 # Make two passes to allow for proper duplicate-argument suppression.
1675 ac_must_keep_next=false
1681 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1683 | -silent | --silent | --silen | --sile | --sil)
1686 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1689 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1691 as_fn_append ac_configure_args1 " '$ac_arg'"
1692 if test $ac_must_keep_next = true; then
1693 ac_must_keep_next=false # Got value, back to normal.
1696 *=* | --config-cache | -C | -disable-* | --disable-* \
1697 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1698 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1699 | -with-* | --with-* | -without-* | --without-* | --x)
1700 case "$ac_configure_args0 " in
1701 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1704 -* ) ac_must_keep_next=true ;;
1707 as_fn_append ac_configure_args " '$ac_arg'"
1712 { ac_configure_args0=; unset ac_configure_args0;}
1713 { ac_configure_args1=; unset ac_configure_args1;}
1715 # When interrupted or exit'd, cleanup temporary files, and complete
1716 # config.log. We remove comments because anyway the quotes in there
1717 # would cause problems or look ugly.
1718 # WARNING: Use '\'' to represent an apostrophe within the trap.
1719 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1720 trap 'exit_status=$?
1721 # Save into config.log some information that might help in debugging.
1725 $as_echo "## ---------------- ##
1726 ## Cache variables. ##
1727 ## ---------------- ##"
1729 # The following way of writing the cache mishandles newlines in values,
1731 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1732 eval ac_val=\$$ac_var
1736 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1737 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1740 _ | IFS | as_nl) ;; #(
1741 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1742 *) { eval $ac_var=; unset $ac_var;} ;;
1747 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1748 *${as_nl}ac_space=\ *)
1750 "s/'\''/'\''\\\\'\'''\''/g;
1751 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1754 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1761 $as_echo "## ----------------- ##
1762 ## Output variables. ##
1763 ## ----------------- ##"
1765 for ac_var in $ac_subst_vars
1767 eval ac_val=\$$ac_var
1769 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1771 $as_echo "$ac_var='\''$ac_val'\''"
1775 if test -n "$ac_subst_files"; then
1776 $as_echo "## ------------------- ##
1777 ## File substitutions. ##
1778 ## ------------------- ##"
1780 for ac_var in $ac_subst_files
1782 eval ac_val=\$$ac_var
1784 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1786 $as_echo "$ac_var='\''$ac_val'\''"
1791 if test -s confdefs.h; then
1792 $as_echo "## ----------- ##
1799 test "$ac_signal" != 0 &&
1800 $as_echo "$as_me: caught signal $ac_signal"
1801 $as_echo "$as_me: exit $exit_status"
1803 rm -f core *.core core.conftest.* &&
1804 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1807 for ac_signal in 1 2 13 15; do
1808 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1812 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1813 rm -f -r conftest* confdefs.h
1815 $as_echo "/* confdefs.h */" > confdefs.h
1817 # Predefined preprocessor variables.
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_NAME "$PACKAGE_NAME"
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_STRING "$PACKAGE_STRING"
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_URL "$PACKAGE_URL"
1844 # Let the site file select an alternate cache file if it wants to.
1845 # Prefer an explicitly selected file to automatically selected ones.
1848 if test -n "$CONFIG_SITE"; then
1849 # We do not want a PATH search for config.site.
1850 case $CONFIG_SITE in #((
1851 -*) ac_site_file1=./$CONFIG_SITE;;
1852 */*) ac_site_file1=$CONFIG_SITE;;
1853 *) ac_site_file1=./$CONFIG_SITE;;
1855 elif test "x$prefix" != xNONE; then
1856 ac_site_file1=$prefix/share/config.site
1857 ac_site_file2=$prefix/etc/config.site
1859 ac_site_file1=$ac_default_prefix/share/config.site
1860 ac_site_file2=$ac_default_prefix/etc/config.site
1862 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1864 test "x$ac_site_file" = xNONE && continue
1865 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1867 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1868 sed 's/^/| /' "$ac_site_file" >&5
1870 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1872 as_fn_error $? "failed to load site
script $ac_site_file
1873 See \
`config.log' for more details" "$LINENO" 5; }
1877 if test -r "$cache_file"; then
1878 # Some versions of bash will fail to source /dev/null (special files
1879 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1880 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1882 $as_echo "$as_me: loading cache $cache_file" >&6;}
1884 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1885 *) . "./$cache_file";;
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1890 $as_echo "$as_me: creating cache $cache_file" >&6;}
1894 # Check that the precious variables saved in the cache have kept the same
1896 ac_cache_corrupted=false
1897 for ac_var in $ac_precious_vars; do
1898 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1899 eval ac_new_set=\$ac_env_${ac_var}_set
1900 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1901 eval ac_new_val=\$ac_env_${ac_var}_value
1902 case $ac_old_set,$ac_new_set in
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1905 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1906 ac_cache_corrupted=: ;;
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
1909 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1910 ac_cache_corrupted=: ;;
1913 if test "x$ac_old_val" != "x$ac_new_val"; then
1914 # differences in whitespace do not lead to failure.
1915 ac_old_val_w=`echo x
$ac_old_val`
1916 ac_new_val_w=`echo x
$ac_new_val`
1917 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1919 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1920 ac_cache_corrupted=:
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1923 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1924 eval $ac_var=\$ac_old_val
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1927 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1929 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1932 # Pass precious variables to config.status.
1933 if test "$ac_new_set" = set; then
1935 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1936 *) ac_arg=$ac_var=$ac_new_val ;;
1938 case " $ac_configure_args " in
1939 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1940 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1944 if $ac_cache_corrupted; then
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
1946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1948 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1949 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
1951 ## -------------------- ##
1952 ## Main body of script. ##
1953 ## -------------------- ##
1956 ac_cpp='$CPP $CPPFLAGS'
1957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964 for ac_dir in scripts "$srcdir"/scripts; do
1965 if test -f "$ac_dir/install-sh"; then
1967 ac_install_sh="$ac_aux_dir/install-sh -c"
1969 elif test -f "$ac_dir/install.sh"; then
1971 ac_install_sh="$ac_aux_dir/install.sh -c"
1973 elif test -f "$ac_dir/shtool"; then
1975 ac_install_sh="$ac_aux_dir/shtool install -c"
1979 if test -z "$ac_aux_dir"; then
1980 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
1983 # These three variables are undocumented and unsupported,
1984 # and are intended to be withdrawn in a future Autoconf release.
1985 # They can cause serious problems if a builder's source tree is in a directory
1986 # whose full name contains unusual characters.
1987 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1988 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1989 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1992 # Make sure we can run config.sub.
1993 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1994 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1997 $as_echo_n "checking build system type... " >&6; }
1998 if ${ac_cv_build+:} false; then :
1999 $as_echo_n "(cached) " >&6
2001 ac_build_alias=$build_alias
2002 test "x$ac_build_alias" = x &&
2003 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2004 test "x$ac_build_alias" = x &&
2005 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2006 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2007 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2011 $as_echo "$ac_cv_build" >&6; }
2012 case $ac_cv_build in
2014 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2017 ac_save_IFS=$IFS; IFS='-'
2023 # Remember, the first character of IFS is used to create $*,
2024 # except with old shells:
2027 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2031 $as_echo_n "checking host system type... " >&6; }
2032 if ${ac_cv_host+:} false; then :
2033 $as_echo_n "(cached) " >&6
2035 if test "x$host_alias" = x; then
2036 ac_cv_host=$ac_cv_build
2038 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2039 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2044 $as_echo "$ac_cv_host" >&6; }
2047 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2050 ac_save_IFS=$IFS; IFS='-'
2056 # Remember, the first character of IFS is used to create $*,
2057 # except with old shells:
2060 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2064 #-------------------------------------------------------------------------
2065 # Checks for programs
2066 #-------------------------------------------------------------------------
2069 ac_cpp='$CPP $CPPFLAGS'
2070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2073 if test -n "$ac_tool_prefix"; then
2074 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2075 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2077 $as_echo_n "checking for $ac_word... " >&6; }
2078 if ${ac_cv_prog_CC+:} false; then :
2079 $as_echo_n "(cached) " >&6
2081 if test -n "$CC"; then
2082 ac_cv_prog_CC="$CC" # Let the user override the test.
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
2090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2091 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2102 if test -n "$CC"; then
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2104 $as_echo "$CC" >&6; }
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2107 $as_echo "no" >&6; }
2112 if test -z "$ac_cv_prog_CC"; then
2114 # Extract the first word of "gcc", so it can be a program name with args.
2115 set dummy gcc; ac_word=$2
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2117 $as_echo_n "checking for $ac_word... " >&6; }
2118 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2119 $as_echo_n "(cached) " >&6
2121 if test -n "$ac_ct_CC"; then
2122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131 ac_cv_prog_ac_ct_CC="gcc"
2132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2142 if test -n "$ac_ct_CC"; then
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2144 $as_echo "$ac_ct_CC" >&6; }
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2147 $as_echo "no" >&6; }
2150 if test "x$ac_ct_CC" = x; then
2153 case $cross_compiling:$ac_tool_warned in
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2157 ac_tool_warned=yes ;;
2165 if test -z "$CC"; then
2166 if test -n "$ac_tool_prefix"; then
2167 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2168 set dummy ${ac_tool_prefix}cc; ac_word=$2
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2170 $as_echo_n "checking for $ac_word... " >&6; }
2171 if ${ac_cv_prog_CC+:} false; then :
2172 $as_echo_n "(cached) " >&6
2174 if test -n "$CC"; then
2175 ac_cv_prog_CC="$CC" # Let the user override the test.
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184 ac_cv_prog_CC="${ac_tool_prefix}cc"
2185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 if test -n "$CC"; then
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2197 $as_echo "$CC" >&6; }
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2200 $as_echo "no" >&6; }
2206 if test -z "$CC"; then
2207 # Extract the first word of "cc", so it can be a program name with args.
2208 set dummy cc; ac_word=$2
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2210 $as_echo_n "checking for $ac_word... " >&6; }
2211 if ${ac_cv_prog_CC+:} false; then :
2212 $as_echo_n "(cached) " >&6
2214 if test -n "$CC"; then
2215 ac_cv_prog_CC="$CC" # Let the user override the test.
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 test -z "$as_dir" && as_dir=.
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2225 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2226 ac_prog_rejected=yes
2230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2237 if test $ac_prog_rejected = yes; then
2238 # We found a bogon in the path, so make sure we never use it.
2239 set dummy $ac_cv_prog_CC
2241 if test $# != 0; then
2242 # We chose a different compiler from the bogus one.
2243 # However, it has the same basename, so the bogon will be chosen
2244 # first if we set CC to just the basename; use the full file name.
2246 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2252 if test -n "$CC"; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2254 $as_echo "$CC" >&6; }
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2257 $as_echo "no" >&6; }
2262 if test -z "$CC"; then
2263 if test -n "$ac_tool_prefix"; then
2264 for ac_prog in cl.exe
2266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2269 $as_echo_n "checking for $ac_word... " >&6; }
2270 if ${ac_cv_prog_CC+:} false; then :
2271 $as_echo_n "(cached) " >&6
2273 if test -n "$CC"; then
2274 ac_cv_prog_CC="$CC" # Let the user override the test.
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2283 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 if test -n "$CC"; then
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2296 $as_echo "$CC" >&6; }
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2299 $as_echo "no" >&6; }
2303 test -n "$CC" && break
2306 if test -z "$CC"; then
2308 for ac_prog in cl.exe
2310 # Extract the first word of "$ac_prog", so it can be a program name with args.
2311 set dummy $ac_prog; ac_word=$2
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2313 $as_echo_n "checking for $ac_word... " >&6; }
2314 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2315 $as_echo_n "(cached) " >&6
2317 if test -n "$ac_ct_CC"; then
2318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2327 ac_cv_prog_ac_ct_CC="$ac_prog"
2328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2338 if test -n "$ac_ct_CC"; then
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2340 $as_echo "$ac_ct_CC" >&6; }
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2343 $as_echo "no" >&6; }
2347 test -n "$ac_ct_CC" && break
2350 if test "x$ac_ct_CC" = x; then
2353 case $cross_compiling:$ac_tool_warned in
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2357 ac_tool_warned=yes ;;
2366 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2368 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2369 See \
`config.log' for more details" "$LINENO" 5; }
2371 # Provide some information about the compiler.
2372 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2375 for ac_option in --version -v -V -qversion; do
2376 { { ac_try="$ac_compiler $ac_option >&5"
2378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2379 *) ac_try_echo
=$ac_try;;
2381 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2382 $as_echo "$ac_try_echo"; } >&5
2383 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2385 if test -s conftest.err
; then
2387 ... rest of stderr output deleted ...
2388 10q' conftest.err
>conftest.er1
2389 cat conftest.er1
>&5
2391 rm -f conftest.er1 conftest.err
2392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2393 test $ac_status = 0; }
2396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2407 ac_clean_files_save
=$ac_clean_files
2408 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2409 # Try to create an executable without -o first, disregard a.out.
2410 # It will help us diagnose broken compilers, and finding out an intuition
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2413 $as_echo_n "checking whether the C compiler works... " >&6; }
2414 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2416 # The possible output files:
2417 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2420 for ac_file
in $ac_files
2423 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2424 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2429 if { { ac_try
="$ac_link_default"
2431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2435 $as_echo "$ac_try_echo"; } >&5
2436 (eval "$ac_link_default") 2>&5
2438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2439 test $ac_status = 0; }; then :
2440 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2441 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2442 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2443 # so that the user can short-circuit this test for compilers unknown to
2445 for ac_file in $ac_files ''
2447 test -f "$ac_file" || continue
2449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2452 # We found the default executable, but exeext='' is most
2456 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2458 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2460 # We set ac_cv_exeext here because the later test for it is not
2461 # safe: cross compilers may not add the suffix if given an `-o'
2462 # argument, so we may need to know it at that point already.
2463 # Even if this section looks crufty: it has the advantage of
2470 test "$ac_cv_exeext" = no && ac_cv_exeext=
2475 if test -z "$ac_file"; then :
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2477 $as_echo "no" >&6; }
2478 $as_echo "$as_me: failed program was:" >&5
2479 sed 's
/^
/|
/' conftest.$ac_ext >&5
2481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2482 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2483 as_fn_error 77 "C compiler cannot create executables
2484 See \`config.log
' for more details" "$LINENO" 5; }
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2487 $as_echo "yes" >&6; }
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2490 $as_echo_n "checking for C compiler default output file name... " >&6; }
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2492 $as_echo "$ac_file" >&6; }
2493 ac_exeext=$ac_cv_exeext
2495 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2496 ac_clean_files=$ac_clean_files_save
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2498 $as_echo_n "checking for suffix of executables... " >&6; }
2499 if { { ac_try="$ac_link"
2501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2502 *) ac_try_echo=$ac_try;;
2504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2505 $as_echo "$ac_try_echo"; } >&5
2506 (eval "$ac_link") 2>&5
2508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2509 test $ac_status = 0; }; then :
2510 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2511 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2512 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2514 for ac_file
in conftest.exe conftest conftest.
*; do
2515 test -f "$ac_file" ||
continue
2517 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2518 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2526 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2527 See \`config.log' for more details" "$LINENO" 5; }
2529 rm -f conftest conftest
$ac_cv_exeext
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2531 $as_echo "$ac_cv_exeext" >&6; }
2533 rm -f conftest.
$ac_ext
2534 EXEEXT
=$ac_cv_exeext
2536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2537 /* end confdefs.h. */
2542 FILE *f = fopen ("conftest.out", "w");
2543 return ferror (f) || fclose (f) != 0;
2549 ac_clean_files
="$ac_clean_files conftest.out"
2550 # Check that the compiler produces executables we can run. If not, either
2551 # the compiler is broken, or we cross compile.
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2553 $as_echo_n "checking whether we are cross compiling... " >&6; }
2554 if test "$cross_compiling" != yes; then
2555 { { ac_try
="$ac_link"
2557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2558 *) ac_try_echo=$ac_try;;
2560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2561 $as_echo "$ac_try_echo"; } >&5
2562 (eval "$ac_link") 2>&5
2564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2565 test $ac_status = 0; }
2566 if { ac_try='./conftest$ac_cv_exeext'
2567 { { case "(($ac_try" in
2568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2569 *) ac_try_echo
=$ac_try;;
2571 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2572 $as_echo "$ac_try_echo"; } >&5
2573 (eval "$ac_try") 2>&5
2575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2576 test $ac_status = 0; }; }; then
2579 if test "$cross_compiling" = maybe
; then
2582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2584 as_fn_error $?
"cannot run C compiled programs.
2585 If you meant to cross compile, use \`--host'.
2586 See \`config.log' for more details" "$LINENO" 5; }
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2591 $as_echo "$cross_compiling" >&6; }
2593 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2594 ac_clean_files
=$ac_clean_files_save
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2596 $as_echo_n "checking for suffix of object files... " >&6; }
2597 if ${ac_cv_objext+:} false
; then :
2598 $as_echo_n "(cached) " >&6
2600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2601 /* end confdefs.h. */
2611 rm -f conftest.o conftest.obj
2612 if { { ac_try
="$ac_compile"
2614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2615 *) ac_try_echo=$ac_try;;
2617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2618 $as_echo "$ac_try_echo"; } >&5
2619 (eval "$ac_compile") 2>&5
2621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2622 test $ac_status = 0; }; then :
2623 for ac_file in conftest.o conftest.obj conftest.*; do
2624 test -f "$ac_file" || continue;
2626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2627 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2632 $as_echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2637 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2638 See \
`config.log' for more details" "$LINENO" 5; }
2640 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2643 $as_echo "$ac_cv_objext" >&6; }
2644 OBJEXT=$ac_cv_objext
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2647 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2648 if ${ac_cv_c_compiler_gnu+:} false; then :
2649 $as_echo_n "(cached) " >&6
2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652 /* end confdefs.h. */
2665 if ac_fn_c_try_compile "$LINENO"; then :
2670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2675 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2676 if test $ac_compiler_gnu = yes; then
2681 ac_test_CFLAGS=${CFLAGS+set}
2682 ac_save_CFLAGS=$CFLAGS
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2684 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2685 if ${ac_cv_prog_cc_g+:} false; then :
2686 $as_echo_n "(cached) " >&6
2688 ac_save_c_werror_flag=$ac_c_werror_flag
2689 ac_c_werror_flag=yes
2692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h. */
2703 if ac_fn_c_try_compile "$LINENO"; then :
2707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2708 /* end confdefs.h. */
2718 if ac_fn_c_try_compile "$LINENO"; then :
2721 ac_c_werror_flag=$ac_save_c_werror_flag
2723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2724 /* end confdefs.h. */
2734 if ac_fn_c_try_compile "$LINENO"; then :
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742 ac_c_werror_flag=$ac_save_c_werror_flag
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2745 $as_echo "$ac_cv_prog_cc_g" >&6; }
2746 if test "$ac_test_CFLAGS" = set; then
2747 CFLAGS=$ac_save_CFLAGS
2748 elif test $ac_cv_prog_cc_g = yes; then
2749 if test "$GCC" = yes; then
2755 if test "$GCC" = yes; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2762 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2763 if ${ac_cv_prog_cc_c89+:} false; then :
2764 $as_echo_n "(cached) " >&6
2766 ac_cv_prog_cc_c89=no
2768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2769 /* end confdefs.h. */
2773 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2774 struct buf { int x; };
2775 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2776 static char *e (p, i)
2782 static char *f (char * (*g) (char **, int), char **p, ...)
2787 s = g (p, va_arg (v,int));
2792 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2793 function prototypes and stuff, but not '\xHH' hex character constants.
2794 These don't provoke an error unfortunately, instead are silently treated
2795 as 'x'. The following induces an error, until -std is added to get
2796 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2797 array size at least. It's necessary to write '\x00'==0 to get something
2798 that's true only with -std. */
2799 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2801 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2802 inside strings and character constants. */
2804 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2806 int test (int i, double x);
2807 struct s1 {int (*f) (int a);};
2808 struct s2 {int (*f) (double a);};
2809 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2815 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2820 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2821 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2823 CC="$ac_save_CC $ac_arg"
2824 if ac_fn_c_try_compile "$LINENO"; then :
2825 ac_cv_prog_cc_c89=$ac_arg
2827 rm -f core conftest.err conftest.$ac_objext
2828 test "x$ac_cv_prog_cc_c89" != "xno" && break
2830 rm -f conftest.$ac_ext
2835 case "x$ac_cv_prog_cc_c89" in
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2838 $as_echo "none needed" >&6; } ;;
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2841 $as_echo "unsupported" >&6; } ;;
2843 CC="$CC $ac_cv_prog_cc_c89"
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2845 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2847 if test "x$ac_cv_prog_cc_c89" != xno; then :
2852 ac_cpp='$CPP $CPPFLAGS'
2853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2858 ac_cpp='$CXXCPP $CPPFLAGS'
2859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2862 if test -z "$CXX"; then
2863 if test -n "$CCC"; then
2866 if test -n "$ac_tool_prefix"; then
2867 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2870 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if ${ac_cv_prog_CXX+:} false; then :
2874 $as_echo_n "(cached) " >&6
2876 if test -n "$CXX"; then
2877 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 if test -n "$CXX"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2899 $as_echo "$CXX" >&6; }
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2906 test -n "$CXX" && break
2909 if test -z "$CXX"; then
2911 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2913 # Extract the first word of "$ac_prog", so it can be a program name with args.
2914 set dummy $ac_prog; ac_word=$2
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2918 $as_echo_n "(cached) " >&6
2920 if test -n "$ac_ct_CXX"; then
2921 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930 ac_cv_prog_ac_ct_CXX="$ac_prog"
2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2941 if test -n "$ac_ct_CXX"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2943 $as_echo "$ac_ct_CXX" >&6; }
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 $as_echo "no" >&6; }
2950 test -n "$ac_ct_CXX" && break
2953 if test "x$ac_ct_CXX" = x; then
2956 case $cross_compiling:$ac_tool_warned in
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2960 ac_tool_warned=yes ;;
2968 # Provide some information about the compiler.
2969 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2972 for ac_option in --version -v -V -qversion; do
2973 { { ac_try="$ac_compiler $ac_option >&5"
2975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2976 *) ac_try_echo
=$ac_try;;
2978 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2979 $as_echo "$ac_try_echo"; } >&5
2980 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2982 if test -s conftest.err
; then
2984 ... rest of stderr output deleted ...
2985 10q' conftest.err
>conftest.er1
2986 cat conftest.er1
>&5
2988 rm -f conftest.er1 conftest.err
2989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2990 test $ac_status = 0; }
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2994 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2995 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
2996 $as_echo_n "(cached) " >&6
2998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2999 /* end confdefs.h. */
3012 if ac_fn_cxx_try_compile
"$LINENO"; then :
3017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3018 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3022 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3023 if test $ac_compiler_gnu = yes; then
3028 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3029 ac_save_CXXFLAGS
=$CXXFLAGS
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3031 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3032 if ${ac_cv_prog_cxx_g+:} false
; then :
3033 $as_echo_n "(cached) " >&6
3035 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3036 ac_cxx_werror_flag
=yes
3039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3040 /* end confdefs.h. */
3050 if ac_fn_cxx_try_compile
"$LINENO"; then :
3051 ac_cv_prog_cxx_g
=yes
3054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3055 /* end confdefs.h. */
3065 if ac_fn_cxx_try_compile
"$LINENO"; then :
3068 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3071 /* end confdefs.h. */
3081 if ac_fn_cxx_try_compile
"$LINENO"; then :
3082 ac_cv_prog_cxx_g
=yes
3084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3089 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3092 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3093 if test "$ac_test_CXXFLAGS" = set; then
3094 CXXFLAGS
=$ac_save_CXXFLAGS
3095 elif test $ac_cv_prog_cxx_g = yes; then
3096 if test "$GXX" = yes; then
3102 if test "$GXX" = yes; then
3109 ac_cpp
='$CPP $CPPFLAGS'
3110 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3111 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3112 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3114 if test -n "$ac_tool_prefix"; then
3115 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3116 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if ${ac_cv_prog_AR+:} false
; then :
3120 $as_echo_n "(cached) " >&6
3122 if test -n "$AR"; then
3123 ac_cv_prog_AR
="$AR" # Let the user override the test.
3125 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3129 test -z "$as_dir" && as_dir
=.
3130 for ac_exec_ext
in '' $ac_executable_extensions; do
3131 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3132 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 if test -n "$AR"; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3145 $as_echo "$AR" >&6; }
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3153 if test -z "$ac_cv_prog_AR"; then
3155 # Extract the first word of "ar", so it can be a program name with args.
3156 set dummy
ar; ac_word
=$2
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
3160 $as_echo_n "(cached) " >&6
3162 if test -n "$ac_ct_AR"; then
3163 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
3165 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3169 test -z "$as_dir" && as_dir
=.
3170 for ac_exec_ext
in '' $ac_executable_extensions; do
3171 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3172 ac_cv_prog_ac_ct_AR
="ar"
3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
3183 if test -n "$ac_ct_AR"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3185 $as_echo "$ac_ct_AR" >&6; }
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3191 if test "x$ac_ct_AR" = x
; then
3194 case $cross_compiling:$ac_tool_warned in
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3198 ac_tool_warned
=yes ;;
3206 if test -n "$ac_tool_prefix"; then
3207 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3208 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_prog_RANLIB+:} false
; then :
3212 $as_echo_n "(cached) " >&6
3214 if test -n "$RANLIB"; then
3215 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3221 test -z "$as_dir" && as_dir
=.
3222 for ac_exec_ext
in '' $ac_executable_extensions; do
3223 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3224 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 RANLIB
=$ac_cv_prog_RANLIB
3235 if test -n "$RANLIB"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3237 $as_echo "$RANLIB" >&6; }
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3245 if test -z "$ac_cv_prog_RANLIB"; then
3246 ac_ct_RANLIB
=$RANLIB
3247 # Extract the first word of "ranlib", so it can be a program name with args.
3248 set dummy ranlib
; ac_word
=$2
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250 $as_echo_n "checking for $ac_word... " >&6; }
3251 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
3252 $as_echo_n "(cached) " >&6
3254 if test -n "$ac_ct_RANLIB"; then
3255 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3257 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3261 test -z "$as_dir" && as_dir
=.
3262 for ac_exec_ext
in '' $ac_executable_extensions; do
3263 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3264 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3275 if test -n "$ac_ct_RANLIB"; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3277 $as_echo "$ac_ct_RANLIB" >&6; }
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3283 if test "x$ac_ct_RANLIB" = x
; then
3286 case $cross_compiling:$ac_tool_warned in
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3290 ac_tool_warned
=yes ;;
3292 RANLIB
=$ac_ct_RANLIB
3295 RANLIB
="$ac_cv_prog_RANLIB"
3299 #-------------------------------------------------------------------------
3300 # MCPPBS specific program checks
3301 #-------------------------------------------------------------------------
3302 # These macros check to see if we can do a stow-based install and also
3303 # check for an isa simulator suitable for running the unit test programs
3306 # Find a good install program. We prefer a C program (faster),
3307 # so one script is as good as another. But avoid the broken or
3308 # incompatible versions:
3309 # SysV /etc/install, /usr/sbin/install
3310 # SunOS /usr/etc/install
3311 # IRIX /sbin/install
3313 # AmigaOS /C/install, which installs bootblocks on floppy discs
3314 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3315 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3316 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3317 # OS/2's system install, which has a completely different semantic
3318 # ./install, which can be erroneously created by make from ./install.sh.
3319 # Reject install programs that cannot install multiple files.
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3321 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3322 if test -z "$INSTALL"; then
3323 if ${ac_cv_path_install+:} false
; then :
3324 $as_echo_n "(cached) " >&6
3326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3330 test -z "$as_dir" && as_dir
=.
3331 # Account for people who put trailing slashes in PATH elements.
3332 case $as_dir/ in #((
3333 .
/ | .
// |
/[cC
]/* | \
3334 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3335 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3338 # OSF1 and SCO ODT 3.0 have their own names for install.
3339 # Don't use installbsd from OSF since it installs stuff as root
3341 for ac_prog
in ginstall scoinst
install; do
3342 for ac_exec_ext
in '' $ac_executable_extensions; do
3343 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
3344 if test $ac_prog = install &&
3345 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3346 # AIX install. It has an incompatible calling convention.
3348 elif test $ac_prog = install &&
3349 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3350 # program-specific install script used by HP pwplus--don't use.
3353 rm -rf conftest.one conftest.two conftest.dir
3354 echo one
> conftest.one
3355 echo two
> conftest.two
3357 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3358 test -s conftest.one
&& test -s conftest.two
&&
3359 test -s conftest.dir
/conftest.one
&&
3360 test -s conftest.dir
/conftest.two
3362 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3375 rm -rf conftest.one conftest.two conftest.dir
3378 if test "${ac_cv_path_install+set}" = set; then
3379 INSTALL
=$ac_cv_path_install
3381 # As a last resort, use the slow shell script. Don't cache a
3382 # value for INSTALL within a source directory, because that will
3383 # break other packages using the cache if that directory is
3384 # removed, or if the value is a relative name.
3385 INSTALL
=$ac_install_sh
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3389 $as_echo "$INSTALL" >&6; }
3391 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3392 # It thinks the first close brace ends the variable substitution.
3393 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3395 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3397 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3401 # Configure command line option
3403 # Check whether --enable-stow was given.
3404 if test "${enable_stow+set}" = set; then :
3405 enableval
=$enable_stow; enable_stow
="yes"
3413 # Environment variables
3418 # Check for install script
3422 # Deterimine if native build and set prefix appropriately
3424 if test ${enable_stow} = "yes" ; then :
3428 # Extract the first word of "$ac_prog", so it can be a program name with args.
3429 set dummy
$ac_prog; ac_word
=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if ${ac_cv_prog_stow+:} false
; then :
3433 $as_echo_n "(cached) " >&6
3435 if test -n "$stow"; then
3436 ac_cv_prog_stow
="$stow" # Let the user override the test.
3438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3442 test -z "$as_dir" && as_dir
=.
3443 for ac_exec_ext
in '' $ac_executable_extensions; do
3444 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3445 ac_cv_prog_stow
="$ac_prog"
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 stow
=$ac_cv_prog_stow
3456 if test -n "$stow"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stow" >&5
3458 $as_echo "$stow" >&6; }
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3465 test -n "$stow" && break
3467 test -n "$stow" || stow
="no"
3469 if test ${stow} = "no" ; then :
3471 as_fn_error $?
"Cannot use --enable-stow since stow is not available" "$LINENO" 5
3475 # Check if native or non-native build
3477 if test "${build}" = "${host}" ; then :
3480 # build == host so this is a native build. Make sure --prefix not
3481 # set and $STOW_PREFIX is set, then set prefix=$STOW_PREFIX.
3483 if test "${prefix}" = "NONE" && test -n "${STOW_PREFIX}" ; then :
3485 prefix
="${STOW_PREFIX}"
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_PREFIX from environment" >&5
3487 $as_echo "$as_me: Using \$STOW_PREFIX from environment" >&6;}
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
3489 $as_echo "$as_me: prefix=${prefix}" >&6;}
3497 # build != host so this is a non-native build. Make sure --prefix
3498 # not set and $STOW_ROOT is set, then set
3499 # prefix=$STOW_ROOT/${host_alias}.
3501 if test "${prefix}" = "NONE" && test -n "${STOW_ROOT}" ; then :
3503 prefix
="${STOW_ROOT}/${host_alias}"
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_ROOT from environment" >&5
3505 $as_echo "$as_me: Using \$STOW_ROOT from environment" >&6;}
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
3507 $as_echo "$as_me: prefix=${prefix}" >&6;}
3519 if test "${build}" != "${host}" ; then :
3521 if test -n "$ac_tool_prefix"; then
3522 for ac_prog
in isa-run run
3524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3525 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527 $as_echo_n "checking for $ac_word... " >&6; }
3528 if ${ac_cv_prog_RUN+:} false
; then :
3529 $as_echo_n "(cached) " >&6
3531 if test -n "$RUN"; then
3532 ac_cv_prog_RUN
="$RUN" # Let the user override the test.
3534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3538 test -z "$as_dir" && as_dir
=.
3539 for ac_exec_ext
in '' $ac_executable_extensions; do
3540 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3541 ac_cv_prog_RUN
="$ac_tool_prefix$ac_prog"
3542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 if test -n "$RUN"; then
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUN" >&5
3554 $as_echo "$RUN" >&6; }
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557 $as_echo "no" >&6; }
3561 test -n "$RUN" && break
3564 if test -z "$RUN"; then
3566 for ac_prog
in isa-run run
3568 # Extract the first word of "$ac_prog", so it can be a program name with args.
3569 set dummy
$ac_prog; ac_word
=$2
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571 $as_echo_n "checking for $ac_word... " >&6; }
3572 if ${ac_cv_prog_ac_ct_RUN+:} false
; then :
3573 $as_echo_n "(cached) " >&6
3575 if test -n "$ac_ct_RUN"; then
3576 ac_cv_prog_ac_ct_RUN
="$ac_ct_RUN" # Let the user override the test.
3578 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3582 test -z "$as_dir" && as_dir
=.
3583 for ac_exec_ext
in '' $ac_executable_extensions; do
3584 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3585 ac_cv_prog_ac_ct_RUN
="$ac_prog"
3586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 ac_ct_RUN
=$ac_cv_prog_ac_ct_RUN
3596 if test -n "$ac_ct_RUN"; then
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RUN" >&5
3598 $as_echo "$ac_ct_RUN" >&6; }
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 $as_echo "no" >&6; }
3605 test -n "$ac_ct_RUN" && break
3608 if test "x$ac_ct_RUN" = x
; then
3611 case $cross_compiling:$ac_tool_warned in
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3615 ac_tool_warned
=yes ;;
3621 if test ${RUN} = "no" ; then :
3623 as_fn_error $?
"Cannot find simulator for target ${target_alias}" "$LINENO" 5
3636 #-------------------------------------------------------------------------
3637 # Checks for header files
3638 #-------------------------------------------------------------------------
3642 ac_cpp
='$CPP $CPPFLAGS'
3643 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3644 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3645 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3647 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3648 # On Suns, sometimes $CPP names a directory.
3649 if test -n "$CPP" && test -d "$CPP"; then
3652 if test -z "$CPP"; then
3653 if ${ac_cv_prog_CPP+:} false
; then :
3654 $as_echo_n "(cached) " >&6
3656 # Double quotes because CPP needs to be expanded
3657 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3660 for ac_c_preproc_warn_flag
in '' yes
3662 # Use a header file that comes with gcc, so configuring glibc
3663 # with a fresh cross-compiler works.
3664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3665 # <limits.h> exists even on freestanding compilers.
3666 # On the NeXT, cc -E runs the code through the compiler's parser,
3667 # not just through cpp. "Syntax error" is here to catch this case.
3668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3671 # include <limits.h>
3673 # include <assert.h>
3677 if ac_fn_c_try_cpp
"$LINENO"; then :
3680 # Broken: fails on valid input.
3683 rm -f conftest.err conftest.i conftest.
$ac_ext
3685 # OK, works on sane cases. Now check whether nonexistent headers
3686 # can be detected and how.
3687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3689 #include <ac_nonexistent.h>
3691 if ac_fn_c_try_cpp
"$LINENO"; then :
3692 # Broken: success on invalid input.
3695 # Passes both tests.
3699 rm -f conftest.err conftest.i conftest.
$ac_ext
3702 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3703 rm -f conftest.i conftest.err conftest.
$ac_ext
3704 if $ac_preproc_ok; then :
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3717 $as_echo "$CPP" >&6; }
3719 for ac_c_preproc_warn_flag
in '' yes
3721 # Use a header file that comes with gcc, so configuring glibc
3722 # with a fresh cross-compiler works.
3723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3724 # <limits.h> exists even on freestanding compilers.
3725 # On the NeXT, cc -E runs the code through the compiler's parser,
3726 # not just through cpp. "Syntax error" is here to catch this case.
3727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3730 # include <limits.h>
3732 # include <assert.h>
3736 if ac_fn_c_try_cpp
"$LINENO"; then :
3739 # Broken: fails on valid input.
3742 rm -f conftest.err conftest.i conftest.
$ac_ext
3744 # OK, works on sane cases. Now check whether nonexistent headers
3745 # can be detected and how.
3746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3748 #include <ac_nonexistent.h>
3750 if ac_fn_c_try_cpp
"$LINENO"; then :
3751 # Broken: success on invalid input.
3754 # Passes both tests.
3758 rm -f conftest.err conftest.i conftest.
$ac_ext
3761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3762 rm -f conftest.i conftest.err conftest.
$ac_ext
3763 if $ac_preproc_ok; then :
3766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3768 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3769 See \`config.log' for more details" "$LINENO" 5; }
3773 ac_cpp
='$CPP $CPPFLAGS'
3774 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3780 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3781 if ${ac_cv_path_GREP+:} false
; then :
3782 $as_echo_n "(cached) " >&6
3784 if test -z "$GREP"; then
3785 ac_path_GREP_found
=false
3786 # Loop through the user's path and test for each of PROGNAME-LIST
3787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3788 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3791 test -z "$as_dir" && as_dir
=.
3792 for ac_prog
in grep ggrep
; do
3793 for ac_exec_ext
in '' $ac_executable_extensions; do
3794 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3795 as_fn_executable_p
"$ac_path_GREP" ||
continue
3796 # Check for GNU ac_path_GREP and select it if it is found.
3797 # Check for GNU $ac_path_GREP
3798 case `"$ac_path_GREP" --version 2>&1` in
3800 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3803 $as_echo_n 0123456789 >"conftest.in"
3806 cat "conftest.in" "conftest.in" >"conftest.tmp"
3807 mv "conftest.tmp" "conftest.in"
3808 cp "conftest.in" "conftest.nl"
3809 $as_echo 'GREP' >> "conftest.nl"
3810 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3811 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3812 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3813 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3814 # Best one so far, save it but keep looking for a better one
3815 ac_cv_path_GREP
="$ac_path_GREP"
3816 ac_path_GREP_max
=$ac_count
3818 # 10*(2^10) chars as input seems more than enough
3819 test $ac_count -gt 10 && break
3821 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3824 $ac_path_GREP_found && break 3
3829 if test -z "$ac_cv_path_GREP"; then
3830 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3833 ac_cv_path_GREP
=$GREP
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3838 $as_echo "$ac_cv_path_GREP" >&6; }
3839 GREP
="$ac_cv_path_GREP"
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3843 $as_echo_n "checking for egrep... " >&6; }
3844 if ${ac_cv_path_EGREP+:} false
; then :
3845 $as_echo_n "(cached) " >&6
3847 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3848 then ac_cv_path_EGREP
="$GREP -E"
3850 if test -z "$EGREP"; then
3851 ac_path_EGREP_found
=false
3852 # Loop through the user's path and test for each of PROGNAME-LIST
3853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3854 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3857 test -z "$as_dir" && as_dir
=.
3858 for ac_prog
in egrep; do
3859 for ac_exec_ext
in '' $ac_executable_extensions; do
3860 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3861 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3862 # Check for GNU ac_path_EGREP and select it if it is found.
3863 # Check for GNU $ac_path_EGREP
3864 case `"$ac_path_EGREP" --version 2>&1` in
3866 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3869 $as_echo_n 0123456789 >"conftest.in"
3872 cat "conftest.in" "conftest.in" >"conftest.tmp"
3873 mv "conftest.tmp" "conftest.in"
3874 cp "conftest.in" "conftest.nl"
3875 $as_echo 'EGREP' >> "conftest.nl"
3876 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3877 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3878 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3879 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3880 # Best one so far, save it but keep looking for a better one
3881 ac_cv_path_EGREP
="$ac_path_EGREP"
3882 ac_path_EGREP_max
=$ac_count
3884 # 10*(2^10) chars as input seems more than enough
3885 test $ac_count -gt 10 && break
3887 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3890 $ac_path_EGREP_found && break 3
3895 if test -z "$ac_cv_path_EGREP"; then
3896 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3899 ac_cv_path_EGREP
=$EGREP
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3905 $as_echo "$ac_cv_path_EGREP" >&6; }
3906 EGREP
="$ac_cv_path_EGREP"
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3910 $as_echo_n "checking for ANSI C header files... " >&6; }
3911 if ${ac_cv_header_stdc+:} false
; then :
3912 $as_echo_n "(cached) " >&6
3914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3929 if ac_fn_c_try_compile
"$LINENO"; then :
3930 ac_cv_header_stdc
=yes
3932 ac_cv_header_stdc
=no
3934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3936 if test $ac_cv_header_stdc = yes; then
3937 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3944 $EGREP "memchr" >/dev
/null
2>&1; then :
3947 ac_cv_header_stdc
=no
3953 if test $ac_cv_header_stdc = yes; then
3954 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3961 $EGREP "free" >/dev
/null
2>&1; then :
3964 ac_cv_header_stdc
=no
3970 if test $ac_cv_header_stdc = yes; then
3971 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3972 if test "$cross_compiling" = yes; then :
3975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3979 #if ((' ' & 0x0FF) == 0x020)
3980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3983 # define ISLOWER(c) \
3984 (('a' <= (c) && (c) <= 'i') \
3985 || ('j' <= (c) && (c) <= 'r') \
3986 || ('s' <= (c) && (c) <= 'z'))
3987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3995 for (i = 0; i < 256; i++)
3996 if (XOR (islower (i), ISLOWER (i))
3997 || toupper (i) != TOUPPER (i))
4002 if ac_fn_c_try_run
"$LINENO"; then :
4005 ac_cv_header_stdc
=no
4007 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4008 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4014 $as_echo "$ac_cv_header_stdc" >&6; }
4015 if test $ac_cv_header_stdc = yes; then
4017 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4022 #-------------------------------------------------------------------------
4023 # Default compiler flags
4024 #-------------------------------------------------------------------------
4026 CFLAGS
="-Wall -Wno-unused -O2"
4028 CXXFLAGS
="-Wall -Wno-unused -O2 -std=c++11"
4031 #-------------------------------------------------------------------------
4032 # MCPPBS subproject list
4033 #-------------------------------------------------------------------------
4034 # Order list so that subprojects only depend on those listed earlier.
4035 # The '*' suffix indicates an optional subproject. The '**' suffix
4036 # indicates an optional subproject which is also the name of a group.
4040 # Add command line argument to enable all optional subprojects
4042 # Check whether --enable-optional-subprojects was given.
4043 if test "${enable_optional_subprojects+set}" = set; then :
4044 enableval
=$enable_optional_subprojects;
4048 # Loop through the subprojects given in the macro argument
4052 # Determine if this is a required or an optional subproject
4056 # Determine if there is a group with the same name
4060 # Create variations of the subproject name suitable for use as a CPP
4061 # enabled define, a shell enabled variable, and a shell function
4073 # Add subproject to our running list
4075 subprojects
="$subprojects riscv"
4077 # Process the subproject appropriately. If enabled add it to the
4078 # $enabled_subprojects running shell variable, set a
4079 # SUBPROJECT_ENABLED C define, and include the appropriate
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : riscv" >&5
4084 $as_echo "$as_me: configuring default subproject : riscv" >&6;}
4085 ac_config_files
="$ac_config_files riscv.mk:riscv/riscv.mk.in"
4087 enable_riscv_sproj
="yes"
4088 subprojects_enabled
="$subprojects_enabled riscv"
4090 $as_echo "#define RISCV_ENABLED /**/" >>confdefs.h
4093 # Check whether --with-fesvr was given.
4094 if test "${with_fesvr+set}" = set; then :
4095 withval
=$with_fesvr;
4096 LDFLAGS
="-L$withval/lib $LDFLAGS"
4097 CPPFLAGS
="-I$withval/include $CPPFLAGS"
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfesvr_is_present in -lfesvr" >&5
4104 $as_echo_n "checking for libfesvr_is_present in -lfesvr... " >&6; }
4105 if ${ac_cv_lib_fesvr_libfesvr_is_present+:} false
; then :
4106 $as_echo_n "(cached) " >&6
4108 ac_check_lib_save_LIBS
=$LIBS
4109 LIBS
="-lfesvr -pthread $LIBS"
4110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4113 /* Override any GCC internal prototype to avoid an error.
4114 Use char because int might match the return type of a GCC
4115 builtin and then its argument prototype would still apply. */
4119 char libfesvr_is_present ();
4123 return libfesvr_is_present ();
4128 if ac_fn_c_try_link
"$LINENO"; then :
4129 ac_cv_lib_fesvr_libfesvr_is_present
=yes
4131 ac_cv_lib_fesvr_libfesvr_is_present
=no
4133 rm -f core conftest.err conftest.
$ac_objext \
4134 conftest
$ac_exeext conftest.
$ac_ext
4135 LIBS
=$ac_check_lib_save_LIBS
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fesvr_libfesvr_is_present" >&5
4138 $as_echo "$ac_cv_lib_fesvr_libfesvr_is_present" >&6; }
4139 if test "x$ac_cv_lib_fesvr_libfesvr_is_present" = xyes
; then :
4140 cat >>confdefs.h
<<_ACEOF
4141 #define HAVE_LIBFESVR 1
4144 LIBS
="-lfesvr $LIBS"
4147 as_fn_error $?
"libfesvr is required" "$LINENO" 5
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
4152 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
4153 if ${ac_cv_lib_pthread_pthread_create+:} false
; then :
4154 $as_echo_n "(cached) " >&6
4156 ac_check_lib_save_LIBS
=$LIBS
4157 LIBS
="-lpthread $LIBS"
4158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4161 /* Override any GCC internal prototype to avoid an error.
4162 Use char because int might match the return type of a GCC
4163 builtin and then its argument prototype would still apply. */
4167 char pthread_create ();
4171 return pthread_create ();
4176 if ac_fn_c_try_link
"$LINENO"; then :
4177 ac_cv_lib_pthread_pthread_create
=yes
4179 ac_cv_lib_pthread_pthread_create
=no
4181 rm -f core conftest.err conftest.
$ac_objext \
4182 conftest
$ac_exeext conftest.
$ac_ext
4183 LIBS
=$ac_check_lib_save_LIBS
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
4186 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
4187 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
; then :
4188 cat >>confdefs.h
<<_ACEOF
4189 #define HAVE_LIBPTHREAD 1
4192 LIBS
="-lpthread $LIBS"
4195 as_fn_error $?
"libpthread is required" "$LINENO" 5
4199 # Check whether --enable-fpu was given.
4200 if test "${enable_fpu+set}" = set; then :
4201 enableval
=$enable_fpu;
4204 if test "x$enable_fpu" != "xno"; then :
4207 $as_echo "#define RISCV_ENABLE_FPU /**/" >>confdefs.h
4212 # Check whether --enable-64bit was given.
4213 if test "${enable_64bit+set}" = set; then :
4214 enableval
=$enable_64bit;
4217 if test "x$enable_64bit" != "xno"; then :
4220 $as_echo "#define RISCV_ENABLE_64BIT /**/" >>confdefs.h
4225 # Check whether --enable-commitlog was given.
4226 if test "${enable_commitlog+set}" = set; then :
4227 enableval
=$enable_commitlog;
4230 if test "x$enable_commitlog" = "xyes"; then :
4233 $as_echo "#define RISCV_ENABLE_COMMITLOG /**/" >>confdefs.h
4238 # Check whether --enable-histogram was given.
4239 if test "${enable_histogram+set}" = set; then :
4240 enableval
=$enable_histogram;
4243 if test "x$enable_histogram" = "xyes"; then :
4246 $as_echo "#define RISCV_ENABLE_HISTOGRAM /**/" >>confdefs.h
4255 # Determine if this is a required or an optional subproject
4259 # Determine if there is a group with the same name
4263 # Create variations of the subproject name suitable for use as a CPP
4264 # enabled define, a shell enabled variable, and a shell function
4276 # Add subproject to our running list
4278 subprojects
="$subprojects hwacha"
4280 # Process the subproject appropriately. If enabled add it to the
4281 # $enabled_subprojects running shell variable, set a
4282 # SUBPROJECT_ENABLED C define, and include the appropriate
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : hwacha" >&5
4287 $as_echo "$as_me: configuring default subproject : hwacha" >&6;}
4288 ac_config_files
="$ac_config_files hwacha.mk:hwacha/hwacha.mk.in"
4290 enable_hwacha_sproj
="yes"
4291 subprojects_enabled
="$subprojects_enabled hwacha"
4293 $as_echo "#define HWACHA_ENABLED /**/" >>confdefs.h
4300 # Determine if this is a required or an optional subproject
4304 # Determine if there is a group with the same name
4308 # Create variations of the subproject name suitable for use as a CPP
4309 # enabled define, a shell enabled variable, and a shell function
4321 # Add subproject to our running list
4323 subprojects
="$subprojects dummy_rocc"
4325 # Process the subproject appropriately. If enabled add it to the
4326 # $enabled_subprojects running shell variable, set a
4327 # SUBPROJECT_ENABLED C define, and include the appropriate
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : dummy_rocc" >&5
4332 $as_echo "$as_me: configuring default subproject : dummy_rocc" >&6;}
4333 ac_config_files
="$ac_config_files dummy_rocc.mk:dummy_rocc/dummy_rocc.mk.in"
4335 enable_dummy_rocc_sproj
="yes"
4336 subprojects_enabled
="$subprojects_enabled dummy_rocc"
4338 $as_echo "#define DUMMY_ROCC_ENABLED /**/" >>confdefs.h
4345 # Determine if this is a required or an optional subproject
4349 # Determine if there is a group with the same name
4353 # Create variations of the subproject name suitable for use as a CPP
4354 # enabled define, a shell enabled variable, and a shell function
4366 # Add subproject to our running list
4368 subprojects
="$subprojects softfloat"
4370 # Process the subproject appropriately. If enabled add it to the
4371 # $enabled_subprojects running shell variable, set a
4372 # SUBPROJECT_ENABLED C define, and include the appropriate
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : softfloat" >&5
4377 $as_echo "$as_me: configuring default subproject : softfloat" >&6;}
4378 ac_config_files
="$ac_config_files softfloat.mk:softfloat/softfloat.mk.in"
4380 enable_softfloat_sproj
="yes"
4381 subprojects_enabled
="$subprojects_enabled softfloat"
4383 $as_echo "#define SOFTFLOAT_ENABLED /**/" >>confdefs.h
4390 # Determine if this is a required or an optional subproject
4394 # Determine if there is a group with the same name
4398 # Create variations of the subproject name suitable for use as a CPP
4399 # enabled define, a shell enabled variable, and a shell function
4411 # Add subproject to our running list
4413 subprojects
="$subprojects spike_main"
4415 # Process the subproject appropriately. If enabled add it to the
4416 # $enabled_subprojects running shell variable, set a
4417 # SUBPROJECT_ENABLED C define, and include the appropriate
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : spike_main" >&5
4422 $as_echo "$as_me: configuring default subproject : spike_main" >&6;}
4423 ac_config_files
="$ac_config_files spike_main.mk:spike_main/spike_main.mk.in"
4425 enable_spike_main_sproj
="yes"
4426 subprojects_enabled
="$subprojects_enabled spike_main"
4428 $as_echo "#define SPIKE_MAIN_ENABLED /**/" >>confdefs.h
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4431 $as_echo_n "checking for library containing dlopen... " >&6; }
4432 if ${ac_cv_search_dlopen+:} false
; then :
4433 $as_echo_n "(cached) " >&6
4435 ac_func_search_save_LIBS
=$LIBS
4436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4439 /* Override any GCC internal prototype to avoid an error.
4440 Use char because int might match the return type of a GCC
4441 builtin and then its argument prototype would still apply. */
4454 for ac_lib
in '' dl dld
; do
4455 if test -z "$ac_lib"; then
4456 ac_res
="none required"
4459 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4461 if ac_fn_c_try_link
"$LINENO"; then :
4462 ac_cv_search_dlopen
=$ac_res
4464 rm -f core conftest.err conftest.
$ac_objext \
4466 if ${ac_cv_search_dlopen+:} false
; then :
4470 if ${ac_cv_search_dlopen+:} false
; then :
4473 ac_cv_search_dlopen
=no
4476 LIBS
=$ac_func_search_save_LIBS
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4479 $as_echo "$ac_cv_search_dlopen" >&6; }
4480 ac_res
=$ac_cv_search_dlopen
4481 if test "$ac_res" != no
; then :
4482 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4486 as_fn_error $?
"unable to find the dlopen() function" "$LINENO" 5
4495 # Output make variables
4502 #-------------------------------------------------------------------------
4503 # MCPPBS subproject groups
4504 #-------------------------------------------------------------------------
4505 # If a group has the same name as a subproject then you must add the
4506 # '**' suffix in the subproject list above. The list of subprojects in a
4507 # group should be ordered so that subprojets only depend on those listed
4508 # earlier. Here is an example:
4510 # MCPPBS_GROUP( [group-name], [sproja,sprojb,...] )
4513 #-------------------------------------------------------------------------
4515 #-------------------------------------------------------------------------
4517 ac_config_headers
="$ac_config_headers config.h"
4519 ac_config_files
="$ac_config_files Makefile"
4521 cat >confcache
<<\_ACEOF
4522 # This file is a shell script that caches the results of configure
4523 # tests run on this system so they can be shared between configure
4524 # scripts and configure runs, see configure's option --config-cache.
4525 # It is not useful on other systems. If it contains results you don't
4526 # want to keep, you may remove or edit it.
4528 # config.status only pays attention to the cache file if you give it
4529 # the --recheck option to rerun configure.
4531 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4532 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4537 # The following way of writing the cache mishandles newlines in values,
4538 # but we know of no workaround that is simple, portable, and efficient.
4539 # So, we kill variables containing newlines.
4540 # Ultrix sh set writes to stderr and can't be redirected directly,
4541 # and sets the high bit in the cache file unless we assign to the vars.
4543 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4544 eval ac_val
=\$
$ac_var
4548 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4549 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4552 _ | IFS | as_nl
) ;; #(
4553 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
4554 *) { eval $ac_var=; unset $ac_var;} ;;
4560 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4561 *${as_nl}ac_space
=\
*)
4562 # `set' does not quote correctly, so add quotes: double-quote
4563 # substitution turns \\\\ into \\, and sed turns \\ into \.
4566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4569 # `set' quotes correctly as required by POSIX, so do not add quotes.
4570 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4579 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4581 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4583 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
4584 if test -w "$cache_file"; then
4585 if test "x$cache_file" != "x/dev/null"; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4587 $as_echo "$as_me: updating cache $cache_file" >&6;}
4588 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
4589 cat confcache
>"$cache_file"
4591 case $cache_file in #(
4593 mv -f confcache
"$cache_file"$$
&&
4594 mv -f "$cache_file"$$
"$cache_file" ;; #(
4596 mv -f confcache
"$cache_file" ;;
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4602 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4607 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4608 # Let make expand exec_prefix.
4609 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4611 DEFS
=-DHAVE_CONFIG_H
4616 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4617 # 1. Remove the extension, and $U if already installed.
4618 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
4619 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
4620 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4621 # will be set to the directory where LIBOBJS objects are built.
4622 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4623 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
4627 LTLIBOBJS
=$ac_ltlibobjs
4631 : "${CONFIG_STATUS=./config.status}"
4633 ac_clean_files_save
=$ac_clean_files
4634 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4636 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4638 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4640 # Generated by $as_me.
4641 # Run this file to recreate the current configuration.
4642 # Compiler output produced by configure, useful for debugging
4643 # configure, is in config.log if it exists.
4649 SHELL=\${CONFIG_SHELL-$SHELL}
4652 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
4653 ## -------------------- ##
4654 ## M4sh Initialization. ##
4655 ## -------------------- ##
4657 # Be more Bourne compatible
4658 DUALCASE
=1; export DUALCASE
# for MKS sh
4659 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
4662 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4663 # is contrary to our usage. Disable this feature.
4664 alias -g '${1+"$@"}'='"$@"'
4665 setopt NO_GLOB_SUBST
4667 case `(set -o) 2>/dev/null` in #(
4679 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4680 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4681 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4682 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4683 # Prefer a ksh shell builtin over an external printf program on Solaris,
4684 # but without wasting forks for bash or zsh.
4685 if test -z "$BASH_VERSION$ZSH_VERSION" \
4686 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4687 as_echo='print
-r --'
4688 as_echo_n='print
-rn --'
4689 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4690 as_echo='printf %s
\n'
4691 as_echo_n='printf %s
'
4693 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4694 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
4695 as_echo_n='/usr
/ucb
/echo -n'
4697 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4698 as_echo_n_body='eval
4702 expr "X$arg" : "X\\(.*\\)$as_nl";
4703 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4705 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
4707 export as_echo_n_body
4708 as_echo_n='sh
-c $as_echo_n_body as_echo
'
4711 as_echo='sh
-c $as_echo_body as_echo
'
4714 # The user is always right.
4715 if test "${PATH_SEPARATOR+set}" != set; then
4717 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4718 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4725 # We need space, tab and new line, in precisely that order. Quoting is
4726 # there to prevent editors from complaining about space-tab.
4727 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4728 # splitting by setting IFS to empty value.)
4731 # Find who we are. Look in the path if we contain no directory separator.
4734 *[\\/]* ) as_myself=$0 ;;
4735 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 test -z "$as_dir" && as_dir=.
4740 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4746 # We did not find ourselves, most probably we were run as `sh COMMAND'
4747 # in which case we are not to be found in the path.
4748 if test "x$as_myself" = x
; then
4751 if test ! -f "$as_myself"; then
4752 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4756 # Unset variables that we do not need and which cause bugs (e.g. in
4757 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4758 # suppresses any "Segmentation fault" message there. '((' could
4759 # trigger a bug in pdksh 5.2.14.
4760 for as_var
in BASH_ENV ENV MAIL MAILPATH
4761 do eval test x\
${$as_var+set} = xset \
4762 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
4775 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
4778 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4779 # ----------------------------------------
4780 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4781 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4782 # script with STATUS, using 1 if that was 0.
4785 as_status
=$1; test $as_status -eq 0 && as_status
=1
4787 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
4788 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4790 $as_echo "$as_me: error: $2" >&2
4791 as_fn_exit
$as_status
4795 # as_fn_set_status STATUS
4796 # -----------------------
4797 # Set $? to STATUS, without forking.
4801 } # as_fn_set_status
4805 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4815 # Portably unset VAR.
4818 { eval $1=; unset $1;}
4820 as_unset
=as_fn_unset
4821 # as_fn_append VAR VALUE
4822 # ----------------------
4823 # Append the text in VALUE to the end of the definition contained in VAR. Take
4824 # advantage of any shell optimizations that allow amortized linear growth over
4825 # repeated appends, instead of the typical quadratic growth present in naive
4827 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
4828 eval 'as_fn_append ()
4839 # as_fn_arith ARG...
4840 # ------------------
4841 # Perform arithmetic evaluation on the ARGs, and store the result in the
4842 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4843 # must be portable across $(()) and expr.
4844 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
4845 eval 'as_fn_arith ()
4852 as_val
=`expr "$@" || test $? -eq 1`
4857 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
4858 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
4864 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4865 as_basename
=basename
4870 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
4876 as_me
=`$as_basename -- "$0" ||
4877 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4878 X"$0" : 'X\(//\)$' \| \
4879 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4881 sed '/^.*\/\([^/][^/]*\)\/*$/{
4895 # Avoid depending upon Character Ranges.
4896 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4897 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4898 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4899 as_cr_digits
='0123456789'
4900 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4902 ECHO_C
= ECHO_N
= ECHO_T
=
4903 case `echo -n x` in #(((((
4905 case `echo 'xy\c'` in
4906 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
4908 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
4915 rm -f conf$$ conf$$.exe conf$$.
file
4916 if test -d conf$$.dir
; then
4917 rm -f conf$$.dir
/conf$$.
file
4920 mkdir conf$$.dir
2>/dev
/null
4922 if (echo >conf$$.
file) 2>/dev
/null
; then
4923 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4925 # ... but there are two gotchas:
4926 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4927 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4928 # In both cases, we have to default to `cp -pR'.
4929 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
4931 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4939 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
4940 rmdir conf$$.dir
2>/dev
/null
4945 # Create "$as_dir" as a directory, including parents if necessary.
4950 -*) as_dir
=.
/$as_dir;;
4952 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
4956 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4957 *) as_qdir
=$as_dir;;
4959 as_dirs
="'$as_qdir' $as_dirs"
4960 as_dir
=`$as_dirname -- "$as_dir" ||
4961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4962 X"$as_dir" : 'X\(//\)[^/]' \| \
4963 X"$as_dir" : 'X\(//\)$' \| \
4964 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4965 $as_echo X"$as_dir" |
4966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4983 test -d "$as_dir" && break
4985 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
4986 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
4990 if mkdir
-p .
2>/dev
/null
; then
4991 as_mkdir_p
='mkdir -p "$as_dir"'
4993 test -d .
/-p && rmdir .
/-p
4998 # as_fn_executable_p FILE
4999 # -----------------------
5000 # Test if FILE is an executable regular file.
5001 as_fn_executable_p
()
5003 test -f "$1" && test -x "$1"
5004 } # as_fn_executable_p
5006 as_executable_p
=as_fn_executable_p
5008 # Sed expression to map a string onto a valid CPP name.
5009 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5011 # Sed expression to map a string onto a valid variable name.
5012 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5016 ## ----------------------------------- ##
5017 ## Main body of $CONFIG_STATUS script. ##
5018 ## ----------------------------------- ##
5020 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
5022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5023 # Save the log message, to keep $0 and so on meaningful, and to
5024 # report actual input values of CONFIG_FILES etc. instead of their
5025 # values after options handling.
5027 This file was extended by RISC-V ISA Simulator $as_me ?, which was
5028 generated by GNU Autoconf 2.69. Invocation command line was
5030 CONFIG_FILES = $CONFIG_FILES
5031 CONFIG_HEADERS = $CONFIG_HEADERS
5032 CONFIG_LINKS = $CONFIG_LINKS
5033 CONFIG_COMMANDS = $CONFIG_COMMANDS
5036 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5041 case $ac_config_files in *"
5042 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
5045 case $ac_config_headers in *"
5046 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
5050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5051 # Files that config.status was made for.
5052 config_files="$ac_config_files"
5053 config_headers="$ac_config_headers"
5057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5059 \`$as_me' instantiates files and other configuration actions
5060 from templates according to the current configuration. Unless the files
5061 and actions are specified as TAGs, all are instantiated by default.
5063 Usage: $0 [OPTION]... [TAG]...
5065 -h, --help print this help, then exit
5066 -V, --version print version number and configuration settings, then exit
5067 --config print configuration, then exit
5068 -q, --quiet, --silent
5069 do not print progress messages
5070 -d, --debug don't remove temporary files
5071 --recheck update $as_me by reconfiguring in the same conditions
5072 --file=FILE[:TEMPLATE]
5073 instantiate the configuration file FILE
5074 --header=FILE[:TEMPLATE]
5075 instantiate the configuration header FILE
5077 Configuration files:
5080 Configuration headers:
5083 Report bugs to <Andrew Waterman>."
5086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5087 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5089 RISC-V ISA Simulator config.status ?
5090 configured by $0, generated by GNU Autoconf 2.69,
5091 with options \\"\$ac_cs_config\\"
5093 Copyright (C) 2012 Free Software Foundation, Inc.
5094 This config.status script is free software; the Free Software Foundation
5095 gives unlimited permission to copy, distribute and modify it."
5100 test -n "\$AWK" || AWK=awk
5103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5104 # The default lists apply if the user does not specify any file.
5110 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5111 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
5115 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5127 # Handling of the options.
5128 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
5130 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
5131 $as_echo "$ac_cs_version"; exit ;;
5132 --config |
--confi |
--conf |
--con |
--co |
--c )
5133 $as_echo "$ac_cs_config"; exit ;;
5134 --debug |
--debu |
--deb |
--de |
--d |
-d )
5136 --file |
--fil |
--fi |
--f )
5139 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5140 '') as_fn_error $?
"missing file argument" ;;
5142 as_fn_append CONFIG_FILES
" '$ac_optarg'"
5143 ac_need_defaults
=false
;;
5144 --header |
--heade |
--head |
--hea )
5147 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5149 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
5150 ac_need_defaults
=false
;;
5152 # Conflict between --help and --header
5153 as_fn_error $?
"ambiguous option: \`$1'
5154 Try \`$0 --help' for more information.";;
5155 --help |
--hel |
-h )
5156 $as_echo "$ac_cs_usage"; exit ;;
5157 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
5158 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
5162 -*) as_fn_error $?
"unrecognized option: \`$1'
5163 Try \`$0 --help' for more information." ;;
5165 *) as_fn_append ac_config_targets
" $1"
5166 ac_need_defaults
=false
;;
5172 ac_configure_extra_args
=
5174 if $ac_cs_silent; then
5176 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5181 if \$ac_cs_recheck; then
5182 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5184 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5185 CONFIG_SHELL='$SHELL'
5191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5195 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5196 ## Running $as_me. ##
5202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5207 # Handling of arguments.
5208 for ac_config_target
in $ac_config_targets
5210 case $ac_config_target in
5211 "riscv.mk") CONFIG_FILES
="$CONFIG_FILES riscv.mk:riscv/riscv.mk.in" ;;
5212 "hwacha.mk") CONFIG_FILES
="$CONFIG_FILES hwacha.mk:hwacha/hwacha.mk.in" ;;
5213 "dummy_rocc.mk") CONFIG_FILES
="$CONFIG_FILES dummy_rocc.mk:dummy_rocc/dummy_rocc.mk.in" ;;
5214 "softfloat.mk") CONFIG_FILES
="$CONFIG_FILES softfloat.mk:softfloat/softfloat.mk.in" ;;
5215 "spike_main.mk") CONFIG_FILES
="$CONFIG_FILES spike_main.mk:spike_main/spike_main.mk.in" ;;
5216 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
5217 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5219 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5224 # If the user did not use the arguments to specify the items to instantiate,
5225 # then the envvar interface is used. Set only those that are not.
5226 # We use the long form for the default assignment because of an extremely
5227 # bizarre bug on SunOS 4.1.3.
5228 if $ac_need_defaults; then
5229 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5230 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5233 # Have a temporary directory for convenience. Make it in the build tree
5234 # simply because there is no reason against having it here, and in addition,
5235 # creating and moving files from /tmp can sometimes cause problems.
5236 # Hook for its removal unless debugging.
5237 # Note that there is a small window in which the directory will not be cleaned:
5238 # after its creation but before its name has been assigned to `$tmp'.
5242 trap 'exit_status=$?
5244 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5246 trap 'as_fn_exit 1' 1 2 13 15
5248 # Create a (secure) tmp directory for tmp files.
5251 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5255 tmp
=.
/conf$$
-$RANDOM
5256 (umask 077 && mkdir
"$tmp")
5257 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
5260 # Set up the scripts for CONFIG_FILES section.
5261 # No need to generate them if there are no CONFIG_FILES.
5262 # This happens for instance with `./config.status config.h'.
5263 if test -n "$CONFIG_FILES"; then
5266 ac_cr
=`echo X | tr X '\015'`
5267 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5268 # But we know of no other shell where ac_cr would be empty at this
5269 # point, so we can use a bashism as a fallback.
5270 if test "x$ac_cr" = x
; then
5271 eval ac_cr
=\$
\'\\r
\'
5273 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5274 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5280 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5285 echo "cat >conf$$subs.awk <<_ACEOF" &&
5286 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5289 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5290 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5292 for ac_last_try in false false false false false :; do
5293 . ./conf$$subs.sh ||
5294 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5296 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
5297 if test $ac_delim_n = $ac_delim_num; then
5299 elif $ac_last_try; then
5300 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5302 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5308 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
5312 s/^/S["/; s
/!.
*/"]=/
5322 s/\(.\{148\}\)..*/\1/
5324 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
5329 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5336 s/\(.\{148\}\)..*/\1/
5338 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5342 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5347 ' <conf$$subs.awk | sed '
5352 ' >>$CONFIG_STATUS || ac_write_fail=1
5353 rm -f conf$$subs.awk
5354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5356 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
5357 for (key in S) S_is_set[key] = 1
5363 nfields = split(line, field, "@
")
5365 len = length(field[1])
5366 for (i = 2; i < nfields; i++) {
5368 keylen = length(key)
5369 if (S_is_set[key]) {
5371 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5372 len += length(value) + length(field[++i])
5383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5384 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5385 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
5388 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
5389 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
5392 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5393 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
5394 # trailing colons and then remove the whole line if VPATH becomes empty
5395 # (actually we leave an empty line to preserve line numbers).
5396 if test "x
$srcdir" = x.; then
5397 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5416 fi # test -n "$CONFIG_FILES"
5418 # Set up the scripts for CONFIG_HEADERS section.
5419 # No need to generate them if there are no CONFIG_HEADERS.
5420 # This happens for instance with `./config.status Makefile'.
5421 if test -n "$CONFIG_HEADERS"; then
5422 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
5426 # Transform confdefs.h into an awk script `defines.awk', embedded as
5427 # here-document in config.status, that substitutes the proper values into
5428 # config.h.in to produce config.h.
5430 # Create a delimiter string that does not exist in confdefs.h, to ease
5431 # handling of long lines.
5433 for ac_last_try in false false :; do
5434 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
5435 if test -z "$ac_tt"; then
5437 elif $ac_last_try; then
5438 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
5440 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5444 # For the awk script, D is an array of macro values keyed by name,
5445 # likewise P contains macro parameters if any. Preserve backslash
5446 # newline sequences.
5448 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5450 s/.\{148\}/&'"$ac_delim"'/g
5453 s/^[ ]*#[ ]*define[ ][ ]*/ /
5460 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5462 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5466 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5467 D["\
1"]=" \
3\\\\\\n
"\\/p
5469 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5474 s/.\{148\}/&'"$ac_delim"'/g
5479 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5482 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5484 ' <confdefs.h | sed '
5485 s/'"$ac_delim"'/"\\\
5486 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5489 for (key in D) D_is_set[key] = 1
5492 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5494 split(line, arg, " ")
5495 if (arg[1] == "#") {
5499 defundef
= substr
(arg
[1], 2)
5502 split(mac1
, mac2
, "(") #)
5504 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5505 if (D_is_set
[macro
]) {
5506 # Preserve the white space surrounding the "#".
5507 print prefix
"define", macro P
[macro
] D
[macro
]
5510 # Replace #undef with comments. This is necessary, for example,
5511 # in the case of _POSIX_SOURCE, which is predefined and required
5512 # on some systems where configure will not decide to define it.
5513 if (defundef
== "undef") {
5514 print
"/*", prefix defundef
, macro
, "*/"
5522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5523 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
5524 fi # test -n "$CONFIG_HEADERS"
5527 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
5532 :[FHLC
]) ac_mode
=$ac_tag; continue;;
5534 case $ac_mode$ac_tag in
5536 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
5537 :[FH
]-) ac_tag
=-:-;;
5538 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
5555 -) ac_f
="$ac_tmp/stdin";;
5556 *) # Look for the file first in the build tree, then in the source tree
5557 # (if the path is not absolute). The absolute path cannot be DOS-style,
5558 # because $ac_f cannot contain `:'.
5562 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
5564 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5566 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5567 as_fn_append ac_file_inputs
" '$ac_f'"
5570 # Let's still pretend it is `configure' which instantiates (i.e., don't
5571 # use $as_me), people would be surprised to read:
5572 # /* config.h. Generated by config.status. */
5573 configure_input
='Generated from '`
5574 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5576 if test x
"$ac_file" != x-
; then
5577 configure_input
="$ac_file. $configure_input"
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5579 $as_echo "$as_me: creating $ac_file" >&6;}
5581 # Neutralize special characters interpreted by sed in replacement strings.
5582 case $configure_input in #(
5583 *\
&* |
*\|
* |
*\\* )
5584 ac_sed_conf_input
=`$as_echo "$configure_input" |
5585 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5586 *) ac_sed_conf_input
=$configure_input;;
5590 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
5591 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
5596 ac_dir
=`$as_dirname -- "$ac_file" ||
5597 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5598 X"$ac_file" : 'X\(//\)[^/]' \| \
5599 X"$ac_file" : 'X\(//\)$' \| \
5600 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5601 $as_echo X"$ac_file" |
5602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5619 as_dir
="$ac_dir"; as_fn_mkdir_p
5623 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5625 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5626 # A ".." for each directory in $ac_dir_suffix.
5627 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5628 case $ac_top_builddir_sub in
5629 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5630 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
5633 ac_abs_top_builddir
=$ac_pwd
5634 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
5635 # for backward compatibility:
5636 ac_top_builddir
=$ac_top_build_prefix
5639 .
) # We are building in place.
5641 ac_top_srcdir
=$ac_top_builddir_sub
5642 ac_abs_top_srcdir
=$ac_pwd ;;
5643 [\\/]* | ?
:[\\/]* ) # Absolute name.
5644 ac_srcdir
=$srcdir$ac_dir_suffix;
5645 ac_top_srcdir
=$srcdir
5646 ac_abs_top_srcdir
=$srcdir ;;
5648 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
5649 ac_top_srcdir
=$ac_top_build_prefix$srcdir
5650 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
5652 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
5662 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5663 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
5667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5668 # If the template does not know about datarootdir, expand it.
5669 # FIXME: This hack should be removed a few years after 2.60.
5670 ac_datarootdir_hack
=; ac_datarootdir_seen
=
5681 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5682 *datarootdir
*) ac_datarootdir_seen
=yes;;
5683 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5685 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5688 ac_datarootdir_hack='
5689 s&@datadir@&$datadir&g
5690 s&@docdir@&$docdir&g
5691 s&@infodir@&$infodir&g
5692 s&@localedir@&$localedir&g
5693 s&@mandir@&$mandir&g
5694 s&\\\${datarootdir}&$datarootdir&g' ;;
5698 # Neutralize VPATH when `$srcdir' = `.'.
5699 # Shell code in configure.ac might set extrasub.
5700 # FIXME: do we really want to maintain this feature?
5701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5702 ac_sed_extra="$ac_vpsub
5705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5707 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5708 s|@configure_input@|
$ac_sed_conf_input|
;t t
5709 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
5710 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
5711 s
&@srcdir@
&$ac_srcdir&;t t
5712 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
5713 s
&@top_srcdir@
&$ac_top_srcdir&;t t
5714 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
5715 s
&@builddir@
&$ac_builddir&;t t
5716 s
&@abs_builddir@
&$ac_abs_builddir&;t t
5717 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
5718 s
&@INSTALL@
&$ac_INSTALL&;t t
5719 $ac_datarootdir_hack
5721 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
5722 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
5724 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5725 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
5726 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5727 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
5729 which seems to be undefined. Please make sure it is defined" >&5
5730 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
5731 which seems to be undefined. Please make sure it is defined" >&2;}
5733 rm -f "$ac_tmp/stdin"
5735 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5736 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5738 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5744 if test x"$ac_file" != x-; then
5746 $as_echo "/* $configure_input */" \
5747 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5748 } >"$ac_tmp/config.h" \
5749 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5750 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5752 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5755 mv "$ac_tmp/config.h" "$ac_file" \
5756 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5759 $as_echo "/* $configure_input */" \
5760 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5761 || as_fn_error $? "could not create -" "$LINENO" 5
5773 ac_clean_files=$ac_clean_files_save
5775 test $ac_write_fail = 0 ||
5776 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5779 # configure is writing to config.log, and then calls config.status.
5780 # config.status does its own redirection, appending to config.log.
5781 # Unfortunately, on DOS this fails, as config.log is still kept open
5782 # by configure, so config.status won't be able to
write to it
; its
5783 # output is simply discarded. So we exec the FD to /dev/null,
5784 # effectively closing config.log, so it can be properly (re)opened and
5785 # appended to by config.status. When coming back to configure, we
5786 # need to make the FD available again.
5787 if test "$no_create" != yes; then
5789 ac_config_status_args
=
5790 test "$silent" = yes &&
5791 ac_config_status_args
="$ac_config_status_args --quiet"
5793 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5795 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5796 # would make configure fail if this is the last instruction.
5797 $ac_cs_success || as_fn_exit
1
5799 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5801 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}