2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for RISC-V ISA Simulator ?.
5 # Report bugs to <Andrew Waterman>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print
-rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
57 as_echo_n='/usr
/ucb
/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x
; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var
in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\
${$as_var+set} = xset \
124 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
137 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x
; then
140 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required
="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev
/null
; then :
183 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
188 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir
=.
195 for as_base
in sh bash ksh sh5
; do
196 # Try only shells that exist, to save several forks.
197 as_shell
=$as_dir/$as_base
198 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
200 CONFIG_SHELL
=$as_shell as_have_required
=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
209 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
211 CONFIG_SHELL
=$SHELL as_have_required
=yes
216 if test "x$CONFIG_SHELL" != x
; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
226 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x
$as_have_required = xno
; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x
${ZSH_VERSION+set} = xset
; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and Andrew Waterman
242 $0: about your system, including any error possibly output
243 $0: before this message. Then install a modern shell, or
244 $0: manually run the script under such a shell if you do
251 SHELL
=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE
= GREP_OPTIONS
=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir
=.
/$as_dir;;
296 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
300 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs
="'$as_qdir' $as_dirs"
304 as_dir
=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
330 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
365 as_val
=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status
=$1; test $as_status -eq 0 && as_status
=1
379 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit
$as_status
386 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
393 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
405 as_me
=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits
='0123456789'
429 as_cr_alnum
=$as_cr_Letters$as_cr_digits
432 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
433 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x
"$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C
= ECHO_N
= ECHO_T
=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
476 rm -f conf$$ conf$$.exe conf$$.
file
477 if test -d conf$$.dir
; then
478 rm -f conf$$.dir
/conf$$.
file
481 mkdir conf$$.dir
2>/dev
/null
483 if (echo >conf$$.
file) 2>/dev
/null
; then
484 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
492 elif ln conf$$.
file conf$$
2>/dev
/null
; then
500 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
501 rmdir conf$$.dir
2>/dev
/null
503 if mkdir
-p .
2>/dev
/null
; then
504 as_mkdir_p
='mkdir -p "$as_dir"'
506 test -d .
/-p && rmdir .
/-p
510 if test -x / >/dev
/null
2>&1; then
513 if ls -dL / >/dev
/null
2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p
=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix
=/usr
/local
553 ac_config_libobj_dir
=.
560 # Identity of this package.
561 PACKAGE_NAME
='RISC-V ISA Simulator'
562 PACKAGE_TARNAME
='spike'
564 PACKAGE_STRING
='RISC-V ISA Simulator ?'
565 PACKAGE_BUGREPORT
='Andrew Waterman'
568 ac_unique_file
="riscv/common.h"
569 ac_subst_vars
='LTLIBOBJS
633 program_transform_name
646 enable_option_checking
648 enable_optional_subprojects
654 ac_precious_vars
='build_alias
670 # Initialize some variables set by options.
672 ac_init_version
=false
673 ac_unrecognized_opts
=
675 # The variables have the same names as the options, with
676 # dashes changed to underlines.
684 program_transform_name
=s
,x
,x
,
692 # Installation directory options.
693 # These are left unexpanded so users can "make install exec_prefix=/foo"
694 # and all the variables that are supposed to be based on exec_prefix
695 # by default will actually change.
696 # Use braces instead of parens because sh, perl, etc. also accept them.
697 # (The list follows the same order as the GNU Coding Standards.)
698 bindir
='${exec_prefix}/bin'
699 sbindir
='${exec_prefix}/sbin'
700 libexecdir
='${exec_prefix}/libexec'
701 datarootdir
='${prefix}/share'
702 datadir
='${datarootdir}'
703 sysconfdir
='${prefix}/etc'
704 sharedstatedir
='${prefix}/com'
705 localstatedir
='${prefix}/var'
706 includedir
='${prefix}/include'
707 oldincludedir
='/usr/include'
708 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
709 infodir
='${datarootdir}/info'
714 libdir
='${exec_prefix}/lib'
715 localedir
='${datarootdir}/locale'
716 mandir
='${datarootdir}/man'
722 # If the previous option needs an argument, assign it.
723 if test -n "$ac_prev"; then
724 eval $ac_prev=\
$ac_option
730 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
735 # Accept the important Cygnus configure options, so we can diagnose typos.
737 case $ac_dashdash$ac_option in
741 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
743 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
746 -build |
--build |
--buil |
--bui |
--bu)
747 ac_prev
=build_alias
;;
748 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
749 build_alias
=$ac_optarg ;;
751 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
752 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
753 ac_prev
=cache_file
;;
754 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
755 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
756 cache_file
=$ac_optarg ;;
759 cache_file
=config.cache
;;
761 -datadir |
--datadir |
--datadi |
--datad)
763 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
764 datadir
=$ac_optarg ;;
766 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
767 |
--dataroo |
--dataro |
--datar)
768 ac_prev
=datarootdir
;;
769 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
770 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
771 datarootdir
=$ac_optarg ;;
773 -disable-* |
--disable-*)
774 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
775 # Reject names that are not valid shell variable names.
776 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
777 as_fn_error $?
"invalid feature name: $ac_useropt"
778 ac_useropt_orig
=$ac_useropt
779 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
780 case $ac_user_opts in
784 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
785 ac_unrecognized_sep
=', ';;
787 eval enable_
$ac_useropt=no
;;
789 -docdir |
--docdir |
--docdi |
--doc |
--do)
791 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
794 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
796 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
799 -enable-* |
--enable-*)
800 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
801 # Reject names that are not valid shell variable names.
802 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
803 as_fn_error $?
"invalid feature name: $ac_useropt"
804 ac_useropt_orig
=$ac_useropt
805 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
806 case $ac_user_opts in
810 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
811 ac_unrecognized_sep
=', ';;
813 eval enable_
$ac_useropt=\
$ac_optarg ;;
815 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
816 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
817 |
--exec |
--exe |
--ex)
818 ac_prev
=exec_prefix
;;
819 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
820 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
821 |
--exec=* |
--exe=* |
--ex=*)
822 exec_prefix
=$ac_optarg ;;
824 -gas |
--gas |
--ga |
--g)
825 # Obsolete; use --with-gas.
828 -help |
--help |
--hel |
--he |
-h)
830 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
831 ac_init_help
=recursive
;;
832 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
833 ac_init_help
=short
;;
835 -host |
--host |
--hos |
--ho)
836 ac_prev
=host_alias
;;
837 -host=* |
--host=* |
--hos=* |
--ho=*)
838 host_alias
=$ac_optarg ;;
840 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
842 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
844 htmldir
=$ac_optarg ;;
846 -includedir |
--includedir |
--includedi |
--included |
--include \
847 |
--includ |
--inclu |
--incl |
--inc)
848 ac_prev
=includedir
;;
849 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
850 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
851 includedir
=$ac_optarg ;;
853 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
855 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
856 infodir
=$ac_optarg ;;
858 -libdir |
--libdir |
--libdi |
--libd)
860 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
863 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
864 |
--libexe |
--libex |
--libe)
865 ac_prev
=libexecdir
;;
866 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
867 |
--libexe=* |
--libex=* |
--libe=*)
868 libexecdir
=$ac_optarg ;;
870 -localedir |
--localedir |
--localedi |
--localed |
--locale)
872 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
873 localedir
=$ac_optarg ;;
875 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
876 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
877 ac_prev
=localstatedir
;;
878 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
879 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
880 localstatedir
=$ac_optarg ;;
882 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
884 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
888 # Obsolete; use --without-fp.
891 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
892 |
--no-cr |
--no-c |
-n)
895 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
896 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
899 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
900 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
901 |
--oldin |
--oldi |
--old |
--ol |
--o)
902 ac_prev
=oldincludedir
;;
903 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
904 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
905 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
906 oldincludedir
=$ac_optarg ;;
908 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
910 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
913 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
914 |
--program-pre |
--program-pr |
--program-p)
915 ac_prev
=program_prefix
;;
916 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
917 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
918 program_prefix
=$ac_optarg ;;
920 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
921 |
--program-suf |
--program-su |
--program-s)
922 ac_prev
=program_suffix
;;
923 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
924 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
925 program_suffix
=$ac_optarg ;;
927 -program-transform-name |
--program-transform-name \
928 |
--program-transform-nam |
--program-transform-na \
929 |
--program-transform-n |
--program-transform- \
930 |
--program-transform |
--program-transfor \
931 |
--program-transfo |
--program-transf \
932 |
--program-trans |
--program-tran \
933 |
--progr-tra |
--program-tr |
--program-t)
934 ac_prev
=program_transform_name
;;
935 -program-transform-name=* |
--program-transform-name=* \
936 |
--program-transform-nam=* |
--program-transform-na=* \
937 |
--program-transform-n=* |
--program-transform-=* \
938 |
--program-transform=* |
--program-transfor=* \
939 |
--program-transfo=* |
--program-transf=* \
940 |
--program-trans=* |
--program-tran=* \
941 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
942 program_transform_name
=$ac_optarg ;;
944 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
946 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
949 -psdir |
--psdir |
--psdi |
--psd |
--ps)
951 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
954 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
955 |
-silent |
--silent |
--silen |
--sile |
--sil)
958 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
960 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
962 sbindir
=$ac_optarg ;;
964 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
965 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
966 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
968 ac_prev
=sharedstatedir
;;
969 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
970 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
971 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
973 sharedstatedir
=$ac_optarg ;;
975 -site |
--site |
--sit)
977 -site=* |
--site=* |
--sit=*)
980 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
982 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
985 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
986 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
987 ac_prev
=sysconfdir
;;
988 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
989 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
990 sysconfdir
=$ac_optarg ;;
992 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
993 ac_prev
=target_alias
;;
994 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
995 target_alias
=$ac_optarg ;;
997 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1000 -version |
--version |
--versio |
--versi |
--vers |
-V)
1001 ac_init_version
=: ;;
1004 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1007 as_fn_error $?
"invalid package name: $ac_useropt"
1008 ac_useropt_orig
=$ac_useropt
1009 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1014 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1015 ac_unrecognized_sep
=', ';;
1017 eval with_
$ac_useropt=\
$ac_optarg ;;
1019 -without-* |
--without-*)
1020 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1023 as_fn_error $?
"invalid package name: $ac_useropt"
1024 ac_useropt_orig
=$ac_useropt
1025 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1030 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1031 ac_unrecognized_sep
=', ';;
1033 eval with_
$ac_useropt=no
;;
1036 # Obsolete; use --with-x.
1039 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1040 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1041 ac_prev
=x_includes
;;
1042 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1043 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1044 x_includes
=$ac_optarg ;;
1046 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1047 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1048 ac_prev
=x_libraries
;;
1049 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1050 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1051 x_libraries
=$ac_optarg ;;
1053 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1054 Try \`$0 --help' for more information"
1058 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1059 # Reject names that are not valid shell variable names.
1060 case $ac_envvar in #(
1061 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1062 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1064 eval $ac_envvar=\
$ac_optarg
1065 export $ac_envvar ;;
1068 # FIXME: should be removed in autoconf 3.0.
1069 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1070 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1071 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1072 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1078 if test -n "$ac_prev"; then
1079 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1080 as_fn_error $?
"missing argument to $ac_option"
1083 if test -n "$ac_unrecognized_opts"; then
1084 case $enable_option_checking in
1086 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1087 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1091 # Check all directory arguments for consistency.
1092 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1093 datadir sysconfdir sharedstatedir localstatedir includedir \
1094 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1095 libdir localedir mandir
1097 eval ac_val
=\$
$ac_var
1098 # Remove trailing slashes.
1101 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1102 eval $ac_var=\
$ac_val;;
1104 # Be sure to have absolute directory names.
1106 [\\/$
]* | ?
:[\\/]* ) continue;;
1107 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1109 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1112 # There might be people who depend on the old broken behavior: `$host'
1113 # used to hold the argument of --host etc.
1114 # FIXME: To remove some day.
1117 target
=$target_alias
1119 # FIXME: To remove some day.
1120 if test "x$host_alias" != x
; then
1121 if test "x$build_alias" = x
; then
1122 cross_compiling
=maybe
1123 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1124 If a cross compiler is detected then cross compile mode will be used" >&2
1125 elif test "x$build_alias" != "x$host_alias"; then
1131 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1133 test "$silent" = yes && exec 6>/dev
/null
1136 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1137 ac_ls_di
=`ls -di .` &&
1138 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1139 as_fn_error $?
"working directory cannot be determined"
1140 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1141 as_fn_error $?
"pwd does not report name of working directory"
1144 # Find the source files, if location was not specified.
1145 if test -z "$srcdir"; then
1146 ac_srcdir_defaulted
=yes
1147 # Try the directory containing this script, then the parent directory.
1148 ac_confdir
=`$as_dirname -- "$as_myself" ||
1149 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1150 X"$as_myself" : 'X\(//\)[^/]' \| \
1151 X"$as_myself" : 'X\(//\)$' \| \
1152 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1153 $as_echo X"$as_myself" |
1154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1172 if test ! -r "$srcdir/$ac_unique_file"; then
1176 ac_srcdir_defaulted
=no
1178 if test ! -r "$srcdir/$ac_unique_file"; then
1179 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1180 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1182 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1184 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1186 # When building in place, set srcdir=.
1187 if test "$ac_abs_confdir" = "$ac_pwd"; then
1190 # Remove unnecessary trailing slashes from srcdir.
1191 # Double slashes in file names in object file debugging info
1192 # mess up M-x gdb in Emacs.
1194 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1196 for ac_var
in $ac_precious_vars; do
1197 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1198 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1199 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1200 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1204 # Report the --help message.
1206 if test "$ac_init_help" = "long"; then
1207 # Omit some internal or obsolete options to make the list less imposing.
1208 # This message is too long to be a string in the A/UX 3.1 sh.
1210 \`configure' configures RISC-V ISA Simulator ? to adapt to many kinds of systems.
1212 Usage: $0 [OPTION]... [VAR=VALUE]...
1214 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1215 VAR=VALUE. See below for descriptions of some of the useful variables.
1217 Defaults for the options are specified in brackets.
1220 -h, --help display this help and exit
1221 --help=short display options specific to this package
1222 --help=recursive display the short help of all the included packages
1223 -V, --version display version information and exit
1224 -q, --quiet, --silent do not print \`checking ...' messages
1225 --cache-file=FILE cache test results in FILE [disabled]
1226 -C, --config-cache alias for \`--cache-file=config.cache'
1227 -n, --no-create do not create output files
1228 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1230 Installation directories:
1231 --prefix=PREFIX install architecture-independent files in PREFIX
1232 [$ac_default_prefix]
1233 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1236 By default, \`make install' will install all the files in
1237 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1238 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1239 for instance \`--prefix=\$HOME'.
1241 For better control, use the options below.
1243 Fine tuning of the installation directories:
1244 --bindir=DIR user executables [EPREFIX/bin]
1245 --sbindir=DIR system admin executables [EPREFIX/sbin]
1246 --libexecdir=DIR program executables [EPREFIX/libexec]
1247 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1248 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1249 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1250 --libdir=DIR object code libraries [EPREFIX/lib]
1251 --includedir=DIR C header files [PREFIX/include]
1252 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1253 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1254 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1255 --infodir=DIR info documentation [DATAROOTDIR/info]
1256 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1257 --mandir=DIR man documentation [DATAROOTDIR/man]
1258 --docdir=DIR documentation root [DATAROOTDIR/doc/spike]
1259 --htmldir=DIR html documentation [DOCDIR]
1260 --dvidir=DIR dvi documentation [DOCDIR]
1261 --pdfdir=DIR pdf documentation [DOCDIR]
1262 --psdir=DIR ps documentation [DOCDIR]
1268 --build=BUILD configure
for building on BUILD
[guessed
]
1269 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1273 if test -n "$ac_init_help"; then
1274 case $ac_init_help in
1275 short | recursive
) echo "Configuration of RISC-V ISA Simulator ?:";;
1280 --disable-option-checking ignore unrecognized
--enable/--with options
1281 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1282 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1283 --enable-stow Enable stow-based
install
1284 --enable-optional-subprojects
1285 Enable all optional subprojects
1286 --disable-fpu Disable floating-point
1287 --disable-64bit Disable
64-bit mode
1288 --enable-commitlog Enable commit log generation
1291 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1292 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1293 --with-fesvr path to your fesvr installation
if not
in a standard
1296 Some influential environment variables
:
1297 CC C compiler
command
1298 CFLAGS C compiler flags
1299 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1300 nonstandard directory
<lib dir
>
1301 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1302 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1303 you have headers
in a nonstandard directory
<include dir
>
1304 CXX C
++ compiler
command
1305 CXXFLAGS C
++ compiler flags
1306 STOW_ROOT Root
for non-native stow-based installs
1307 STOW_PREFIX Prefix
for stow-based installs
1310 Use these variables to override the choices made by
`configure' or to help
1311 it to find libraries and programs with nonstandard names/locations.
1313 Report bugs to <Andrew Waterman>.
1318 if test "$ac_init_help" = "recursive"; then
1319 # If there are subdirs, report their specific --help.
1320 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1321 test -d "$ac_dir" ||
1322 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1327 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1329 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1330 # A ".." for each directory in $ac_dir_suffix.
1331 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1332 case $ac_top_builddir_sub in
1333 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1334 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1337 ac_abs_top_builddir=$ac_pwd
1338 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1339 # for backward compatibility:
1340 ac_top_builddir=$ac_top_build_prefix
1343 .) # We are building in place.
1345 ac_top_srcdir=$ac_top_builddir_sub
1346 ac_abs_top_srcdir=$ac_pwd ;;
1347 [\\/]* | ?:[\\/]* ) # Absolute name.
1348 ac_srcdir=$srcdir$ac_dir_suffix;
1349 ac_top_srcdir=$srcdir
1350 ac_abs_top_srcdir=$srcdir ;;
1352 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1353 ac_top_srcdir=$ac_top_build_prefix$srcdir
1354 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1356 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1358 cd "$ac_dir" || { ac_status=$?; continue; }
1359 # Check for guested configure.
1360 if test -f "$ac_srcdir/configure.gnu"; then
1362 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1363 elif test -f "$ac_srcdir/configure"; then
1365 $SHELL "$ac_srcdir/configure" --help=recursive
1367 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1369 cd "$ac_pwd" || { ac_status=$?; break; }
1373 test -n "$ac_init_help" && exit $ac_status
1374 if $ac_init_version; then
1376 RISC-V ISA Simulator configure ?
1377 generated by GNU Autoconf 2.68
1379 Copyright (C) 2010 Free Software Foundation, Inc.
1380 This configure script is free software; the Free Software Foundation
1381 gives unlimited permission to copy, distribute and modify it.
1386 ## ------------------------ ##
1387 ## Autoconf initialization. ##
1388 ## ------------------------ ##
1390 # ac_fn_c_try_compile LINENO
1391 # --------------------------
1392 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1393 ac_fn_c_try_compile ()
1395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1396 rm -f conftest.$ac_objext
1397 if { { ac_try="$ac_compile"
1399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1400 *) ac_try_echo
=$ac_try;;
1402 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1403 $as_echo "$ac_try_echo"; } >&5
1404 (eval "$ac_compile") 2>conftest.err
1406 if test -s conftest.err
; then
1407 grep -v '^ *+' conftest.err
>conftest.er1
1408 cat conftest.er1
>&5
1409 mv -f conftest.er1 conftest.err
1411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1412 test $ac_status = 0; } && {
1413 test -z "$ac_c_werror_flag" ||
1414 test ! -s conftest.err
1415 } && test -s conftest.
$ac_objext; then :
1418 $as_echo "$as_me: failed program was:" >&5
1419 sed 's/^/| /' conftest.
$ac_ext >&5
1423 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1424 as_fn_set_status
$ac_retval
1426 } # ac_fn_c_try_compile
1428 # ac_fn_cxx_try_compile LINENO
1429 # ----------------------------
1430 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1431 ac_fn_cxx_try_compile
()
1433 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1434 rm -f conftest.
$ac_objext
1435 if { { ac_try
="$ac_compile"
1437 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1438 *) ac_try_echo=$ac_try;;
1440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1441 $as_echo "$ac_try_echo"; } >&5
1442 (eval "$ac_compile") 2>conftest.err
1444 if test -s conftest.err; then
1445 grep -v '^ *+' conftest.err >conftest.er1
1446 cat conftest.er1 >&5
1447 mv -f conftest.er1 conftest.err
1449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1450 test $ac_status = 0; } && {
1451 test -z "$ac_cxx_werror_flag" ||
1452 test ! -s conftest.err
1453 } && test -s conftest.$ac_objext; then :
1456 $as_echo "$as_me: failed program was:" >&5
1457 sed 's/^/| /' conftest.$ac_ext >&5
1461 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1462 as_fn_set_status $ac_retval
1464 } # ac_fn_cxx_try_compile
1466 # ac_fn_c_try_cpp LINENO
1467 # ----------------------
1468 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1471 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1472 if { { ac_try="$ac_cpp conftest.$ac_ext"
1474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1475 *) ac_try_echo
=$ac_try;;
1477 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1478 $as_echo "$ac_try_echo"; } >&5
1479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1481 if test -s conftest.err
; then
1482 grep -v '^ *+' conftest.err
>conftest.er1
1483 cat conftest.er1
>&5
1484 mv -f conftest.er1 conftest.err
1486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1487 test $ac_status = 0; } > conftest.i
&& {
1488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1489 test ! -s conftest.err
1493 $as_echo "$as_me: failed program was:" >&5
1494 sed 's/^/| /' conftest.
$ac_ext >&5
1498 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1499 as_fn_set_status
$ac_retval
1503 # ac_fn_c_try_run LINENO
1504 # ----------------------
1505 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1506 # that executables *can* be run.
1509 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1510 if { { ac_try
="$ac_link"
1512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1513 *) ac_try_echo=$ac_try;;
1515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1516 $as_echo "$ac_try_echo"; } >&5
1517 (eval "$ac_link") 2>&5
1519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1520 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1521 { { case "(($ac_try" in
1522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1523 *) ac_try_echo
=$ac_try;;
1525 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526 $as_echo "$ac_try_echo"; } >&5
1527 (eval "$ac_try") 2>&5
1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530 test $ac_status = 0; }; }; then :
1533 $as_echo "$as_me: program exited with status $ac_status" >&5
1534 $as_echo "$as_me: failed program was:" >&5
1535 sed 's/^/| /' conftest.
$ac_ext >&5
1537 ac_retval
=$ac_status
1539 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1541 as_fn_set_status
$ac_retval
1545 # ac_fn_c_try_link LINENO
1546 # -----------------------
1547 # Try to link conftest.$ac_ext, and return whether this succeeded.
1550 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1551 rm -f conftest.
$ac_objext conftest
$ac_exeext
1552 if { { ac_try
="$ac_link"
1554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 $as_echo "$ac_try_echo"; } >&5
1559 (eval "$ac_link") 2>conftest.err
1561 if test -s conftest.err; then
1562 grep -v '^ *+' conftest.err >conftest.er1
1563 cat conftest.er1 >&5
1564 mv -f conftest.er1 conftest.err
1566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567 test $ac_status = 0; } && {
1568 test -z "$ac_c_werror_flag" ||
1569 test ! -s conftest.err
1570 } && test -s conftest$ac_exeext && {
1571 test "$cross_compiling" = yes ||
1572 $as_test_x conftest$ac_exeext
1576 $as_echo "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1581 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1582 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1583 # interfere with the next link command; also delete a directory that is
1584 # left behind by Apple's compiler. We do this before executing the actions.
1585 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587 as_fn_set_status $ac_retval
1589 } # ac_fn_c_try_link
1590 cat >config.log <<_ACEOF
1591 This file contains any messages produced by compilers while
1592 running configure, to aid debugging if configure makes a mistake.
1594 It was created by RISC-V ISA Simulator $as_me ?, which was
1595 generated by GNU Autoconf 2.68. Invocation command line was
1607 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1608 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1609 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1610 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1611 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1613 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1614 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1616 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1617 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1618 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1619 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1620 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1621 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1622 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 test -z "$as_dir" && as_dir=.
1631 $as_echo "PATH: $as_dir"
1647 # Keep a trace of the command line.
1648 # Strip out --no-create and --no-recursion so they do not pile up.
1649 # Strip out --silent because we don't want to record it for future runs.
1650 # Also quote any args containing shell meta-characters.
1651 # Make two passes to allow for proper duplicate-argument suppression.
1655 ac_must_keep_next=false
1661 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1662 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1663 | -silent | --silent | --silen | --sile | --sil)
1666 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1669 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1671 as_fn_append ac_configure_args1 " '$ac_arg'"
1672 if test $ac_must_keep_next = true; then
1673 ac_must_keep_next=false # Got value, back to normal.
1676 *=* | --config-cache | -C | -disable-* | --disable-* \
1677 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1678 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1679 | -with-* | --with-* | -without-* | --without-* | --x)
1680 case "$ac_configure_args0 " in
1681 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1684 -* ) ac_must_keep_next=true ;;
1687 as_fn_append ac_configure_args " '$ac_arg'"
1692 { ac_configure_args0=; unset ac_configure_args0;}
1693 { ac_configure_args1=; unset ac_configure_args1;}
1695 # When interrupted or exit'd, cleanup temporary files, and complete
1696 # config.log. We remove comments because anyway the quotes in there
1697 # would cause problems or look ugly.
1698 # WARNING: Use '\'' to represent an apostrophe within the trap.
1699 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1700 trap 'exit_status=$?
1701 # Save into config.log some information that might help in debugging.
1705 $as_echo "## ---------------- ##
1706 ## Cache variables. ##
1707 ## ---------------- ##"
1709 # The following way of writing the cache mishandles newlines in values,
1711 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1712 eval ac_val=\$$ac_var
1716 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1717 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1720 _ | IFS | as_nl) ;; #(
1721 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1722 *) { eval $ac_var=; unset $ac_var;} ;;
1727 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1728 *${as_nl}ac_space=\ *)
1730 "s/'\''/'\''\\\\'\'''\''/g;
1731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1734 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1741 $as_echo "## ----------------- ##
1742 ## Output variables. ##
1743 ## ----------------- ##"
1745 for ac_var in $ac_subst_vars
1747 eval ac_val=\$$ac_var
1749 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751 $as_echo "$ac_var='\''$ac_val'\''"
1755 if test -n "$ac_subst_files"; then
1756 $as_echo "## ------------------- ##
1757 ## File substitutions. ##
1758 ## ------------------- ##"
1760 for ac_var in $ac_subst_files
1762 eval ac_val=\$$ac_var
1764 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766 $as_echo "$ac_var='\''$ac_val'\''"
1771 if test -s confdefs.h; then
1772 $as_echo "## ----------- ##
1779 test "$ac_signal" != 0 &&
1780 $as_echo "$as_me: caught signal $ac_signal"
1781 $as_echo "$as_me: exit $exit_status"
1783 rm -f core *.core core.conftest.* &&
1784 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1787 for ac_signal in 1 2 13 15; do
1788 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1792 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1793 rm -f -r conftest* confdefs.h
1795 $as_echo "/* confdefs.h */" > confdefs.h
1797 # Predefined preprocessor variables.
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_NAME "$PACKAGE_NAME"
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_STRING "$PACKAGE_STRING"
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_URL "$PACKAGE_URL"
1824 # Let the site file select an alternate cache file if it wants to.
1825 # Prefer an explicitly selected file to automatically selected ones.
1828 if test -n "$CONFIG_SITE"; then
1829 # We do not want a PATH search for config.site.
1830 case $CONFIG_SITE in #((
1831 -*) ac_site_file1=./$CONFIG_SITE;;
1832 */*) ac_site_file1=$CONFIG_SITE;;
1833 *) ac_site_file1=./$CONFIG_SITE;;
1835 elif test "x$prefix" != xNONE; then
1836 ac_site_file1=$prefix/share/config.site
1837 ac_site_file2=$prefix/etc/config.site
1839 ac_site_file1=$ac_default_prefix/share/config.site
1840 ac_site_file2=$ac_default_prefix/etc/config.site
1842 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1844 test "x$ac_site_file" = xNONE && continue
1845 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1847 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1848 sed 's/^/| /' "$ac_site_file" >&5
1850 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1852 as_fn_error $? "failed to load site
script $ac_site_file
1853 See \
`config.log' for more details" "$LINENO" 5; }
1857 if test -r "$cache_file"; then
1858 # Some versions of bash will fail to source /dev/null (special files
1859 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1860 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1862 $as_echo "$as_me: loading cache $cache_file" >&6;}
1864 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1865 *) . "./$cache_file";;
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1870 $as_echo "$as_me: creating cache $cache_file" >&6;}
1874 # Check that the precious variables saved in the cache have kept the same
1876 ac_cache_corrupted=false
1877 for ac_var in $ac_precious_vars; do
1878 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1879 eval ac_new_set=\$ac_env_${ac_var}_set
1880 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1881 eval ac_new_val=\$ac_env_${ac_var}_value
1882 case $ac_old_set,$ac_new_set in
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1885 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1886 ac_cache_corrupted=: ;;
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
1889 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1890 ac_cache_corrupted=: ;;
1893 if test "x$ac_old_val" != "x$ac_new_val"; then
1894 # differences in whitespace do not lead to failure.
1895 ac_old_val_w=`echo x
$ac_old_val`
1896 ac_new_val_w=`echo x
$ac_new_val`
1897 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1899 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1900 ac_cache_corrupted=:
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1903 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1904 eval $ac_var=\$ac_old_val
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1907 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1909 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1912 # Pass precious variables to config.status.
1913 if test "$ac_new_set" = set; then
1915 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1916 *) ac_arg=$ac_var=$ac_new_val ;;
1918 case " $ac_configure_args " in
1919 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1920 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1924 if $ac_cache_corrupted; then
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
1926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1928 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1929 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
1931 ## -------------------- ##
1932 ## Main body of script. ##
1933 ## -------------------- ##
1936 ac_cpp='$CPP $CPPFLAGS'
1937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1944 for ac_dir in scripts "$srcdir"/scripts; do
1945 if test -f "$ac_dir/install-sh"; then
1947 ac_install_sh="$ac_aux_dir/install-sh -c"
1949 elif test -f "$ac_dir/install.sh"; then
1951 ac_install_sh="$ac_aux_dir/install.sh -c"
1953 elif test -f "$ac_dir/shtool"; then
1955 ac_install_sh="$ac_aux_dir/shtool install -c"
1959 if test -z "$ac_aux_dir"; then
1960 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
1963 # These three variables are undocumented and unsupported,
1964 # and are intended to be withdrawn in a future Autoconf release.
1965 # They can cause serious problems if a builder's source tree is in a directory
1966 # whose full name contains unusual characters.
1967 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1968 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1969 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1972 # Make sure we can run config.sub.
1973 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1974 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1977 $as_echo_n "checking build system type... " >&6; }
1978 if ${ac_cv_build+:} false; then :
1979 $as_echo_n "(cached) " >&6
1981 ac_build_alias=$build_alias
1982 test "x$ac_build_alias" = x &&
1983 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1984 test "x$ac_build_alias" = x &&
1985 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1986 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1987 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1991 $as_echo "$ac_cv_build" >&6; }
1992 case $ac_cv_build in
1994 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1997 ac_save_IFS=$IFS; IFS='-'
2003 # Remember, the first character of IFS is used to create $*,
2004 # except with old shells:
2007 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2011 $as_echo_n "checking host system type... " >&6; }
2012 if ${ac_cv_host+:} false; then :
2013 $as_echo_n "(cached) " >&6
2015 if test "x$host_alias" = x; then
2016 ac_cv_host=$ac_cv_build
2018 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2019 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2024 $as_echo "$ac_cv_host" >&6; }
2027 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2030 ac_save_IFS=$IFS; IFS='-'
2036 # Remember, the first character of IFS is used to create $*,
2037 # except with old shells:
2040 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2044 #-------------------------------------------------------------------------
2045 # Checks for programs
2046 #-------------------------------------------------------------------------
2049 ac_cpp='$CPP $CPPFLAGS'
2050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2053 if test -n "$ac_tool_prefix"; then
2054 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2055 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2057 $as_echo_n "checking for $ac_word... " >&6; }
2058 if ${ac_cv_prog_CC+:} false; then :
2059 $as_echo_n "(cached) " >&6
2061 if test -n "$CC"; then
2062 ac_cv_prog_CC="$CC" # Let the user override the test.
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 test -z "$as_dir" && as_dir=.
2069 for ac_exec_ext in '' $ac_executable_extensions; do
2070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2071 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 if test -n "$CC"; then
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2084 $as_echo "$CC" >&6; }
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2087 $as_echo "no" >&6; }
2092 if test -z "$ac_cv_prog_CC"; then
2094 # Extract the first word of "gcc", so it can be a program name with args.
2095 set dummy gcc; ac_word=$2
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2097 $as_echo_n "checking for $ac_word... " >&6; }
2098 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2099 $as_echo_n "(cached) " >&6
2101 if test -n "$ac_ct_CC"; then
2102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 test -z "$as_dir" && as_dir=.
2109 for ac_exec_ext in '' $ac_executable_extensions; do
2110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2111 ac_cv_prog_ac_ct_CC="gcc"
2112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2122 if test -n "$ac_ct_CC"; then
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2124 $as_echo "$ac_ct_CC" >&6; }
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2127 $as_echo "no" >&6; }
2130 if test "x$ac_ct_CC" = x; then
2133 case $cross_compiling:$ac_tool_warned in
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2137 ac_tool_warned=yes ;;
2145 if test -z "$CC"; then
2146 if test -n "$ac_tool_prefix"; then
2147 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2148 set dummy ${ac_tool_prefix}cc; ac_word=$2
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2150 $as_echo_n "checking for $ac_word... " >&6; }
2151 if ${ac_cv_prog_CC+:} false; then :
2152 $as_echo_n "(cached) " >&6
2154 if test -n "$CC"; then
2155 ac_cv_prog_CC="$CC" # Let the user override the test.
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 test -z "$as_dir" && as_dir=.
2162 for ac_exec_ext in '' $ac_executable_extensions; do
2163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2164 ac_cv_prog_CC="${ac_tool_prefix}cc"
2165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2175 if test -n "$CC"; then
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2177 $as_echo "$CC" >&6; }
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2180 $as_echo "no" >&6; }
2186 if test -z "$CC"; then
2187 # Extract the first word of "cc", so it can be a program name with args.
2188 set dummy cc; ac_word=$2
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2190 $as_echo_n "checking for $ac_word... " >&6; }
2191 if ${ac_cv_prog_CC+:} false; then :
2192 $as_echo_n "(cached) " >&6
2194 if test -n "$CC"; then
2195 ac_cv_prog_CC="$CC" # Let the user override the test.
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202 test -z "$as_dir" && as_dir=.
2203 for ac_exec_ext in '' $ac_executable_extensions; do
2204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2205 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2206 ac_prog_rejected=yes
2210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2217 if test $ac_prog_rejected = yes; then
2218 # We found a bogon in the path, so make sure we never use it.
2219 set dummy $ac_cv_prog_CC
2221 if test $# != 0; then
2222 # We chose a different compiler from the bogus one.
2223 # However, it has the same basename, so the bogon will be chosen
2224 # first if we set CC to just the basename; use the full file name.
2226 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2232 if test -n "$CC"; then
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2234 $as_echo "$CC" >&6; }
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2237 $as_echo "no" >&6; }
2242 if test -z "$CC"; then
2243 if test -n "$ac_tool_prefix"; then
2244 for ac_prog in cl.exe
2246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2247 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2249 $as_echo_n "checking for $ac_word... " >&6; }
2250 if ${ac_cv_prog_CC+:} false; then :
2251 $as_echo_n "(cached) " >&6
2253 if test -n "$CC"; then
2254 ac_cv_prog_CC="$CC" # Let the user override the test.
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 test -z "$as_dir" && as_dir=.
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 if test -n "$CC"; then
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2276 $as_echo "$CC" >&6; }
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2279 $as_echo "no" >&6; }
2283 test -n "$CC" && break
2286 if test -z "$CC"; then
2288 for ac_prog in cl.exe
2290 # Extract the first word of "$ac_prog", so it can be a program name with args.
2291 set dummy $ac_prog; ac_word=$2
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2293 $as_echo_n "checking for $ac_word... " >&6; }
2294 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2295 $as_echo_n "(cached) " >&6
2297 if test -n "$ac_ct_CC"; then
2298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307 ac_cv_prog_ac_ct_CC="$ac_prog"
2308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2318 if test -n "$ac_ct_CC"; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2320 $as_echo "$ac_ct_CC" >&6; }
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2323 $as_echo "no" >&6; }
2327 test -n "$ac_ct_CC" && break
2330 if test "x$ac_ct_CC" = x; then
2333 case $cross_compiling:$ac_tool_warned in
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2337 ac_tool_warned=yes ;;
2346 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2348 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2349 See \
`config.log' for more details" "$LINENO" 5; }
2351 # Provide some information about the compiler.
2352 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2355 for ac_option in --version -v -V -qversion; do
2356 { { ac_try="$ac_compiler $ac_option >&5"
2358 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2359 *) ac_try_echo
=$ac_try;;
2361 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2362 $as_echo "$ac_try_echo"; } >&5
2363 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2365 if test -s conftest.err
; then
2367 ... rest of stderr output deleted ...
2368 10q' conftest.err
>conftest.er1
2369 cat conftest.er1
>&5
2371 rm -f conftest.er1 conftest.err
2372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2373 test $ac_status = 0; }
2376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2387 ac_clean_files_save
=$ac_clean_files
2388 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2389 # Try to create an executable without -o first, disregard a.out.
2390 # It will help us diagnose broken compilers, and finding out an intuition
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2393 $as_echo_n "checking whether the C compiler works... " >&6; }
2394 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2396 # The possible output files:
2397 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2400 for ac_file
in $ac_files
2403 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2404 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2409 if { { ac_try
="$ac_link_default"
2411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2412 *) ac_try_echo=$ac_try;;
2414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2415 $as_echo "$ac_try_echo"; } >&5
2416 (eval "$ac_link_default") 2>&5
2418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2419 test $ac_status = 0; }; then :
2420 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2421 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2422 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2423 # so that the user can short-circuit this test for compilers unknown to
2425 for ac_file in $ac_files ''
2427 test -f "$ac_file" || continue
2429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2432 # We found the default executable, but exeext='' is most
2436 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2438 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2440 # We set ac_cv_exeext here because the later test for it is not
2441 # safe: cross compilers may not add the suffix if given an `-o'
2442 # argument, so we may need to know it at that point already.
2443 # Even if this section looks crufty: it has the advantage of
2450 test "$ac_cv_exeext" = no && ac_cv_exeext=
2455 if test -z "$ac_file"; then :
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2457 $as_echo "no" >&6; }
2458 $as_echo "$as_me: failed program was:" >&5
2459 sed 's
/^
/|
/' conftest.$ac_ext >&5
2461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2462 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2463 as_fn_error 77 "C compiler cannot create executables
2464 See \`config.log
' for more details" "$LINENO" 5; }
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2467 $as_echo "yes" >&6; }
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2470 $as_echo_n "checking for C compiler default output file name... " >&6; }
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2472 $as_echo "$ac_file" >&6; }
2473 ac_exeext=$ac_cv_exeext
2475 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2476 ac_clean_files=$ac_clean_files_save
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2478 $as_echo_n "checking for suffix of executables... " >&6; }
2479 if { { ac_try="$ac_link"
2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482 *) ac_try_echo=$ac_try;;
2484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2485 $as_echo "$ac_try_echo"; } >&5
2486 (eval "$ac_link") 2>&5
2488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2489 test $ac_status = 0; }; then :
2490 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2491 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2492 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2494 for ac_file
in conftest.exe conftest conftest.
*; do
2495 test -f "$ac_file" ||
continue
2497 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2498 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2506 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2507 See \`config.log' for more details" "$LINENO" 5; }
2509 rm -f conftest conftest
$ac_cv_exeext
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2511 $as_echo "$ac_cv_exeext" >&6; }
2513 rm -f conftest.
$ac_ext
2514 EXEEXT
=$ac_cv_exeext
2516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2517 /* end confdefs.h. */
2522 FILE *f = fopen ("conftest.out", "w");
2523 return ferror (f) || fclose (f) != 0;
2529 ac_clean_files
="$ac_clean_files conftest.out"
2530 # Check that the compiler produces executables we can run. If not, either
2531 # the compiler is broken, or we cross compile.
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2533 $as_echo_n "checking whether we are cross compiling... " >&6; }
2534 if test "$cross_compiling" != yes; then
2535 { { ac_try
="$ac_link"
2537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2541 $as_echo "$ac_try_echo"; } >&5
2542 (eval "$ac_link") 2>&5
2544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2545 test $ac_status = 0; }
2546 if { ac_try='./conftest$ac_cv_exeext'
2547 { { case "(($ac_try" in
2548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2549 *) ac_try_echo
=$ac_try;;
2551 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2552 $as_echo "$ac_try_echo"; } >&5
2553 (eval "$ac_try") 2>&5
2555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2556 test $ac_status = 0; }; }; then
2559 if test "$cross_compiling" = maybe
; then
2562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2564 as_fn_error $?
"cannot run C compiled programs.
2565 If you meant to cross compile, use \`--host'.
2566 See \`config.log' for more details" "$LINENO" 5; }
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2571 $as_echo "$cross_compiling" >&6; }
2573 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2574 ac_clean_files
=$ac_clean_files_save
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2576 $as_echo_n "checking for suffix of object files... " >&6; }
2577 if ${ac_cv_objext+:} false
; then :
2578 $as_echo_n "(cached) " >&6
2580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2581 /* end confdefs.h. */
2591 rm -f conftest.o conftest.obj
2592 if { { ac_try
="$ac_compile"
2594 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2598 $as_echo "$ac_try_echo"; } >&5
2599 (eval "$ac_compile") 2>&5
2601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2602 test $ac_status = 0; }; then :
2603 for ac_file in conftest.o conftest.obj conftest.*; do
2604 test -f "$ac_file" || continue;
2606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2607 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2612 $as_echo "$as_me: failed program was:" >&5
2613 sed 's/^/| /' conftest.$ac_ext >&5
2615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2617 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2618 See \
`config.log' for more details" "$LINENO" 5; }
2620 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2623 $as_echo "$ac_cv_objext" >&6; }
2624 OBJEXT=$ac_cv_objext
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2627 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2628 if ${ac_cv_c_compiler_gnu+:} false; then :
2629 $as_echo_n "(cached) " >&6
2631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2632 /* end confdefs.h. */
2645 if ac_fn_c_try_compile "$LINENO"; then :
2650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2651 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2655 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2656 if test $ac_compiler_gnu = yes; then
2661 ac_test_CFLAGS=${CFLAGS+set}
2662 ac_save_CFLAGS=$CFLAGS
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2664 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2665 if ${ac_cv_prog_cc_g+:} false; then :
2666 $as_echo_n "(cached) " >&6
2668 ac_save_c_werror_flag=$ac_c_werror_flag
2669 ac_c_werror_flag=yes
2672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2673 /* end confdefs.h. */
2683 if ac_fn_c_try_compile "$LINENO"; then :
2687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2688 /* end confdefs.h. */
2698 if ac_fn_c_try_compile "$LINENO"; then :
2701 ac_c_werror_flag=$ac_save_c_werror_flag
2703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704 /* end confdefs.h. */
2714 if ac_fn_c_try_compile "$LINENO"; then :
2717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 ac_c_werror_flag=$ac_save_c_werror_flag
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2725 $as_echo "$ac_cv_prog_cc_g" >&6; }
2726 if test "$ac_test_CFLAGS" = set; then
2727 CFLAGS=$ac_save_CFLAGS
2728 elif test $ac_cv_prog_cc_g = yes; then
2729 if test "$GCC" = yes; then
2735 if test "$GCC" = yes; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2742 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2743 if ${ac_cv_prog_cc_c89+:} false; then :
2744 $as_echo_n "(cached) " >&6
2746 ac_cv_prog_cc_c89=no
2748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h. */
2752 #include <sys/types.h>
2753 #include <sys/stat.h>
2754 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2755 struct buf { int x; };
2756 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2757 static char *e (p, i)
2763 static char *f (char * (*g) (char **, int), char **p, ...)
2768 s = g (p, va_arg (v,int));
2773 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2774 function prototypes and stuff, but not '\xHH' hex character constants.
2775 These don't provoke an error unfortunately, instead are silently treated
2776 as 'x'. The following induces an error, until -std is added to get
2777 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2778 array size at least. It's necessary to write '\x00'==0 to get something
2779 that's true only with -std. */
2780 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2782 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2783 inside strings and character constants. */
2785 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2787 int test (int i, double x);
2788 struct s1 {int (*f) (int a);};
2789 struct s2 {int (*f) (double a);};
2790 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2796 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2801 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2802 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2804 CC="$ac_save_CC $ac_arg"
2805 if ac_fn_c_try_compile "$LINENO"; then :
2806 ac_cv_prog_cc_c89=$ac_arg
2808 rm -f core conftest.err conftest.$ac_objext
2809 test "x$ac_cv_prog_cc_c89" != "xno" && break
2811 rm -f conftest.$ac_ext
2816 case "x$ac_cv_prog_cc_c89" in
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2819 $as_echo "none needed" >&6; } ;;
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2822 $as_echo "unsupported" >&6; } ;;
2824 CC="$CC $ac_cv_prog_cc_c89"
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2826 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2828 if test "x$ac_cv_prog_cc_c89" != xno; then :
2833 ac_cpp='$CPP $CPPFLAGS'
2834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2839 ac_cpp='$CXXCPP $CPPFLAGS'
2840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2843 if test -z "$CXX"; then
2844 if test -n "$CCC"; then
2847 if test -n "$ac_tool_prefix"; then
2848 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2850 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2851 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853 $as_echo_n "checking for $ac_word... " >&6; }
2854 if ${ac_cv_prog_CXX+:} false; then :
2855 $as_echo_n "(cached) " >&6
2857 if test -n "$CXX"; then
2858 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 if test -n "$CXX"; then
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2880 $as_echo "$CXX" >&6; }
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2887 test -n "$CXX" && break
2890 if test -z "$CXX"; then
2892 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2894 # Extract the first word of "$ac_prog", so it can be a program name with args.
2895 set dummy $ac_prog; ac_word=$2
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897 $as_echo_n "checking for $ac_word... " >&6; }
2898 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2899 $as_echo_n "(cached) " >&6
2901 if test -n "$ac_ct_CXX"; then
2902 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 test -z "$as_dir" && as_dir=.
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2911 ac_cv_prog_ac_ct_CXX="$ac_prog"
2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2922 if test -n "$ac_ct_CXX"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2924 $as_echo "$ac_ct_CXX" >&6; }
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2931 test -n "$ac_ct_CXX" && break
2934 if test "x$ac_ct_CXX" = x; then
2937 case $cross_compiling:$ac_tool_warned in
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2941 ac_tool_warned=yes ;;
2949 # Provide some information about the compiler.
2950 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2953 for ac_option in --version -v -V -qversion; do
2954 { { ac_try="$ac_compiler $ac_option >&5"
2956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2957 *) ac_try_echo
=$ac_try;;
2959 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2960 $as_echo "$ac_try_echo"; } >&5
2961 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2963 if test -s conftest.err
; then
2965 ... rest of stderr output deleted ...
2966 10q' conftest.err
>conftest.er1
2967 cat conftest.er1
>&5
2969 rm -f conftest.er1 conftest.err
2970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2971 test $ac_status = 0; }
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2975 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2976 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
2977 $as_echo_n "(cached) " >&6
2979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2980 /* end confdefs.h. */
2993 if ac_fn_cxx_try_compile
"$LINENO"; then :
2998 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2999 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3003 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3004 if test $ac_compiler_gnu = yes; then
3009 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3010 ac_save_CXXFLAGS
=$CXXFLAGS
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3012 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3013 if ${ac_cv_prog_cxx_g+:} false
; then :
3014 $as_echo_n "(cached) " >&6
3016 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3017 ac_cxx_werror_flag
=yes
3020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3021 /* end confdefs.h. */
3031 if ac_fn_cxx_try_compile
"$LINENO"; then :
3032 ac_cv_prog_cxx_g
=yes
3035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3036 /* end confdefs.h. */
3046 if ac_fn_cxx_try_compile
"$LINENO"; then :
3049 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3052 /* end confdefs.h. */
3062 if ac_fn_cxx_try_compile
"$LINENO"; then :
3063 ac_cv_prog_cxx_g
=yes
3065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3070 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3073 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3074 if test "$ac_test_CXXFLAGS" = set; then
3075 CXXFLAGS
=$ac_save_CXXFLAGS
3076 elif test $ac_cv_prog_cxx_g = yes; then
3077 if test "$GXX" = yes; then
3083 if test "$GXX" = yes; then
3090 ac_cpp
='$CPP $CPPFLAGS'
3091 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3095 if test -n "$ac_tool_prefix"; then
3096 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3097 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if ${ac_cv_prog_AR+:} false
; then :
3101 $as_echo_n "(cached) " >&6
3103 if test -n "$AR"; then
3104 ac_cv_prog_AR
="$AR" # Let the user override the test.
3106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3110 test -z "$as_dir" && as_dir
=.
3111 for ac_exec_ext
in '' $ac_executable_extensions; do
3112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 if test -n "$AR"; then
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3126 $as_echo "$AR" >&6; }
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129 $as_echo "no" >&6; }
3134 if test -z "$ac_cv_prog_AR"; then
3136 # Extract the first word of "ar", so it can be a program name with args.
3137 set dummy
ar; ac_word
=$2
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3139 $as_echo_n "checking for $ac_word... " >&6; }
3140 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
3141 $as_echo_n "(cached) " >&6
3143 if test -n "$ac_ct_AR"; then
3144 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
3146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3150 test -z "$as_dir" && as_dir
=.
3151 for ac_exec_ext
in '' $ac_executable_extensions; do
3152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153 ac_cv_prog_ac_ct_AR
="ar"
3154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
3164 if test -n "$ac_ct_AR"; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3166 $as_echo "$ac_ct_AR" >&6; }
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169 $as_echo "no" >&6; }
3172 if test "x$ac_ct_AR" = x
; then
3175 case $cross_compiling:$ac_tool_warned in
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3179 ac_tool_warned
=yes ;;
3187 if test -n "$ac_tool_prefix"; then
3188 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3189 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if ${ac_cv_prog_RANLIB+:} false
; then :
3193 $as_echo_n "(cached) " >&6
3195 if test -n "$RANLIB"; then
3196 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3198 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3202 test -z "$as_dir" && as_dir
=.
3203 for ac_exec_ext
in '' $ac_executable_extensions; do
3204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 RANLIB
=$ac_cv_prog_RANLIB
3216 if test -n "$RANLIB"; then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3218 $as_echo "$RANLIB" >&6; }
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3226 if test -z "$ac_cv_prog_RANLIB"; then
3227 ac_ct_RANLIB
=$RANLIB
3228 # Extract the first word of "ranlib", so it can be a program name with args.
3229 set dummy ranlib
; ac_word
=$2
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231 $as_echo_n "checking for $ac_word... " >&6; }
3232 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
3233 $as_echo_n "(cached) " >&6
3235 if test -n "$ac_ct_RANLIB"; then
3236 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3242 test -z "$as_dir" && as_dir
=.
3243 for ac_exec_ext
in '' $ac_executable_extensions; do
3244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3256 if test -n "$ac_ct_RANLIB"; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3258 $as_echo "$ac_ct_RANLIB" >&6; }
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3264 if test "x$ac_ct_RANLIB" = x
; then
3267 case $cross_compiling:$ac_tool_warned in
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3271 ac_tool_warned
=yes ;;
3273 RANLIB
=$ac_ct_RANLIB
3276 RANLIB
="$ac_cv_prog_RANLIB"
3280 #-------------------------------------------------------------------------
3281 # MCPPBS specific program checks
3282 #-------------------------------------------------------------------------
3283 # These macros check to see if we can do a stow-based install and also
3284 # check for an isa simulator suitable for running the unit test programs
3287 # Find a good install program. We prefer a C program (faster),
3288 # so one script is as good as another. But avoid the broken or
3289 # incompatible versions:
3290 # SysV /etc/install, /usr/sbin/install
3291 # SunOS /usr/etc/install
3292 # IRIX /sbin/install
3294 # AmigaOS /C/install, which installs bootblocks on floppy discs
3295 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3296 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3297 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3298 # OS/2's system install, which has a completely different semantic
3299 # ./install, which can be erroneously created by make from ./install.sh.
3300 # Reject install programs that cannot install multiple files.
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3302 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3303 if test -z "$INSTALL"; then
3304 if ${ac_cv_path_install+:} false
; then :
3305 $as_echo_n "(cached) " >&6
3307 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3311 test -z "$as_dir" && as_dir
=.
3312 # Account for people who put trailing slashes in PATH elements.
3313 case $as_dir/ in #((
3314 .
/ | .
// |
/[cC
]/* | \
3315 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3316 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3319 # OSF1 and SCO ODT 3.0 have their own names for install.
3320 # Don't use installbsd from OSF since it installs stuff as root
3322 for ac_prog
in ginstall scoinst
install; do
3323 for ac_exec_ext
in '' $ac_executable_extensions; do
3324 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3325 if test $ac_prog = install &&
3326 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3327 # AIX install. It has an incompatible calling convention.
3329 elif test $ac_prog = install &&
3330 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3331 # program-specific install script used by HP pwplus--don't use.
3334 rm -rf conftest.one conftest.two conftest.dir
3335 echo one
> conftest.one
3336 echo two
> conftest.two
3338 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3339 test -s conftest.one
&& test -s conftest.two
&&
3340 test -s conftest.dir
/conftest.one
&&
3341 test -s conftest.dir
/conftest.two
3343 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3356 rm -rf conftest.one conftest.two conftest.dir
3359 if test "${ac_cv_path_install+set}" = set; then
3360 INSTALL
=$ac_cv_path_install
3362 # As a last resort, use the slow shell script. Don't cache a
3363 # value for INSTALL within a source directory, because that will
3364 # break other packages using the cache if that directory is
3365 # removed, or if the value is a relative name.
3366 INSTALL
=$ac_install_sh
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3370 $as_echo "$INSTALL" >&6; }
3372 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3373 # It thinks the first close brace ends the variable substitution.
3374 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3376 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3378 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3382 # Configure command line option
3384 # Check whether --enable-stow was given.
3385 if test "${enable_stow+set}" = set; then :
3386 enableval
=$enable_stow; enable_stow
="yes"
3394 # Environment variables
3399 # Check for install script
3403 # Deterimine if native build and set prefix appropriately
3405 if test ${enable_stow} = "yes" ; then :
3409 # Extract the first word of "$ac_prog", so it can be a program name with args.
3410 set dummy
$ac_prog; ac_word
=$2
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412 $as_echo_n "checking for $ac_word... " >&6; }
3413 if ${ac_cv_prog_stow+:} false
; then :
3414 $as_echo_n "(cached) " >&6
3416 if test -n "$stow"; then
3417 ac_cv_prog_stow
="$stow" # Let the user override the test.
3419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3423 test -z "$as_dir" && as_dir
=.
3424 for ac_exec_ext
in '' $ac_executable_extensions; do
3425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3426 ac_cv_prog_stow
="$ac_prog"
3427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 stow
=$ac_cv_prog_stow
3437 if test -n "$stow"; then
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stow" >&5
3439 $as_echo "$stow" >&6; }
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 $as_echo "no" >&6; }
3446 test -n "$stow" && break
3448 test -n "$stow" || stow
="no"
3450 if test ${stow} = "no" ; then :
3452 as_fn_error $?
"Cannot use --enable-stow since stow is not available" "$LINENO" 5
3456 # Check if native or non-native build
3458 if test "${build}" = "${host}" ; then :
3461 # build == host so this is a native build. Make sure --prefix not
3462 # set and $STOW_PREFIX is set, then set prefix=$STOW_PREFIX.
3464 if test "${prefix}" = "NONE" && test -n "${STOW_PREFIX}" ; then :
3466 prefix
="${STOW_PREFIX}"
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_PREFIX from environment" >&5
3468 $as_echo "$as_me: Using \$STOW_PREFIX from environment" >&6;}
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
3470 $as_echo "$as_me: prefix=${prefix}" >&6;}
3478 # build != host so this is a non-native build. Make sure --prefix
3479 # not set and $STOW_ROOT is set, then set
3480 # prefix=$STOW_ROOT/${host_alias}.
3482 if test "${prefix}" = "NONE" && test -n "${STOW_ROOT}" ; then :
3484 prefix
="${STOW_ROOT}/${host_alias}"
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_ROOT from environment" >&5
3486 $as_echo "$as_me: Using \$STOW_ROOT from environment" >&6;}
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
3488 $as_echo "$as_me: prefix=${prefix}" >&6;}
3500 if test "${build}" != "${host}" ; then :
3502 if test -n "$ac_tool_prefix"; then
3503 for ac_prog
in isa-run run
3505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3506 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 $as_echo_n "checking for $ac_word... " >&6; }
3509 if ${ac_cv_prog_RUN+:} false
; then :
3510 $as_echo_n "(cached) " >&6
3512 if test -n "$RUN"; then
3513 ac_cv_prog_RUN
="$RUN" # Let the user override the test.
3515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3519 test -z "$as_dir" && as_dir
=.
3520 for ac_exec_ext
in '' $ac_executable_extensions; do
3521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3522 ac_cv_prog_RUN
="$ac_tool_prefix$ac_prog"
3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3533 if test -n "$RUN"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUN" >&5
3535 $as_echo "$RUN" >&6; }
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538 $as_echo "no" >&6; }
3542 test -n "$RUN" && break
3545 if test -z "$RUN"; then
3547 for ac_prog
in isa-run run
3549 # Extract the first word of "$ac_prog", so it can be a program name with args.
3550 set dummy
$ac_prog; ac_word
=$2
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552 $as_echo_n "checking for $ac_word... " >&6; }
3553 if ${ac_cv_prog_ac_ct_RUN+:} false
; then :
3554 $as_echo_n "(cached) " >&6
3556 if test -n "$ac_ct_RUN"; then
3557 ac_cv_prog_ac_ct_RUN
="$ac_ct_RUN" # Let the user override the test.
3559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3563 test -z "$as_dir" && as_dir
=.
3564 for ac_exec_ext
in '' $ac_executable_extensions; do
3565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3566 ac_cv_prog_ac_ct_RUN
="$ac_prog"
3567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 ac_ct_RUN
=$ac_cv_prog_ac_ct_RUN
3577 if test -n "$ac_ct_RUN"; then
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RUN" >&5
3579 $as_echo "$ac_ct_RUN" >&6; }
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 $as_echo "no" >&6; }
3586 test -n "$ac_ct_RUN" && break
3589 if test "x$ac_ct_RUN" = x
; then
3592 case $cross_compiling:$ac_tool_warned in
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3596 ac_tool_warned
=yes ;;
3602 if test ${RUN} = "no" ; then :
3604 as_fn_error $?
"Cannot find simulator for target ${target_alias}" "$LINENO" 5
3617 #-------------------------------------------------------------------------
3618 # Checks for header files
3619 #-------------------------------------------------------------------------
3623 ac_cpp
='$CPP $CPPFLAGS'
3624 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3628 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3629 # On Suns, sometimes $CPP names a directory.
3630 if test -n "$CPP" && test -d "$CPP"; then
3633 if test -z "$CPP"; then
3634 if ${ac_cv_prog_CPP+:} false
; then :
3635 $as_echo_n "(cached) " >&6
3637 # Double quotes because CPP needs to be expanded
3638 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3641 for ac_c_preproc_warn_flag
in '' yes
3643 # Use a header file that comes with gcc, so configuring glibc
3644 # with a fresh cross-compiler works.
3645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3646 # <limits.h> exists even on freestanding compilers.
3647 # On the NeXT, cc -E runs the code through the compiler's parser,
3648 # not just through cpp. "Syntax error" is here to catch this case.
3649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3652 # include <limits.h>
3654 # include <assert.h>
3658 if ac_fn_c_try_cpp
"$LINENO"; then :
3661 # Broken: fails on valid input.
3664 rm -f conftest.err conftest.i conftest.
$ac_ext
3666 # OK, works on sane cases. Now check whether nonexistent headers
3667 # can be detected and how.
3668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3670 #include <ac_nonexistent.h>
3672 if ac_fn_c_try_cpp
"$LINENO"; then :
3673 # Broken: success on invalid input.
3676 # Passes both tests.
3680 rm -f conftest.err conftest.i conftest.
$ac_ext
3683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3684 rm -f conftest.i conftest.err conftest.
$ac_ext
3685 if $ac_preproc_ok; then :
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3698 $as_echo "$CPP" >&6; }
3700 for ac_c_preproc_warn_flag
in '' yes
3702 # Use a header file that comes with gcc, so configuring glibc
3703 # with a fresh cross-compiler works.
3704 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3705 # <limits.h> exists even on freestanding compilers.
3706 # On the NeXT, cc -E runs the code through the compiler's parser,
3707 # not just through cpp. "Syntax error" is here to catch this case.
3708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3711 # include <limits.h>
3713 # include <assert.h>
3717 if ac_fn_c_try_cpp
"$LINENO"; then :
3720 # Broken: fails on valid input.
3723 rm -f conftest.err conftest.i conftest.
$ac_ext
3725 # OK, works on sane cases. Now check whether nonexistent headers
3726 # can be detected and how.
3727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3729 #include <ac_nonexistent.h>
3731 if ac_fn_c_try_cpp
"$LINENO"; then :
3732 # Broken: success on invalid input.
3735 # Passes both tests.
3739 rm -f conftest.err conftest.i conftest.
$ac_ext
3742 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3743 rm -f conftest.i conftest.err conftest.
$ac_ext
3744 if $ac_preproc_ok; then :
3747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3749 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3750 See \`config.log' for more details" "$LINENO" 5; }
3754 ac_cpp
='$CPP $CPPFLAGS'
3755 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3761 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3762 if ${ac_cv_path_GREP+:} false
; then :
3763 $as_echo_n "(cached) " >&6
3765 if test -z "$GREP"; then
3766 ac_path_GREP_found
=false
3767 # Loop through the user's path and test for each of PROGNAME-LIST
3768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3769 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3772 test -z "$as_dir" && as_dir
=.
3773 for ac_prog
in grep ggrep
; do
3774 for ac_exec_ext
in '' $ac_executable_extensions; do
3775 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3776 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3777 # Check for GNU ac_path_GREP and select it if it is found.
3778 # Check for GNU $ac_path_GREP
3779 case `"$ac_path_GREP" --version 2>&1` in
3781 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3784 $as_echo_n 0123456789 >"conftest.in"
3787 cat "conftest.in" "conftest.in" >"conftest.tmp"
3788 mv "conftest.tmp" "conftest.in"
3789 cp "conftest.in" "conftest.nl"
3790 $as_echo 'GREP' >> "conftest.nl"
3791 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3792 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3793 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3794 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3795 # Best one so far, save it but keep looking for a better one
3796 ac_cv_path_GREP
="$ac_path_GREP"
3797 ac_path_GREP_max
=$ac_count
3799 # 10*(2^10) chars as input seems more than enough
3800 test $ac_count -gt 10 && break
3802 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3805 $ac_path_GREP_found && break 3
3810 if test -z "$ac_cv_path_GREP"; then
3811 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3814 ac_cv_path_GREP
=$GREP
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3819 $as_echo "$ac_cv_path_GREP" >&6; }
3820 GREP
="$ac_cv_path_GREP"
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3824 $as_echo_n "checking for egrep... " >&6; }
3825 if ${ac_cv_path_EGREP+:} false
; then :
3826 $as_echo_n "(cached) " >&6
3828 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3829 then ac_cv_path_EGREP
="$GREP -E"
3831 if test -z "$EGREP"; then
3832 ac_path_EGREP_found
=false
3833 # Loop through the user's path and test for each of PROGNAME-LIST
3834 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3835 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3838 test -z "$as_dir" && as_dir
=.
3839 for ac_prog
in egrep; do
3840 for ac_exec_ext
in '' $ac_executable_extensions; do
3841 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3842 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3843 # Check for GNU ac_path_EGREP and select it if it is found.
3844 # Check for GNU $ac_path_EGREP
3845 case `"$ac_path_EGREP" --version 2>&1` in
3847 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3850 $as_echo_n 0123456789 >"conftest.in"
3853 cat "conftest.in" "conftest.in" >"conftest.tmp"
3854 mv "conftest.tmp" "conftest.in"
3855 cp "conftest.in" "conftest.nl"
3856 $as_echo 'EGREP' >> "conftest.nl"
3857 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3858 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3859 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3860 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3861 # Best one so far, save it but keep looking for a better one
3862 ac_cv_path_EGREP
="$ac_path_EGREP"
3863 ac_path_EGREP_max
=$ac_count
3865 # 10*(2^10) chars as input seems more than enough
3866 test $ac_count -gt 10 && break
3868 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3871 $ac_path_EGREP_found && break 3
3876 if test -z "$ac_cv_path_EGREP"; then
3877 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3880 ac_cv_path_EGREP
=$EGREP
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3886 $as_echo "$ac_cv_path_EGREP" >&6; }
3887 EGREP
="$ac_cv_path_EGREP"
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3891 $as_echo_n "checking for ANSI C header files... " >&6; }
3892 if ${ac_cv_header_stdc+:} false
; then :
3893 $as_echo_n "(cached) " >&6
3895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3910 if ac_fn_c_try_compile
"$LINENO"; then :
3911 ac_cv_header_stdc
=yes
3913 ac_cv_header_stdc
=no
3915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3917 if test $ac_cv_header_stdc = yes; then
3918 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3925 $EGREP "memchr" >/dev
/null
2>&1; then :
3928 ac_cv_header_stdc
=no
3934 if test $ac_cv_header_stdc = yes; then
3935 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3942 $EGREP "free" >/dev
/null
2>&1; then :
3945 ac_cv_header_stdc
=no
3951 if test $ac_cv_header_stdc = yes; then
3952 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3953 if test "$cross_compiling" = yes; then :
3956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3960 #if ((' ' & 0x0FF) == 0x020)
3961 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3962 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3964 # define ISLOWER(c) \
3965 (('a' <= (c) && (c) <= 'i') \
3966 || ('j' <= (c) && (c) <= 'r') \
3967 || ('s' <= (c) && (c) <= 'z'))
3968 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3971 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3976 for (i = 0; i < 256; i++)
3977 if (XOR (islower (i), ISLOWER (i))
3978 || toupper (i) != TOUPPER (i))
3983 if ac_fn_c_try_run
"$LINENO"; then :
3986 ac_cv_header_stdc
=no
3988 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3989 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3995 $as_echo "$ac_cv_header_stdc" >&6; }
3996 if test $ac_cv_header_stdc = yes; then
3998 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4003 #-------------------------------------------------------------------------
4004 # Default compiler flags
4005 #-------------------------------------------------------------------------
4007 CFLAGS
="-Wall -O2 -Wno-unused"
4009 CXXFLAGS
="-Wall -O2 -std=c++11"
4012 #-------------------------------------------------------------------------
4013 # MCPPBS subproject list
4014 #-------------------------------------------------------------------------
4015 # Order list so that subprojects only depend on those listed earlier.
4016 # The '*' suffix indicates an optional subproject. The '**' suffix
4017 # indicates an optional subproject which is also the name of a group.
4021 # Add command line argument to enable all optional subprojects
4023 # Check whether --enable-optional-subprojects was given.
4024 if test "${enable_optional_subprojects+set}" = set; then :
4025 enableval
=$enable_optional_subprojects;
4029 # Loop through the subprojects given in the macro argument
4033 # Determine if this is a required or an optional subproject
4037 # Determine if there is a group with the same name
4041 # Create variations of the subproject name suitable for use as a CPP
4042 # enabled define, a shell enabled variable, and a shell function
4054 # Add subproject to our running list
4056 subprojects
="$subprojects riscv"
4058 # Process the subproject appropriately. If enabled add it to the
4059 # $enabled_subprojects running shell variable, set a
4060 # SUBPROJECT_ENABLED C define, and include the appropriate
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : riscv" >&5
4065 $as_echo "$as_me: configuring default subproject : riscv" >&6;}
4066 ac_config_files
="$ac_config_files riscv.mk:riscv/riscv.mk.in"
4068 enable_riscv_sproj
="yes"
4069 subprojects_enabled
="$subprojects_enabled riscv"
4071 $as_echo "#define RISCV_ENABLED /**/" >>confdefs.h
4074 # Check whether --with-fesvr was given.
4075 if test "${with_fesvr+set}" = set; then :
4076 withval
=$with_fesvr;
4077 LDFLAGS
="-L$withval/lib $LDFLAGS"
4078 CFLAGS
="-I$withval/include $CFLAGS"
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfesvr_is_present in -lfesvr" >&5
4085 $as_echo_n "checking for libfesvr_is_present in -lfesvr... " >&6; }
4086 if ${ac_cv_lib_fesvr_libfesvr_is_present+:} false
; then :
4087 $as_echo_n "(cached) " >&6
4089 ac_check_lib_save_LIBS
=$LIBS
4090 LIBS
="-lfesvr -pthread $LIBS"
4091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4094 /* Override any GCC internal prototype to avoid an error.
4095 Use char because int might match the return type of a GCC
4096 builtin and then its argument prototype would still apply. */
4100 char libfesvr_is_present ();
4104 return libfesvr_is_present ();
4109 if ac_fn_c_try_link
"$LINENO"; then :
4110 ac_cv_lib_fesvr_libfesvr_is_present
=yes
4112 ac_cv_lib_fesvr_libfesvr_is_present
=no
4114 rm -f core conftest.err conftest.
$ac_objext \
4115 conftest
$ac_exeext conftest.
$ac_ext
4116 LIBS
=$ac_check_lib_save_LIBS
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fesvr_libfesvr_is_present" >&5
4119 $as_echo "$ac_cv_lib_fesvr_libfesvr_is_present" >&6; }
4120 if test "x$ac_cv_lib_fesvr_libfesvr_is_present" = xyes
; then :
4121 cat >>confdefs.h
<<_ACEOF
4122 #define HAVE_LIBFESVR 1
4125 LIBS
="-lfesvr $LIBS"
4128 as_fn_error $?
"libfesvr is required" "$LINENO" 5
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
4133 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
4134 if ${ac_cv_lib_pthread_pthread_create+:} false
; then :
4135 $as_echo_n "(cached) " >&6
4137 ac_check_lib_save_LIBS
=$LIBS
4138 LIBS
="-lpthread $LIBS"
4139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4142 /* Override any GCC internal prototype to avoid an error.
4143 Use char because int might match the return type of a GCC
4144 builtin and then its argument prototype would still apply. */
4148 char pthread_create ();
4152 return pthread_create ();
4157 if ac_fn_c_try_link
"$LINENO"; then :
4158 ac_cv_lib_pthread_pthread_create
=yes
4160 ac_cv_lib_pthread_pthread_create
=no
4162 rm -f core conftest.err conftest.
$ac_objext \
4163 conftest
$ac_exeext conftest.
$ac_ext
4164 LIBS
=$ac_check_lib_save_LIBS
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
4167 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
4168 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
; then :
4169 cat >>confdefs.h
<<_ACEOF
4170 #define HAVE_LIBPTHREAD 1
4173 LIBS
="-lpthread $LIBS"
4176 as_fn_error $?
"libpthread is required" "$LINENO" 5
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4181 $as_echo_n "checking for dlopen in -ldl... " >&6; }
4182 if ${ac_cv_lib_dl_dlopen+:} false
; then :
4183 $as_echo_n "(cached) " >&6
4185 ac_check_lib_save_LIBS
=$LIBS
4187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4190 /* Override any GCC internal prototype to avoid an error.
4191 Use char because int might match the return type of a GCC
4192 builtin and then its argument prototype would still apply. */
4205 if ac_fn_c_try_link
"$LINENO"; then :
4206 ac_cv_lib_dl_dlopen
=yes
4208 ac_cv_lib_dl_dlopen
=no
4210 rm -f core conftest.err conftest.
$ac_objext \
4211 conftest
$ac_exeext conftest.
$ac_ext
4212 LIBS
=$ac_check_lib_save_LIBS
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4215 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4216 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
4217 cat >>confdefs.h
<<_ACEOF
4218 #define HAVE_LIBDL 1
4224 as_fn_error $?
"libdl is required" "$LINENO" 5
4228 # Check whether --enable-fpu was given.
4229 if test "${enable_fpu+set}" = set; then :
4230 enableval
=$enable_fpu;
4233 if test "x$enable_fpu" != "xno"; then :
4236 $as_echo "#define RISCV_ENABLE_FPU /**/" >>confdefs.h
4241 # Check whether --enable-64bit was given.
4242 if test "${enable_64bit+set}" = set; then :
4243 enableval
=$enable_64bit;
4246 if test "x$enable_64bit" != "xno"; then :
4249 $as_echo "#define RISCV_ENABLE_64BIT /**/" >>confdefs.h
4254 # Check whether --enable-commitlog was given.
4255 if test "${enable_commitlog+set}" = set; then :
4256 enableval
=$enable_commitlog;
4259 if test "x$enable_commitlog" = "xyes"; then :
4262 $as_echo "#define RISCV_ENABLE_COMMITLOG /**/" >>confdefs.h
4271 # Determine if this is a required or an optional subproject
4275 # Determine if there is a group with the same name
4279 # Create variations of the subproject name suitable for use as a CPP
4280 # enabled define, a shell enabled variable, and a shell function
4292 # Add subproject to our running list
4294 subprojects
="$subprojects hwacha"
4296 # Process the subproject appropriately. If enabled add it to the
4297 # $enabled_subprojects running shell variable, set a
4298 # SUBPROJECT_ENABLED C define, and include the appropriate
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : hwacha" >&5
4303 $as_echo "$as_me: configuring default subproject : hwacha" >&6;}
4304 ac_config_files
="$ac_config_files hwacha.mk:hwacha/hwacha.mk.in"
4306 enable_hwacha_sproj
="yes"
4307 subprojects_enabled
="$subprojects_enabled hwacha"
4309 $as_echo "#define HWACHA_ENABLED /**/" >>confdefs.h
4316 # Determine if this is a required or an optional subproject
4320 # Determine if there is a group with the same name
4324 # Create variations of the subproject name suitable for use as a CPP
4325 # enabled define, a shell enabled variable, and a shell function
4337 # Add subproject to our running list
4339 subprojects
="$subprojects softfloat"
4341 # Process the subproject appropriately. If enabled add it to the
4342 # $enabled_subprojects running shell variable, set a
4343 # SUBPROJECT_ENABLED C define, and include the appropriate
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : softfloat" >&5
4348 $as_echo "$as_me: configuring default subproject : softfloat" >&6;}
4349 ac_config_files
="$ac_config_files softfloat.mk:softfloat/softfloat.mk.in"
4351 enable_softfloat_sproj
="yes"
4352 subprojects_enabled
="$subprojects_enabled softfloat"
4354 $as_echo "#define SOFTFLOAT_ENABLED /**/" >>confdefs.h
4361 # Output make variables
4368 #-------------------------------------------------------------------------
4369 # MCPPBS subproject groups
4370 #-------------------------------------------------------------------------
4371 # If a group has the same name as a subproject then you must add the
4372 # '**' suffix in the subproject list above. The list of subprojects in a
4373 # group should be ordered so that subprojets only depend on those listed
4374 # earlier. Here is an example:
4376 # MCPPBS_GROUP( [group-name], [sproja,sprojb,...] )
4379 #-------------------------------------------------------------------------
4381 #-------------------------------------------------------------------------
4383 ac_config_headers
="$ac_config_headers config.h"
4385 ac_config_files
="$ac_config_files Makefile"
4387 cat >confcache
<<\_ACEOF
4388 # This file is a shell script that caches the results of configure
4389 # tests run on this system so they can be shared between configure
4390 # scripts and configure runs, see configure's option --config-cache.
4391 # It is not useful on other systems. If it contains results you don't
4392 # want to keep, you may remove or edit it.
4394 # config.status only pays attention to the cache file if you give it
4395 # the --recheck option to rerun configure.
4397 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4398 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4403 # The following way of writing the cache mishandles newlines in values,
4404 # but we know of no workaround that is simple, portable, and efficient.
4405 # So, we kill variables containing newlines.
4406 # Ultrix sh set writes to stderr and can't be redirected directly,
4407 # and sets the high bit in the cache file unless we assign to the vars.
4409 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4410 eval ac_val
=\$
$ac_var
4414 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4415 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4418 _ | IFS | as_nl
) ;; #(
4419 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
4420 *) { eval $ac_var=; unset $ac_var;} ;;
4426 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4427 *${as_nl}ac_space
=\
*)
4428 # `set' does not quote correctly, so add quotes: double-quote
4429 # substitution turns \\\\ into \\, and sed turns \\ into \.
4432 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4435 # `set' quotes correctly as required by POSIX, so do not add quotes.
4436 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4445 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4447 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4449 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
4450 if test -w "$cache_file"; then
4451 if test "x$cache_file" != "x/dev/null"; then
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4453 $as_echo "$as_me: updating cache $cache_file" >&6;}
4454 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
4455 cat confcache
>"$cache_file"
4457 case $cache_file in #(
4459 mv -f confcache
"$cache_file"$$
&&
4460 mv -f "$cache_file"$$
"$cache_file" ;; #(
4462 mv -f confcache
"$cache_file" ;;
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4468 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4473 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4474 # Let make expand exec_prefix.
4475 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4477 DEFS
=-DHAVE_CONFIG_H
4482 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4483 # 1. Remove the extension, and $U if already installed.
4484 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
4485 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
4486 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4487 # will be set to the directory where LIBOBJS objects are built.
4488 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4489 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
4493 LTLIBOBJS
=$ac_ltlibobjs
4497 : "${CONFIG_STATUS=./config.status}"
4499 ac_clean_files_save
=$ac_clean_files
4500 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4502 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4504 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4506 # Generated by $as_me.
4507 # Run this file to recreate the current configuration.
4508 # Compiler output produced by configure, useful for debugging
4509 # configure, is in config.log if it exists.
4515 SHELL=\${CONFIG_SHELL-$SHELL}
4518 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
4519 ## -------------------- ##
4520 ## M4sh Initialization. ##
4521 ## -------------------- ##
4523 # Be more Bourne compatible
4524 DUALCASE
=1; export DUALCASE
# for MKS sh
4525 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
4528 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4529 # is contrary to our usage. Disable this feature.
4530 alias -g '${1+"$@"}'='"$@"'
4531 setopt NO_GLOB_SUBST
4533 case `(set -o) 2>/dev/null` in #(
4545 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4546 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4547 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4548 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4549 # Prefer a ksh shell builtin over an external printf program on Solaris,
4550 # but without wasting forks for bash or zsh.
4551 if test -z "$BASH_VERSION$ZSH_VERSION" \
4552 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4553 as_echo='print
-r --'
4554 as_echo_n='print
-rn --'
4555 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4556 as_echo='printf %s
\n'
4557 as_echo_n='printf %s
'
4559 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4560 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
4561 as_echo_n='/usr
/ucb
/echo -n'
4563 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4564 as_echo_n_body='eval
4568 expr "X$arg" : "X\\(.*\\)$as_nl";
4569 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4571 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
4573 export as_echo_n_body
4574 as_echo_n='sh
-c $as_echo_n_body as_echo
'
4577 as_echo='sh
-c $as_echo_body as_echo
'
4580 # The user is always right.
4581 if test "${PATH_SEPARATOR+set}" != set; then
4583 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4584 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4591 # We need space, tab and new line, in precisely that order. Quoting is
4592 # there to prevent editors from complaining about space-tab.
4593 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4594 # splitting by setting IFS to empty value.)
4597 # Find who we are. Look in the path if we contain no directory separator.
4600 *[\\/]* ) as_myself=$0 ;;
4601 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 test -z "$as_dir" && as_dir=.
4606 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4612 # We did not find ourselves, most probably we were run as `sh COMMAND'
4613 # in which case we are not to be found in the path.
4614 if test "x$as_myself" = x
; then
4617 if test ! -f "$as_myself"; then
4618 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4622 # Unset variables that we do not need and which cause bugs (e.g. in
4623 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4624 # suppresses any "Segmentation fault" message there. '((' could
4625 # trigger a bug in pdksh 5.2.14.
4626 for as_var
in BASH_ENV ENV MAIL MAILPATH
4627 do eval test x\
${$as_var+set} = xset \
4628 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
4641 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
4644 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4645 # ----------------------------------------
4646 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4647 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4648 # script with STATUS, using 1 if that was 0.
4651 as_status
=$1; test $as_status -eq 0 && as_status
=1
4653 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
4654 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4656 $as_echo "$as_me: error: $2" >&2
4657 as_fn_exit
$as_status
4661 # as_fn_set_status STATUS
4662 # -----------------------
4663 # Set $? to STATUS, without forking.
4667 } # as_fn_set_status
4671 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4681 # Portably unset VAR.
4684 { eval $1=; unset $1;}
4686 as_unset
=as_fn_unset
4687 # as_fn_append VAR VALUE
4688 # ----------------------
4689 # Append the text in VALUE to the end of the definition contained in VAR. Take
4690 # advantage of any shell optimizations that allow amortized linear growth over
4691 # repeated appends, instead of the typical quadratic growth present in naive
4693 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
4694 eval 'as_fn_append ()
4705 # as_fn_arith ARG...
4706 # ------------------
4707 # Perform arithmetic evaluation on the ARGs, and store the result in the
4708 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4709 # must be portable across $(()) and expr.
4710 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
4711 eval 'as_fn_arith ()
4718 as_val
=`expr "$@" || test $? -eq 1`
4723 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
4724 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
4730 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4731 as_basename
=basename
4736 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
4742 as_me
=`$as_basename -- "$0" ||
4743 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4744 X"$0" : 'X\(//\)$' \| \
4745 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4747 sed '/^.*\/\([^/][^/]*\)\/*$/{
4761 # Avoid depending upon Character Ranges.
4762 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4763 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4764 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4765 as_cr_digits
='0123456789'
4766 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4768 ECHO_C
= ECHO_N
= ECHO_T
=
4769 case `echo -n x` in #(((((
4771 case `echo 'xy\c'` in
4772 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
4774 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
4781 rm -f conf$$ conf$$.exe conf$$.
file
4782 if test -d conf$$.dir
; then
4783 rm -f conf$$.dir
/conf$$.
file
4786 mkdir conf$$.dir
2>/dev
/null
4788 if (echo >conf$$.
file) 2>/dev
/null
; then
4789 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4791 # ... but there are two gotchas:
4792 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4793 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4794 # In both cases, we have to default to `cp -p'.
4795 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
4797 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4805 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
4806 rmdir conf$$.dir
2>/dev
/null
4811 # Create "$as_dir" as a directory, including parents if necessary.
4816 -*) as_dir
=.
/$as_dir;;
4818 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
4822 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4823 *) as_qdir
=$as_dir;;
4825 as_dirs
="'$as_qdir' $as_dirs"
4826 as_dir
=`$as_dirname -- "$as_dir" ||
4827 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4828 X"$as_dir" : 'X\(//\)[^/]' \| \
4829 X"$as_dir" : 'X\(//\)$' \| \
4830 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4831 $as_echo X"$as_dir" |
4832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4849 test -d "$as_dir" && break
4851 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
4852 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
4856 if mkdir
-p .
2>/dev
/null
; then
4857 as_mkdir_p
='mkdir -p "$as_dir"'
4859 test -d .
/-p && rmdir .
/-p
4863 if test -x / >/dev
/null
2>&1; then
4866 if ls -dL / >/dev
/null
2>&1; then
4873 if test -d "$1"; then
4879 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4880 ???[sx]*):;;*)false;;esac;fi
4884 as_executable_p
=$as_test_x
4886 # Sed expression to map a string onto a valid CPP name.
4887 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4889 # Sed expression to map a string onto a valid variable name.
4890 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4894 ## ----------------------------------- ##
4895 ## Main body of $CONFIG_STATUS script. ##
4896 ## ----------------------------------- ##
4898 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
4900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4901 # Save the log message, to keep $0 and so on meaningful, and to
4902 # report actual input values of CONFIG_FILES etc. instead of their
4903 # values after options handling.
4905 This file was extended by RISC-V ISA Simulator $as_me ?, which was
4906 generated by GNU Autoconf 2.68. Invocation command line was
4908 CONFIG_FILES = $CONFIG_FILES
4909 CONFIG_HEADERS = $CONFIG_HEADERS
4910 CONFIG_LINKS = $CONFIG_LINKS
4911 CONFIG_COMMANDS = $CONFIG_COMMANDS
4914 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4919 case $ac_config_files in *"
4920 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
4923 case $ac_config_headers in *"
4924 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
4928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4929 # Files that config.status was made for.
4930 config_files="$ac_config_files"
4931 config_headers="$ac_config_headers"
4935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4937 \`$as_me' instantiates files and other configuration actions
4938 from templates according to the current configuration. Unless the files
4939 and actions are specified as TAGs, all are instantiated by default.
4941 Usage: $0 [OPTION]... [TAG]...
4943 -h, --help print this help, then exit
4944 -V, --version print version number and configuration settings, then exit
4945 --config print configuration, then exit
4946 -q, --quiet, --silent
4947 do not print progress messages
4948 -d, --debug don't remove temporary files
4949 --recheck update $as_me by reconfiguring in the same conditions
4950 --file=FILE[:TEMPLATE]
4951 instantiate the configuration file FILE
4952 --header=FILE[:TEMPLATE]
4953 instantiate the configuration header FILE
4955 Configuration files:
4958 Configuration headers:
4961 Report bugs to <Andrew Waterman>."
4964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4965 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4967 RISC-V ISA Simulator config.status ?
4968 configured by $0, generated by GNU Autoconf 2.68,
4969 with options \\"\$ac_cs_config\\"
4971 Copyright (C) 2010 Free Software Foundation, Inc.
4972 This config.status script is free software; the Free Software Foundation
4973 gives unlimited permission to copy, distribute and modify it."
4978 test -n "\$AWK" || AWK=awk
4981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4982 # The default lists apply if the user does not specify any file.
4988 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
4989 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
4993 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5005 # Handling of the options.
5006 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
5008 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
5009 $as_echo "$ac_cs_version"; exit ;;
5010 --config |
--confi |
--conf |
--con |
--co |
--c )
5011 $as_echo "$ac_cs_config"; exit ;;
5012 --debug |
--debu |
--deb |
--de |
--d |
-d )
5014 --file |
--fil |
--fi |
--f )
5017 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5018 '') as_fn_error $?
"missing file argument" ;;
5020 as_fn_append CONFIG_FILES
" '$ac_optarg'"
5021 ac_need_defaults
=false
;;
5022 --header |
--heade |
--head |
--hea )
5025 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5027 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
5028 ac_need_defaults
=false
;;
5030 # Conflict between --help and --header
5031 as_fn_error $?
"ambiguous option: \`$1'
5032 Try \`$0 --help' for more information.";;
5033 --help |
--hel |
-h )
5034 $as_echo "$ac_cs_usage"; exit ;;
5035 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
5036 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
5040 -*) as_fn_error $?
"unrecognized option: \`$1'
5041 Try \`$0 --help' for more information." ;;
5043 *) as_fn_append ac_config_targets
" $1"
5044 ac_need_defaults
=false
;;
5050 ac_configure_extra_args
=
5052 if $ac_cs_silent; then
5054 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5059 if \$ac_cs_recheck; then
5060 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5062 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5063 CONFIG_SHELL='$SHELL'
5069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5073 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5074 ## Running $as_me. ##
5080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5085 # Handling of arguments.
5086 for ac_config_target
in $ac_config_targets
5088 case $ac_config_target in
5089 "riscv.mk") CONFIG_FILES
="$CONFIG_FILES riscv.mk:riscv/riscv.mk.in" ;;
5090 "hwacha.mk") CONFIG_FILES
="$CONFIG_FILES hwacha.mk:hwacha/hwacha.mk.in" ;;
5091 "softfloat.mk") CONFIG_FILES
="$CONFIG_FILES softfloat.mk:softfloat/softfloat.mk.in" ;;
5092 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
5093 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5095 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5100 # If the user did not use the arguments to specify the items to instantiate,
5101 # then the envvar interface is used. Set only those that are not.
5102 # We use the long form for the default assignment because of an extremely
5103 # bizarre bug on SunOS 4.1.3.
5104 if $ac_need_defaults; then
5105 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5106 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5109 # Have a temporary directory for convenience. Make it in the build tree
5110 # simply because there is no reason against having it here, and in addition,
5111 # creating and moving files from /tmp can sometimes cause problems.
5112 # Hook for its removal unless debugging.
5113 # Note that there is a small window in which the directory will not be cleaned:
5114 # after its creation but before its name has been assigned to `$tmp'.
5118 trap 'exit_status=$?
5120 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5122 trap 'as_fn_exit 1' 1 2 13 15
5124 # Create a (secure) tmp directory for tmp files.
5127 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5131 tmp
=.
/conf$$
-$RANDOM
5132 (umask 077 && mkdir
"$tmp")
5133 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
5136 # Set up the scripts for CONFIG_FILES section.
5137 # No need to generate them if there are no CONFIG_FILES.
5138 # This happens for instance with `./config.status config.h'.
5139 if test -n "$CONFIG_FILES"; then
5142 ac_cr
=`echo X | tr X '\015'`
5143 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5144 # But we know of no other shell where ac_cr would be empty at this
5145 # point, so we can use a bashism as a fallback.
5146 if test "x$ac_cr" = x
; then
5147 eval ac_cr
=\$
\'\\r
\'
5149 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5150 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5156 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5161 echo "cat >conf$$subs.awk <<_ACEOF" &&
5162 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5165 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5166 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5168 for ac_last_try in false false false false false :; do
5169 . ./conf$$subs.sh ||
5170 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5172 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
5173 if test $ac_delim_n = $ac_delim_num; then
5175 elif $ac_last_try; then
5176 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5178 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5184 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
5188 s/^/S["/; s
/!.
*/"]=/
5198 s/\(.\{148\}\)..*/\1/
5200 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
5205 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5212 s/\(.\{148\}\)..*/\1/
5214 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5218 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5223 ' <conf$$subs.awk | sed '
5228 ' >>$CONFIG_STATUS || ac_write_fail=1
5229 rm -f conf$$subs.awk
5230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5232 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
5233 for (key in S) S_is_set[key] = 1
5239 nfields = split(line, field, "@
")
5241 len = length(field[1])
5242 for (i = 2; i < nfields; i++) {
5244 keylen = length(key)
5245 if (S_is_set[key]) {
5247 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5248 len += length(value) + length(field[++i])
5259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5260 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5261 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
5264 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
5265 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
5268 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5269 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
5270 # trailing colons and then remove the whole line if VPATH becomes empty
5271 # (actually we leave an empty line to preserve line numbers).
5272 if test "x
$srcdir" = x.; then
5273 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5292 fi # test -n "$CONFIG_FILES"
5294 # Set up the scripts for CONFIG_HEADERS section.
5295 # No need to generate them if there are no CONFIG_HEADERS.
5296 # This happens for instance with `./config.status Makefile'.
5297 if test -n "$CONFIG_HEADERS"; then
5298 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
5302 # Transform confdefs.h into an awk script `defines.awk', embedded as
5303 # here-document in config.status, that substitutes the proper values into
5304 # config.h.in to produce config.h.
5306 # Create a delimiter string that does not exist in confdefs.h, to ease
5307 # handling of long lines.
5309 for ac_last_try in false false :; do
5310 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
5311 if test -z "$ac_tt"; then
5313 elif $ac_last_try; then
5314 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
5316 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5320 # For the awk script, D is an array of macro values keyed by name,
5321 # likewise P contains macro parameters if any. Preserve backslash
5322 # newline sequences.
5324 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5326 s/.\{148\}/&'"$ac_delim"'/g
5329 s/^[ ]*#[ ]*define[ ][ ]*/ /
5336 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5338 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5342 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5343 D["\
1"]=" \
3\\\\\\n
"\\/p
5345 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5350 s/.\{148\}/&'"$ac_delim"'/g
5355 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5358 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5360 ' <confdefs.h | sed '
5361 s/'"$ac_delim"'/"\\\
5362 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5365 for (key in D) D_is_set[key] = 1
5368 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5370 split(line, arg, " ")
5371 if (arg[1] == "#") {
5375 defundef
= substr
(arg
[1], 2)
5378 split(mac1
, mac2
, "(") #)
5380 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5381 if (D_is_set
[macro
]) {
5382 # Preserve the white space surrounding the "#".
5383 print prefix
"define", macro P
[macro
] D
[macro
]
5386 # Replace #undef with comments. This is necessary, for example,
5387 # in the case of _POSIX_SOURCE, which is predefined and required
5388 # on some systems where configure will not decide to define it.
5389 if (defundef
== "undef") {
5390 print
"/*", prefix defundef
, macro
, "*/"
5398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5399 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
5400 fi # test -n "$CONFIG_HEADERS"
5403 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
5408 :[FHLC
]) ac_mode
=$ac_tag; continue;;
5410 case $ac_mode$ac_tag in
5412 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
5413 :[FH
]-) ac_tag
=-:-;;
5414 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
5431 -) ac_f
="$ac_tmp/stdin";;
5432 *) # Look for the file first in the build tree, then in the source tree
5433 # (if the path is not absolute). The absolute path cannot be DOS-style,
5434 # because $ac_f cannot contain `:'.
5438 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
5440 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5442 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5443 as_fn_append ac_file_inputs
" '$ac_f'"
5446 # Let's still pretend it is `configure' which instantiates (i.e., don't
5447 # use $as_me), people would be surprised to read:
5448 # /* config.h. Generated by config.status. */
5449 configure_input
='Generated from '`
5450 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5452 if test x
"$ac_file" != x-
; then
5453 configure_input
="$ac_file. $configure_input"
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5455 $as_echo "$as_me: creating $ac_file" >&6;}
5457 # Neutralize special characters interpreted by sed in replacement strings.
5458 case $configure_input in #(
5459 *\
&* |
*\|
* |
*\\* )
5460 ac_sed_conf_input
=`$as_echo "$configure_input" |
5461 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5462 *) ac_sed_conf_input
=$configure_input;;
5466 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
5467 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
5472 ac_dir
=`$as_dirname -- "$ac_file" ||
5473 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5474 X"$ac_file" : 'X\(//\)[^/]' \| \
5475 X"$ac_file" : 'X\(//\)$' \| \
5476 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5477 $as_echo X"$ac_file" |
5478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5495 as_dir
="$ac_dir"; as_fn_mkdir_p
5499 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5501 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5502 # A ".." for each directory in $ac_dir_suffix.
5503 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5504 case $ac_top_builddir_sub in
5505 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5506 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
5509 ac_abs_top_builddir
=$ac_pwd
5510 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
5511 # for backward compatibility:
5512 ac_top_builddir
=$ac_top_build_prefix
5515 .
) # We are building in place.
5517 ac_top_srcdir
=$ac_top_builddir_sub
5518 ac_abs_top_srcdir
=$ac_pwd ;;
5519 [\\/]* | ?
:[\\/]* ) # Absolute name.
5520 ac_srcdir
=$srcdir$ac_dir_suffix;
5521 ac_top_srcdir
=$srcdir
5522 ac_abs_top_srcdir
=$srcdir ;;
5524 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
5525 ac_top_srcdir
=$ac_top_build_prefix$srcdir
5526 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
5528 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
5538 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5539 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
5543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5544 # If the template does not know about datarootdir, expand it.
5545 # FIXME: This hack should be removed a few years after 2.60.
5546 ac_datarootdir_hack
=; ac_datarootdir_seen
=
5557 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5558 *datarootdir
*) ac_datarootdir_seen
=yes;;
5559 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5561 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5564 ac_datarootdir_hack='
5565 s&@datadir@&$datadir&g
5566 s&@docdir@&$docdir&g
5567 s&@infodir@&$infodir&g
5568 s&@localedir@&$localedir&g
5569 s&@mandir@&$mandir&g
5570 s&\\\${datarootdir}&$datarootdir&g' ;;
5574 # Neutralize VPATH when `$srcdir' = `.'.
5575 # Shell code in configure.ac might set extrasub.
5576 # FIXME: do we really want to maintain this feature?
5577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5578 ac_sed_extra="$ac_vpsub
5581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5583 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5584 s|@configure_input@|
$ac_sed_conf_input|
;t t
5585 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
5586 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
5587 s
&@srcdir@
&$ac_srcdir&;t t
5588 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
5589 s
&@top_srcdir@
&$ac_top_srcdir&;t t
5590 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
5591 s
&@builddir@
&$ac_builddir&;t t
5592 s
&@abs_builddir@
&$ac_abs_builddir&;t t
5593 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
5594 s
&@INSTALL@
&$ac_INSTALL&;t t
5595 $ac_datarootdir_hack
5597 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
5598 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
5600 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5601 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
5602 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5603 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
5605 which seems to be undefined. Please make sure it is defined" >&5
5606 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
5607 which seems to be undefined. Please make sure it is defined" >&2;}
5609 rm -f "$ac_tmp/stdin"
5611 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5612 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5614 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5620 if test x"$ac_file" != x-; then
5622 $as_echo "/* $configure_input */" \
5623 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5624 } >"$ac_tmp/config.h" \
5625 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5626 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5628 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5631 mv "$ac_tmp/config.h" "$ac_file" \
5632 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5635 $as_echo "/* $configure_input */" \
5636 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5637 || as_fn_error $? "could not create -" "$LINENO" 5
5649 ac_clean_files=$ac_clean_files_save
5651 test $ac_write_fail = 0 ||
5652 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5655 # configure is writing to config.log, and then calls config.status.
5656 # config.status does its own redirection, appending to config.log.
5657 # Unfortunately, on DOS this fails, as config.log is still kept open
5658 # by configure, so config.status won't be able to
write to it
; its
5659 # output is simply discarded. So we exec the FD to /dev/null,
5660 # effectively closing config.log, so it can be properly (re)opened and
5661 # appended to by config.status. When coming back to configure, we
5662 # need to make the FD available again.
5663 if test "$no_create" != yes; then
5665 ac_config_status_args
=
5666 test "$silent" = yes &&
5667 ac_config_status_args
="$ac_config_status_args --quiet"
5669 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5671 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5672 # would make configure fail if this is the last instruction.
5673 $ac_cs_success || as_fn_exit
1
5675 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5677 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}