2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for RISC-V ISA Simulator ?.
5 # Report bugs to <Andrew Waterman>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and Andrew Waterman
232 $0: about your system, including any error possibly output
233 $0: before this message. Then install a modern shell, or
234 $0: manually run the script under such a shell if you do
241 SHELL
=${CONFIG_SHELL-/bin/sh}
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE
= GREP_OPTIONS
=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
252 # Portably unset VAR.
255 { eval $1=; unset $1;}
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 # Create "$as_dir" as a directory, including parents if necessary.
284 -*) as_dir
=.
/$as_dir;;
286 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
290 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 as_dirs
="'$as_qdir' $as_dirs"
294 as_dir
=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317 test -d "$as_dir" && break
319 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
320 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
331 eval 'as_fn_append ()
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
355 as_val
=`expr "$@" || test $? -eq 1`
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
367 as_status
=$?
; test $as_status -eq 0 && as_status
=1
369 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit
$as_status
376 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
383 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
395 as_me
=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
414 # Avoid depending upon Character Ranges.
415 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits
='0123456789'
419 as_cr_alnum
=$as_cr_Letters$as_cr_digits
422 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
423 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 chmod +x
"$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
449 # Exit status is that of the last command.
453 ECHO_C
= ECHO_N
= ECHO_T
=
454 case `echo -n x` in #(((((
456 case `echo 'xy\c'` in
457 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
466 rm -f conf$$ conf$$.exe conf$$.
file
467 if test -d conf$$.dir
; then
468 rm -f conf$$.dir
/conf$$.
file
471 mkdir conf$$.dir
2>/dev
/null
473 if (echo >conf$$.
file) 2>/dev
/null
; then
474 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
482 elif ln conf$$.
file conf$$
2>/dev
/null
; then
490 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
491 rmdir conf$$.dir
2>/dev
/null
493 if mkdir
-p .
2>/dev
/null
; then
494 as_mkdir_p
='mkdir -p "$as_dir"'
496 test -d .
/-p && rmdir .
/-p
500 if test -x / >/dev
/null
2>&1; then
503 if ls -dL / >/dev
/null
2>&1; then
510 if test -d "$1"; then
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
521 as_executable_p
=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 exec 7<&0 </dev
/null
6>&1
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
550 PACKAGE_NAME
='RISC-V ISA Simulator'
551 PACKAGE_TARNAME
='riscv-isa-run'
553 PACKAGE_STRING
='RISC-V ISA Simulator ?'
554 PACKAGE_BUGREPORT
='Andrew Waterman'
557 ac_unique_file
="riscv/common.h"
558 ac_subst_vars
='LTLIBOBJS
622 program_transform_name
635 enable_option_checking
637 enable_optional_subprojects
643 ac_precious_vars
='build_alias
659 # Initialize some variables set by options.
661 ac_init_version
=false
662 ac_unrecognized_opts
=
664 # The variables have the same names as the options, with
665 # dashes changed to underlines.
673 program_transform_name
=s
,x
,x
,
681 # Installation directory options.
682 # These are left unexpanded so users can "make install exec_prefix=/foo"
683 # and all the variables that are supposed to be based on exec_prefix
684 # by default will actually change.
685 # Use braces instead of parens because sh, perl, etc. also accept them.
686 # (The list follows the same order as the GNU Coding Standards.)
687 bindir
='${exec_prefix}/bin'
688 sbindir
='${exec_prefix}/sbin'
689 libexecdir
='${exec_prefix}/libexec'
690 datarootdir
='${prefix}/share'
691 datadir
='${datarootdir}'
692 sysconfdir
='${prefix}/etc'
693 sharedstatedir
='${prefix}/com'
694 localstatedir
='${prefix}/var'
695 includedir
='${prefix}/include'
696 oldincludedir
='/usr/include'
697 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
698 infodir
='${datarootdir}/info'
703 libdir
='${exec_prefix}/lib'
704 localedir
='${datarootdir}/locale'
705 mandir
='${datarootdir}/man'
711 # If the previous option needs an argument, assign it.
712 if test -n "$ac_prev"; then
713 eval $ac_prev=\
$ac_option
719 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
723 # Accept the important Cygnus configure options, so we can diagnose typos.
725 case $ac_dashdash$ac_option in
729 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
731 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
734 -build |
--build |
--buil |
--bui |
--bu)
735 ac_prev
=build_alias
;;
736 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
737 build_alias
=$ac_optarg ;;
739 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
740 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
741 ac_prev
=cache_file
;;
742 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
743 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
744 cache_file
=$ac_optarg ;;
747 cache_file
=config.cache
;;
749 -datadir |
--datadir |
--datadi |
--datad)
751 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
752 datadir
=$ac_optarg ;;
754 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
755 |
--dataroo |
--dataro |
--datar)
756 ac_prev
=datarootdir
;;
757 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
758 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
759 datarootdir
=$ac_optarg ;;
761 -disable-* |
--disable-*)
762 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
763 # Reject names that are not valid shell variable names.
764 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
765 as_fn_error
"invalid feature name: $ac_useropt"
766 ac_useropt_orig
=$ac_useropt
767 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
768 case $ac_user_opts in
772 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
773 ac_unrecognized_sep
=', ';;
775 eval enable_
$ac_useropt=no
;;
777 -docdir |
--docdir |
--docdi |
--doc |
--do)
779 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
782 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
784 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
787 -enable-* |
--enable-*)
788 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
791 as_fn_error
"invalid feature name: $ac_useropt"
792 ac_useropt_orig
=$ac_useropt
793 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
794 case $ac_user_opts in
798 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
799 ac_unrecognized_sep
=', ';;
801 eval enable_
$ac_useropt=\
$ac_optarg ;;
803 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
804 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
805 |
--exec |
--exe |
--ex)
806 ac_prev
=exec_prefix
;;
807 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
808 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
809 |
--exec=* |
--exe=* |
--ex=*)
810 exec_prefix
=$ac_optarg ;;
812 -gas |
--gas |
--ga |
--g)
813 # Obsolete; use --with-gas.
816 -help |
--help |
--hel |
--he |
-h)
818 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
819 ac_init_help
=recursive
;;
820 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
821 ac_init_help
=short
;;
823 -host |
--host |
--hos |
--ho)
824 ac_prev
=host_alias
;;
825 -host=* |
--host=* |
--hos=* |
--ho=*)
826 host_alias
=$ac_optarg ;;
828 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
830 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
832 htmldir
=$ac_optarg ;;
834 -includedir |
--includedir |
--includedi |
--included |
--include \
835 |
--includ |
--inclu |
--incl |
--inc)
836 ac_prev
=includedir
;;
837 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
838 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
839 includedir
=$ac_optarg ;;
841 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
843 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
844 infodir
=$ac_optarg ;;
846 -libdir |
--libdir |
--libdi |
--libd)
848 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
851 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
852 |
--libexe |
--libex |
--libe)
853 ac_prev
=libexecdir
;;
854 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
855 |
--libexe=* |
--libex=* |
--libe=*)
856 libexecdir
=$ac_optarg ;;
858 -localedir |
--localedir |
--localedi |
--localed |
--locale)
860 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
861 localedir
=$ac_optarg ;;
863 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
864 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
865 ac_prev
=localstatedir
;;
866 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
867 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
868 localstatedir
=$ac_optarg ;;
870 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
872 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
876 # Obsolete; use --without-fp.
879 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
880 |
--no-cr |
--no-c |
-n)
883 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
884 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
887 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
888 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
889 |
--oldin |
--oldi |
--old |
--ol |
--o)
890 ac_prev
=oldincludedir
;;
891 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
892 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
893 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
894 oldincludedir
=$ac_optarg ;;
896 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
898 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
901 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
902 |
--program-pre |
--program-pr |
--program-p)
903 ac_prev
=program_prefix
;;
904 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
905 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
906 program_prefix
=$ac_optarg ;;
908 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
909 |
--program-suf |
--program-su |
--program-s)
910 ac_prev
=program_suffix
;;
911 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
912 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
913 program_suffix
=$ac_optarg ;;
915 -program-transform-name |
--program-transform-name \
916 |
--program-transform-nam |
--program-transform-na \
917 |
--program-transform-n |
--program-transform- \
918 |
--program-transform |
--program-transfor \
919 |
--program-transfo |
--program-transf \
920 |
--program-trans |
--program-tran \
921 |
--progr-tra |
--program-tr |
--program-t)
922 ac_prev
=program_transform_name
;;
923 -program-transform-name=* |
--program-transform-name=* \
924 |
--program-transform-nam=* |
--program-transform-na=* \
925 |
--program-transform-n=* |
--program-transform-=* \
926 |
--program-transform=* |
--program-transfor=* \
927 |
--program-transfo=* |
--program-transf=* \
928 |
--program-trans=* |
--program-tran=* \
929 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
930 program_transform_name
=$ac_optarg ;;
932 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
934 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
937 -psdir |
--psdir |
--psdi |
--psd |
--ps)
939 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
942 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
943 |
-silent |
--silent |
--silen |
--sile |
--sil)
946 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
948 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
950 sbindir
=$ac_optarg ;;
952 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
953 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
954 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
956 ac_prev
=sharedstatedir
;;
957 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
958 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
959 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
961 sharedstatedir
=$ac_optarg ;;
963 -site |
--site |
--sit)
965 -site=* |
--site=* |
--sit=*)
968 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
970 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
973 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
974 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
975 ac_prev
=sysconfdir
;;
976 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
977 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
978 sysconfdir
=$ac_optarg ;;
980 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
981 ac_prev
=target_alias
;;
982 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
983 target_alias
=$ac_optarg ;;
985 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
988 -version |
--version |
--versio |
--versi |
--vers |
-V)
992 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
995 as_fn_error
"invalid package name: $ac_useropt"
996 ac_useropt_orig
=$ac_useropt
997 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1002 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1003 ac_unrecognized_sep
=', ';;
1005 eval with_
$ac_useropt=\
$ac_optarg ;;
1007 -without-* |
--without-*)
1008 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1011 as_fn_error
"invalid package name: $ac_useropt"
1012 ac_useropt_orig
=$ac_useropt
1013 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1018 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1019 ac_unrecognized_sep
=', ';;
1021 eval with_
$ac_useropt=no
;;
1024 # Obsolete; use --with-x.
1027 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1028 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1029 ac_prev
=x_includes
;;
1030 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1031 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1032 x_includes
=$ac_optarg ;;
1034 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1035 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1036 ac_prev
=x_libraries
;;
1037 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1038 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1039 x_libraries
=$ac_optarg ;;
1041 -*) as_fn_error
"unrecognized option: \`$ac_option'
1042 Try \`$0 --help' for more information."
1046 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1047 # Reject names that are not valid shell variable names.
1048 case $ac_envvar in #(
1049 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1050 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1052 eval $ac_envvar=\
$ac_optarg
1053 export $ac_envvar ;;
1056 # FIXME: should be removed in autoconf 3.0.
1057 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1058 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1059 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1060 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1066 if test -n "$ac_prev"; then
1067 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1068 as_fn_error
"missing argument to $ac_option"
1071 if test -n "$ac_unrecognized_opts"; then
1072 case $enable_option_checking in
1074 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1075 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1079 # Check all directory arguments for consistency.
1080 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1081 datadir sysconfdir sharedstatedir localstatedir includedir \
1082 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1083 libdir localedir mandir
1085 eval ac_val
=\$
$ac_var
1086 # Remove trailing slashes.
1089 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1090 eval $ac_var=\
$ac_val;;
1092 # Be sure to have absolute directory names.
1094 [\\/$
]* | ?
:[\\/]* ) continue;;
1095 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1097 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1100 # There might be people who depend on the old broken behavior: `$host'
1101 # used to hold the argument of --host etc.
1102 # FIXME: To remove some day.
1105 target
=$target_alias
1107 # FIXME: To remove some day.
1108 if test "x$host_alias" != x
; then
1109 if test "x$build_alias" = x
; then
1110 cross_compiling
=maybe
1111 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1112 If a cross compiler is detected then cross compile mode will be used." >&2
1113 elif test "x$build_alias" != "x$host_alias"; then
1119 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1121 test "$silent" = yes && exec 6>/dev
/null
1124 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1125 ac_ls_di
=`ls -di .` &&
1126 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1127 as_fn_error
"working directory cannot be determined"
1128 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1129 as_fn_error
"pwd does not report name of working directory"
1132 # Find the source files, if location was not specified.
1133 if test -z "$srcdir"; then
1134 ac_srcdir_defaulted
=yes
1135 # Try the directory containing this script, then the parent directory.
1136 ac_confdir
=`$as_dirname -- "$as_myself" ||
1137 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1138 X"$as_myself" : 'X\(//\)[^/]' \| \
1139 X"$as_myself" : 'X\(//\)$' \| \
1140 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1141 $as_echo X"$as_myself" |
1142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1160 if test ! -r "$srcdir/$ac_unique_file"; then
1164 ac_srcdir_defaulted
=no
1166 if test ! -r "$srcdir/$ac_unique_file"; then
1167 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1168 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1170 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1172 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1174 # When building in place, set srcdir=.
1175 if test "$ac_abs_confdir" = "$ac_pwd"; then
1178 # Remove unnecessary trailing slashes from srcdir.
1179 # Double slashes in file names in object file debugging info
1180 # mess up M-x gdb in Emacs.
1182 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1184 for ac_var
in $ac_precious_vars; do
1185 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1186 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1187 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1188 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1192 # Report the --help message.
1194 if test "$ac_init_help" = "long"; then
1195 # Omit some internal or obsolete options to make the list less imposing.
1196 # This message is too long to be a string in the A/UX 3.1 sh.
1198 \`configure' configures RISC-V ISA Simulator ? to adapt to many kinds of systems.
1200 Usage: $0 [OPTION]... [VAR=VALUE]...
1202 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1203 VAR=VALUE. See below for descriptions of some of the useful variables.
1205 Defaults for the options are specified in brackets.
1208 -h, --help display this help and exit
1209 --help=short display options specific to this package
1210 --help=recursive display the short help of all the included packages
1211 -V, --version display version information and exit
1212 -q, --quiet, --silent do not print \`checking...' messages
1213 --cache-file=FILE cache test results in FILE [disabled]
1214 -C, --config-cache alias for \`--cache-file=config.cache'
1215 -n, --no-create do not create output files
1216 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1218 Installation directories:
1219 --prefix=PREFIX install architecture-independent files in PREFIX
1220 [$ac_default_prefix]
1221 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1224 By default, \`make install' will install all the files in
1225 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1226 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1227 for instance \`--prefix=\$HOME'.
1229 For better control, use the options below.
1231 Fine tuning of the installation directories:
1232 --bindir=DIR user executables [EPREFIX/bin]
1233 --sbindir=DIR system admin executables [EPREFIX/sbin]
1234 --libexecdir=DIR program executables [EPREFIX/libexec]
1235 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1236 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1237 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1238 --libdir=DIR object code libraries [EPREFIX/lib]
1239 --includedir=DIR C header files [PREFIX/include]
1240 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1241 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1242 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1243 --infodir=DIR info documentation [DATAROOTDIR/info]
1244 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1245 --mandir=DIR man documentation [DATAROOTDIR/man]
1246 --docdir=DIR documentation root [DATAROOTDIR/doc/riscv-isa-run]
1247 --htmldir=DIR html documentation [DOCDIR]
1248 --dvidir=DIR dvi documentation [DOCDIR]
1249 --pdfdir=DIR pdf documentation [DOCDIR]
1250 --psdir=DIR ps documentation [DOCDIR]
1256 --build=BUILD configure
for building on BUILD
[guessed
]
1257 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1261 if test -n "$ac_init_help"; then
1262 case $ac_init_help in
1263 short | recursive
) echo "Configuration of RISC-V ISA Simulator ?:";;
1268 --disable-option-checking ignore unrecognized
--enable/--with options
1269 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1270 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1271 --enable-stow Enable stow-based
install
1272 --enable-optional-subprojects
1273 Enable all optional subprojects
1274 --disable-fpu Disable floating-point
1275 --disable-64bit Disable
64-bit mode
1276 --enable-rvc Enable instruction compression
1277 --disable-vec Disable vector processor
1279 Some influential environment variables
:
1280 CC C compiler
command
1281 CFLAGS C compiler flags
1282 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1283 nonstandard directory
<lib dir
>
1284 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1285 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1286 you have headers
in a nonstandard directory
<include dir
>
1287 CXX C
++ compiler
command
1288 CXXFLAGS C
++ compiler flags
1289 STOW_ROOT Root
for non-native stow-based installs
1290 STOW_PREFIX Prefix
for stow-based installs
1293 Use these variables to override the choices made by
`configure' or to help
1294 it to find libraries and programs with nonstandard names/locations.
1296 Report bugs to <Andrew Waterman>.
1301 if test "$ac_init_help" = "recursive"; then
1302 # If there are subdirs, report their specific --help.
1303 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1304 test -d "$ac_dir" ||
1305 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1310 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1312 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1313 # A ".." for each directory in $ac_dir_suffix.
1314 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1315 case $ac_top_builddir_sub in
1316 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1317 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1320 ac_abs_top_builddir=$ac_pwd
1321 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1322 # for backward compatibility:
1323 ac_top_builddir=$ac_top_build_prefix
1326 .) # We are building in place.
1328 ac_top_srcdir=$ac_top_builddir_sub
1329 ac_abs_top_srcdir=$ac_pwd ;;
1330 [\\/]* | ?:[\\/]* ) # Absolute name.
1331 ac_srcdir=$srcdir$ac_dir_suffix;
1332 ac_top_srcdir=$srcdir
1333 ac_abs_top_srcdir=$srcdir ;;
1335 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1336 ac_top_srcdir=$ac_top_build_prefix$srcdir
1337 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1339 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1341 cd "$ac_dir" || { ac_status=$?; continue; }
1342 # Check for guested configure.
1343 if test -f "$ac_srcdir/configure.gnu"; then
1345 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1346 elif test -f "$ac_srcdir/configure"; then
1348 $SHELL "$ac_srcdir/configure" --help=recursive
1350 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1352 cd "$ac_pwd" || { ac_status=$?; break; }
1356 test -n "$ac_init_help" && exit $ac_status
1357 if $ac_init_version; then
1359 RISC-V ISA Simulator configure ?
1360 generated by GNU Autoconf 2.64
1362 Copyright (C) 2009 Free Software Foundation, Inc.
1363 This configure script is free software; the Free Software Foundation
1364 gives unlimited permission to copy, distribute and modify it.
1369 ## ------------------------ ##
1370 ## Autoconf initialization. ##
1371 ## ------------------------ ##
1373 # ac_fn_c_try_compile LINENO
1374 # --------------------------
1375 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1376 ac_fn_c_try_compile ()
1378 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1379 rm -f conftest.$ac_objext
1380 if { { ac_try="$ac_compile"
1382 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1383 *) ac_try_echo
=$ac_try;;
1385 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1386 $as_echo "$ac_try_echo"; } >&5
1387 (eval "$ac_compile") 2>conftest.err
1389 if test -s conftest.err
; then
1390 grep -v '^ *+' conftest.err
>conftest.er1
1391 cat conftest.er1
>&5
1392 mv -f conftest.er1 conftest.err
1394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1395 test $ac_status = 0; } && {
1396 test -z "$ac_c_werror_flag" ||
1397 test ! -s conftest.err
1398 } && test -s conftest.
$ac_objext; then :
1401 $as_echo "$as_me: failed program was:" >&5
1402 sed 's/^/| /' conftest.
$ac_ext >&5
1406 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1409 } # ac_fn_c_try_compile
1411 # ac_fn_cxx_try_compile LINENO
1412 # ----------------------------
1413 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1414 ac_fn_cxx_try_compile
()
1416 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1417 rm -f conftest.
$ac_objext
1418 if { { ac_try
="$ac_compile"
1420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1421 *) ac_try_echo=$ac_try;;
1423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1424 $as_echo "$ac_try_echo"; } >&5
1425 (eval "$ac_compile") 2>conftest.err
1427 if test -s conftest.err; then
1428 grep -v '^ *+' conftest.err >conftest.er1
1429 cat conftest.er1 >&5
1430 mv -f conftest.er1 conftest.err
1432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1433 test $ac_status = 0; } && {
1434 test -z "$ac_cxx_werror_flag" ||
1435 test ! -s conftest.err
1436 } && test -s conftest.$ac_objext; then :
1439 $as_echo "$as_me: failed program was:" >&5
1440 sed 's/^/| /' conftest.$ac_ext >&5
1444 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1447 } # ac_fn_cxx_try_compile
1449 # ac_fn_c_try_cpp LINENO
1450 # ----------------------
1451 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1455 if { { ac_try="$ac_cpp conftest.$ac_ext"
1457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1458 *) ac_try_echo
=$ac_try;;
1460 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1461 $as_echo "$ac_try_echo"; } >&5
1462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1464 if test -s conftest.err
; then
1465 grep -v '^ *+' conftest.err
>conftest.er1
1466 cat conftest.er1
>&5
1467 mv -f conftest.er1 conftest.err
1469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1470 test $ac_status = 0; } >/dev
/null
&& {
1471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1472 test ! -s conftest.err
1476 $as_echo "$as_me: failed program was:" >&5
1477 sed 's/^/| /' conftest.
$ac_ext >&5
1481 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1486 # ac_fn_c_try_run LINENO
1487 # ----------------------
1488 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1489 # that executables *can* be run.
1492 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1493 if { { ac_try
="$ac_link"
1495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1496 *) ac_try_echo=$ac_try;;
1498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1499 $as_echo "$ac_try_echo"; } >&5
1500 (eval "$ac_link") 2>&5
1502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1503 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1504 { { case "(($ac_try" in
1505 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1506 *) ac_try_echo
=$ac_try;;
1508 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1509 $as_echo "$ac_try_echo"; } >&5
1510 (eval "$ac_try") 2>&5
1512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1513 test $ac_status = 0; }; }; then :
1516 $as_echo "$as_me: program exited with status $ac_status" >&5
1517 $as_echo "$as_me: failed program was:" >&5
1518 sed 's/^/| /' conftest.
$ac_ext >&5
1520 ac_retval
=$ac_status
1522 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1523 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1528 # ac_fn_c_try_link LINENO
1529 # -----------------------
1530 # Try to link conftest.$ac_ext, and return whether this succeeded.
1533 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1534 rm -f conftest.
$ac_objext conftest
$ac_exeext
1535 if { { ac_try
="$ac_link"
1537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1538 *) ac_try_echo=$ac_try;;
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542 (eval "$ac_link") 2>conftest.err
1544 if test -s conftest.err; then
1545 grep -v '^ *+' conftest.err >conftest.er1
1546 cat conftest.er1 >&5
1547 mv -f conftest.er1 conftest.err
1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550 test $ac_status = 0; } && {
1551 test -z "$ac_c_werror_flag" ||
1552 test ! -s conftest.err
1553 } && test -s conftest$ac_exeext && {
1554 test "$cross_compiling" = yes ||
1555 $as_test_x conftest$ac_exeext
1559 $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1564 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1565 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1566 # interfere with the next link command; also delete a directory that is
1567 # left behind by Apple's compiler. We do this before executing the actions.
1568 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1569 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1572 } # ac_fn_c_try_link
1573 cat >config.log <<_ACEOF
1574 This file contains any messages produced by compilers while
1575 running configure, to aid debugging if configure makes a mistake.
1577 It was created by RISC-V ISA Simulator $as_me ?, which was
1578 generated by GNU Autoconf 2.64. Invocation command line was
1590 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1591 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1592 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1593 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1594 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1596 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1597 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1599 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1600 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1601 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1602 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1603 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1604 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1605 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 test -z "$as_dir" && as_dir=.
1614 $as_echo "PATH: $as_dir"
1630 # Keep a trace of the command line.
1631 # Strip out --no-create and --no-recursion so they do not pile up.
1632 # Strip out --silent because we don't want to record it for future runs.
1633 # Also quote any args containing shell meta-characters.
1634 # Make two passes to allow for proper duplicate-argument suppression.
1638 ac_must_keep_next=false
1644 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1645 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1646 | -silent | --silent | --silen | --sile | --sil)
1649 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1652 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1654 as_fn_append ac_configure_args1 " '$ac_arg'"
1655 if test $ac_must_keep_next = true; then
1656 ac_must_keep_next=false # Got value, back to normal.
1659 *=* | --config-cache | -C | -disable-* | --disable-* \
1660 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1661 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1662 | -with-* | --with-* | -without-* | --without-* | --x)
1663 case "$ac_configure_args0 " in
1664 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1667 -* ) ac_must_keep_next=true ;;
1670 as_fn_append ac_configure_args " '$ac_arg'"
1675 { ac_configure_args0=; unset ac_configure_args0;}
1676 { ac_configure_args1=; unset ac_configure_args1;}
1678 # When interrupted or exit'd, cleanup temporary files, and complete
1679 # config.log. We remove comments because anyway the quotes in there
1680 # would cause problems or look ugly.
1681 # WARNING: Use '\'' to represent an apostrophe within the trap.
1682 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1683 trap 'exit_status=$?
1684 # Save into config.log some information that might help in debugging.
1689 ## ---------------- ##
1690 ## Cache variables. ##
1691 ## ---------------- ##
1694 # The following way of writing the cache mishandles newlines in values,
1696 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1697 eval ac_val=\$$ac_var
1701 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1702 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1705 _ | IFS | as_nl) ;; #(
1706 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1707 *) { eval $ac_var=; unset $ac_var;} ;;
1712 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1713 *${as_nl}ac_space=\ *)
1715 "s/'\''/'\''\\\\'\'''\''/g;
1716 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1719 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1727 ## ----------------- ##
1728 ## Output variables. ##
1729 ## ----------------- ##
1732 for ac_var in $ac_subst_vars
1734 eval ac_val=\$$ac_var
1736 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1738 $as_echo "$ac_var='\''$ac_val'\''"
1742 if test -n "$ac_subst_files"; then
1744 ## ------------------- ##
1745 ## File substitutions. ##
1746 ## ------------------- ##
1749 for ac_var in $ac_subst_files
1751 eval ac_val=\$$ac_var
1753 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1755 $as_echo "$ac_var='\''$ac_val'\''"
1760 if test -s confdefs.h; then
1770 test "$ac_signal" != 0 &&
1771 $as_echo "$as_me: caught signal $ac_signal"
1772 $as_echo "$as_me: exit $exit_status"
1774 rm -f core *.core core.conftest.* &&
1775 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1778 for ac_signal in 1 2 13 15; do
1779 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1783 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1784 rm -f -r conftest* confdefs.h
1786 $as_echo "/* confdefs.h */" > confdefs.h
1788 # Predefined preprocessor variables.
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_NAME "$PACKAGE_NAME"
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_STRING "$PACKAGE_STRING"
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_URL "$PACKAGE_URL"
1815 # Let the site file select an alternate cache file if it wants to.
1816 # Prefer an explicitly selected file to automatically selected ones.
1819 if test -n "$CONFIG_SITE"; then
1820 ac_site_file1=$CONFIG_SITE
1821 elif test "x$prefix" != xNONE; then
1822 ac_site_file1=$prefix/share/config.site
1823 ac_site_file2=$prefix/etc/config.site
1825 ac_site_file1=$ac_default_prefix/share/config.site
1826 ac_site_file2=$ac_default_prefix/etc/config.site
1828 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1830 test "x$ac_site_file" = xNONE && continue
1831 if test -r "$ac_site_file"; then
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1833 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1834 sed 's/^/| /' "$ac_site_file" >&5
1839 if test -r "$cache_file"; then
1840 # Some versions of bash will fail to source /dev/null (special
1841 # files actually), so we avoid doing that.
1842 if test -f "$cache_file"; then
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1844 $as_echo "$as_me: loading cache $cache_file" >&6;}
1846 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1847 *) . "./$cache_file";;
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1852 $as_echo "$as_me: creating cache $cache_file" >&6;}
1856 # Check that the precious variables saved in the cache have kept the same
1858 ac_cache_corrupted=false
1859 for ac_var in $ac_precious_vars; do
1860 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1861 eval ac_new_set=\$ac_env_${ac_var}_set
1862 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1863 eval ac_new_val=\$ac_env_${ac_var}_value
1864 case $ac_old_set,$ac_new_set in
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1867 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1868 ac_cache_corrupted=: ;;
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
1871 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1872 ac_cache_corrupted=: ;;
1875 if test "x$ac_old_val" != "x$ac_new_val"; then
1876 # differences in whitespace do not lead to failure.
1877 ac_old_val_w=`echo x
$ac_old_val`
1878 ac_new_val_w=`echo x
$ac_new_val`
1879 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1881 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1882 ac_cache_corrupted=:
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1885 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1886 eval $ac_var=\$ac_old_val
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1889 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1891 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1894 # Pass precious variables to config.status.
1895 if test "$ac_new_set" = set; then
1897 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1898 *) ac_arg=$ac_var=$ac_new_val ;;
1900 case " $ac_configure_args " in
1901 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1902 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1906 if $ac_cache_corrupted; then
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
1908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1910 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1911 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
1913 ## -------------------- ##
1914 ## Main body of script. ##
1915 ## -------------------- ##
1918 ac_cpp='$CPP $CPPFLAGS'
1919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1926 for ac_dir in scripts "$srcdir"/scripts; do
1927 for ac_t in install-sh install.sh shtool; do
1928 if test -f "$ac_dir/$ac_t"; then
1930 ac_install_sh="$ac_aux_dir/$ac_t -c"
1935 if test -z "$ac_aux_dir"; then
1936 as_fn_error "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
1939 # These three variables are undocumented and unsupported,
1940 # and are intended to be withdrawn in a future Autoconf release.
1941 # They can cause serious problems if a builder's source tree is in a directory
1942 # whose full name contains unusual characters.
1943 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1944 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1945 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1948 # Make sure we can run config.sub.
1949 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1950 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1953 $as_echo_n "checking build system type... " >&6; }
1954 if test "${ac_cv_build+set}" = set; then :
1955 $as_echo_n "(cached) " >&6
1957 ac_build_alias=$build_alias
1958 test "x$ac_build_alias" = x &&
1959 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1960 test "x$ac_build_alias" = x &&
1961 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
1962 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1963 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1967 $as_echo "$ac_cv_build" >&6; }
1968 case $ac_cv_build in
1970 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
1973 ac_save_IFS=$IFS; IFS='-'
1979 # Remember, the first character of IFS is used to create $*,
1980 # except with old shells:
1983 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1987 $as_echo_n "checking host system type... " >&6; }
1988 if test "${ac_cv_host+set}" = set; then :
1989 $as_echo_n "(cached) " >&6
1991 if test "x$host_alias" = x; then
1992 ac_cv_host=$ac_cv_build
1994 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1995 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2000 $as_echo "$ac_cv_host" >&6; }
2003 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2006 ac_save_IFS=$IFS; IFS='-'
2012 # Remember, the first character of IFS is used to create $*,
2013 # except with old shells:
2016 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2020 #-------------------------------------------------------------------------
2021 # Checks for programs
2022 #-------------------------------------------------------------------------
2025 ac_cpp='$CPP $CPPFLAGS'
2026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2029 if test -n "$ac_tool_prefix"; then
2030 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2031 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2033 $as_echo_n "checking for $ac_word... " >&6; }
2034 if test "${ac_cv_prog_CC+set}" = set; then :
2035 $as_echo_n "(cached) " >&6
2037 if test -n "$CC"; then
2038 ac_cv_prog_CC="$CC" # Let the user override the test.
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 test -z "$as_dir" && as_dir=.
2045 for ac_exec_ext in '' $ac_executable_extensions; do
2046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2047 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2058 if test -n "$CC"; then
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2060 $as_echo "$CC" >&6; }
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2063 $as_echo "no" >&6; }
2068 if test -z "$ac_cv_prog_CC"; then
2070 # Extract the first word of "gcc", so it can be a program name with args.
2071 set dummy gcc; ac_word=$2
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2073 $as_echo_n "checking for $ac_word... " >&6; }
2074 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2075 $as_echo_n "(cached) " >&6
2077 if test -n "$ac_ct_CC"; then
2078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 test -z "$as_dir" && as_dir=.
2085 for ac_exec_ext in '' $ac_executable_extensions; do
2086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2087 ac_cv_prog_ac_ct_CC="gcc"
2088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2098 if test -n "$ac_ct_CC"; then
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2100 $as_echo "$ac_ct_CC" >&6; }
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2103 $as_echo "no" >&6; }
2106 if test "x$ac_ct_CC" = x; then
2109 case $cross_compiling:$ac_tool_warned in
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2113 ac_tool_warned=yes ;;
2121 if test -z "$CC"; then
2122 if test -n "$ac_tool_prefix"; then
2123 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2124 set dummy ${ac_tool_prefix}cc; ac_word=$2
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2126 $as_echo_n "checking for $ac_word... " >&6; }
2127 if test "${ac_cv_prog_CC+set}" = set; then :
2128 $as_echo_n "(cached) " >&6
2130 if test -n "$CC"; then
2131 ac_cv_prog_CC="$CC" # Let the user override the test.
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 test -z "$as_dir" && as_dir=.
2138 for ac_exec_ext in '' $ac_executable_extensions; do
2139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2140 ac_cv_prog_CC="${ac_tool_prefix}cc"
2141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2151 if test -n "$CC"; then
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2153 $as_echo "$CC" >&6; }
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2156 $as_echo "no" >&6; }
2162 if test -z "$CC"; then
2163 # Extract the first word of "cc", so it can be a program name with args.
2164 set dummy cc; ac_word=$2
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2166 $as_echo_n "checking for $ac_word... " >&6; }
2167 if test "${ac_cv_prog_CC+set}" = set; then :
2168 $as_echo_n "(cached) " >&6
2170 if test -n "$CC"; then
2171 ac_cv_prog_CC="$CC" # Let the user override the test.
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 test -z "$as_dir" && as_dir=.
2179 for ac_exec_ext in '' $ac_executable_extensions; do
2180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2181 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2182 ac_prog_rejected=yes
2186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 if test $ac_prog_rejected = yes; then
2194 # We found a bogon in the path, so make sure we never use it.
2195 set dummy $ac_cv_prog_CC
2197 if test $# != 0; then
2198 # We chose a different compiler from the bogus one.
2199 # However, it has the same basename, so the bogon will be chosen
2200 # first if we set CC to just the basename; use the full file name.
2202 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2208 if test -n "$CC"; then
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2210 $as_echo "$CC" >&6; }
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2213 $as_echo "no" >&6; }
2218 if test -z "$CC"; then
2219 if test -n "$ac_tool_prefix"; then
2220 for ac_prog in cl.exe
2222 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2223 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2225 $as_echo_n "checking for $ac_word... " >&6; }
2226 if test "${ac_cv_prog_CC+set}" = set; then :
2227 $as_echo_n "(cached) " >&6
2229 if test -n "$CC"; then
2230 ac_cv_prog_CC="$CC" # Let the user override the test.
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 test -z "$as_dir" && as_dir=.
2237 for ac_exec_ext in '' $ac_executable_extensions; do
2238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2239 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 if test -n "$CC"; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2252 $as_echo "$CC" >&6; }
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2255 $as_echo "no" >&6; }
2259 test -n "$CC" && break
2262 if test -z "$CC"; then
2264 for ac_prog in cl.exe
2266 # Extract the first word of "$ac_prog", so it can be a program name with args.
2267 set dummy $ac_prog; ac_word=$2
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2269 $as_echo_n "checking for $ac_word... " >&6; }
2270 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2271 $as_echo_n "(cached) " >&6
2273 if test -n "$ac_ct_CC"; then
2274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2283 ac_cv_prog_ac_ct_CC="$ac_prog"
2284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2294 if test -n "$ac_ct_CC"; then
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2296 $as_echo "$ac_ct_CC" >&6; }
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2299 $as_echo "no" >&6; }
2303 test -n "$ac_ct_CC" && break
2306 if test "x$ac_ct_CC" = x; then
2309 case $cross_compiling:$ac_tool_warned in
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2313 ac_tool_warned=yes ;;
2322 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2324 as_fn_error "no acceptable C compiler found
in \
$PATH
2325 See \
`config.log' for more details." "$LINENO" 5; }
2327 # Provide some information about the compiler.
2328 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2331 for ac_option in --version -v -V -qversion; do
2332 { { ac_try="$ac_compiler $ac_option >&5"
2334 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2335 *) ac_try_echo
=$ac_try;;
2337 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2338 $as_echo "$ac_try_echo"; } >&5
2339 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2341 if test -s conftest.err
; then
2343 ... rest of stderr output deleted ...
2344 10q' conftest.err
>conftest.er1
2345 cat conftest.er1
>&5
2346 rm -f conftest.er1 conftest.err
2348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2349 test $ac_status = 0; }
2352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h. */
2358 FILE *f = fopen ("conftest.out", "w");
2359 return ferror (f) || fclose (f) != 0;
2365 ac_clean_files_save
=$ac_clean_files
2366 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2367 # Try to create an executable without -o first, disregard a.out.
2368 # It will help us diagnose broken compilers, and finding out an intuition
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2371 $as_echo_n "checking for C compiler default output file name... " >&6; }
2372 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2374 # The possible output files:
2375 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2378 for ac_file
in $ac_files
2381 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2382 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2387 if { { ac_try
="$ac_link_default"
2389 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2393 $as_echo "$ac_try_echo"; } >&5
2394 (eval "$ac_link_default") 2>&5
2396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2397 test $ac_status = 0; }; then :
2398 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2399 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2400 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2401 # so that the user can short-circuit this test for compilers unknown to
2403 for ac_file in $ac_files ''
2405 test -f "$ac_file" || continue
2407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2410 # We found the default executable, but exeext='' is most
2414 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2416 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2418 # We set ac_cv_exeext here because the later test for it is not
2419 # safe: cross compilers may not add the suffix if given an `-o'
2420 # argument, so we may need to know it at that point already.
2421 # Even if this section looks crufty: it has the advantage of
2428 test "$ac_cv_exeext" = no && ac_cv_exeext=
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2434 $as_echo "$ac_file" >&6; }
2435 if test -z "$ac_file"; then :
2436 $as_echo "$as_me: failed program was:" >&5
2437 sed 's
/^
/|
/' conftest.$ac_ext >&5
2439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2440 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2441 { as_fn_set_status 77
2442 as_fn_error "C compiler cannot create executables
2443 See \`config.log
' for more details." "$LINENO" 5; }; }
2445 ac_exeext=$ac_cv_exeext
2447 # Check that the compiler produces executables we can run. If not, either
2448 # the compiler is broken, or we cross compile.
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2450 $as_echo_n "checking whether the C compiler works... " >&6; }
2451 # If not cross compiling, check that we can run a simple program.
2452 if test "$cross_compiling" != yes; then
2453 if { ac_try='.
/$ac_file'
2454 { { case "(($ac_try" in
2455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456 *) ac_try_echo=$ac_try;;
2458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2459 $as_echo "$ac_try_echo"; } >&5
2460 (eval "$ac_try") 2>&5
2462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2463 test $ac_status = 0; }; }; then
2466 if test "$cross_compiling" = maybe; then
2469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2470 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2471 as_fn_error "cannot run C compiled programs.
2472 If you meant to cross compile, use \`--host'.
2473 See \`config.log' for more details.
" "$LINENO" 5; }
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
2478 $as_echo "yes" >&6; }
2480 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2481 ac_clean_files=$ac_clean_files_save
2482 # Check that the compiler produces executables we can run. If not, either
2483 # the compiler is broken, or we cross compile.
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
2485 $as_echo_n "checking whether we are cross compiling...
" >&6; }
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
2487 $as_echo "$cross_compiling" >&6; }
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
2490 $as_echo_n "checking
for suffix of executables...
" >&6; }
2491 if { { ac_try="$ac_link"
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2496 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2497 $as_echo "$ac_try_echo"; } >&5
2498 (eval "$ac_link") 2>&5
2500 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
2501 test $ac_status = 0; }; then :
2502 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2503 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2504 # work properly (i.e., refer to `conftest.exe'), while it won't with
2506 for ac_file in conftest.exe conftest conftest.*; do
2507 test -f "$ac_file" || continue
2509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2510 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2518 as_fn_error "cannot compute suffix of executables: cannot compile and link
2519 See \`config.log' for more details.
" "$LINENO" 5; }
2521 rm -f conftest$ac_cv_exeext
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
2523 $as_echo "$ac_cv_exeext" >&6; }
2525 rm -f conftest.$ac_ext
2526 EXEEXT=$ac_cv_exeext
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
2529 $as_echo_n "checking
for suffix of object files...
" >&6; }
2530 if test "${ac_cv_objext+set}" = set; then :
2531 $as_echo_n "(cached
) " >&6
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2544 rm -f conftest.o conftest.obj
2545 if { { ac_try="$ac_compile"
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2550 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2551 $as_echo "$ac_try_echo"; } >&5
2552 (eval "$ac_compile") 2>&5
2554 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
2555 test $ac_status = 0; }; then :
2556 for ac_file in conftest.o conftest.obj conftest.*; do
2557 test -f "$ac_file" || continue;
2559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2560 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2565 $as_echo "$as_me: failed program was
:" >&5
2566 sed 's/^/| /' conftest.$ac_ext >&5
2568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2570 as_fn_error "cannot compute suffix of object files: cannot compile
2571 See \`config.log' for more details.
" "$LINENO" 5; }
2573 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
2576 $as_echo "$ac_cv_objext" >&6; }
2577 OBJEXT=$ac_cv_objext
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
2580 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
2581 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2582 $as_echo_n "(cached
) " >&6
2584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585 /* end confdefs.h. */
2598 if ac_fn_c_try_compile "$LINENO"; then :
2603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
2608 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2609 if test $ac_compiler_gnu = yes; then
2614 ac_test_CFLAGS=${CFLAGS+set}
2615 ac_save_CFLAGS=$CFLAGS
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
2617 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
2618 if test "${ac_cv_prog_cc_g+set}" = set; then :
2619 $as_echo_n "(cached
) " >&6
2621 ac_save_c_werror_flag=$ac_c_werror_flag
2622 ac_c_werror_flag=yes
2625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2626 /* end confdefs.h. */
2636 if ac_fn_c_try_compile "$LINENO"; then :
2640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2641 /* end confdefs.h. */
2651 if ac_fn_c_try_compile "$LINENO"; then :
2654 ac_c_werror_flag=$ac_save_c_werror_flag
2656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2657 /* end confdefs.h. */
2667 if ac_fn_c_try_compile "$LINENO"; then :
2670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2675 ac_c_werror_flag=$ac_save_c_werror_flag
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
2678 $as_echo "$ac_cv_prog_cc_g" >&6; }
2679 if test "$ac_test_CFLAGS" = set; then
2680 CFLAGS=$ac_save_CFLAGS
2681 elif test $ac_cv_prog_cc_g = yes; then
2682 if test "$GCC" = yes; then
2688 if test "$GCC" = yes; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
2695 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
2696 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2697 $as_echo_n "(cached
) " >&6
2699 ac_cv_prog_cc_c89=no
2701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2702 /* end confdefs.h. */
2705 #include <sys/types.h>
2706 #include <sys/stat.h>
2707 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2708 struct buf { int x; };
2709 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2710 static char *e (p, i)
2716 static char *f (char * (*g) (char **, int), char **p, ...)
2721 s = g (p, va_arg (v,int));
2726 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2727 function prototypes and stuff, but not '\xHH' hex character constants.
2728 These don't provoke an error unfortunately, instead are silently treated
2729 as 'x'. The following induces an error, until -std is added to get
2730 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2731 array size at least. It's necessary to write '\x00'==0 to get something
2732 that's true only with -std. */
2733 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2735 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2736 inside strings and character constants. */
2738 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2740 int test (int i, double x);
2741 struct s1 {int (*f) (int a);};
2742 struct s2 {int (*f) (double a);};
2743 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2749 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2754 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2755 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2757 CC="$ac_save_CC $ac_arg"
2758 if ac_fn_c_try_compile "$LINENO"; then :
2759 ac_cv_prog_cc_c89=$ac_arg
2761 rm -f core conftest.err conftest.$ac_objext
2762 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
2764 rm -f conftest.$ac_ext
2769 case "x
$ac_cv_prog_cc_c89" in
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
2772 $as_echo "none needed
" >&6; } ;;
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
2775 $as_echo "unsupported
" >&6; } ;;
2777 CC="$CC $ac_cv_prog_cc_c89"
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
2779 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2781 if test "x
$ac_cv_prog_cc_c89" != xno; then :
2786 ac_cpp='$CPP $CPPFLAGS'
2787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2792 ac_cpp='$CXXCPP $CPPFLAGS'
2793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2796 if test -z "$CXX"; then
2797 if test -n "$CCC"; then
2800 if test -n "$ac_tool_prefix"; then
2801 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
2806 $as_echo_n "checking
for $ac_word...
" >&6; }
2807 if test "${ac_cv_prog_CXX+set}" = set; then :
2808 $as_echo_n "(cached
) " >&6
2810 if test -n "$CXX"; then
2811 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2820 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2821 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
2831 if test -n "$CXX"; then
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX" >&5
2833 $as_echo "$CXX" >&6; }
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
2836 $as_echo "no
" >&6; }
2840 test -n "$CXX" && break
2843 if test -z "$CXX"; then
2845 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2847 # Extract the first word of "$ac_prog", so it can be a program name with args.
2848 set dummy $ac_prog; ac_word=$2
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
2850 $as_echo_n "checking
for $ac_word...
" >&6; }
2851 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2852 $as_echo_n "(cached
) " >&6
2854 if test -n "$ac_ct_CXX"; then
2855 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864 ac_cv_prog_ac_ct_CXX="$ac_prog"
2865 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
2874 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2875 if test -n "$ac_ct_CXX"; then
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_CXX" >&5
2877 $as_echo "$ac_ct_CXX" >&6; }
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
2880 $as_echo "no
" >&6; }
2884 test -n "$ac_ct_CXX" && break
2887 if test "x
$ac_ct_CXX" = x; then
2890 case $cross_compiling:$ac_tool_warned in
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2893 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2894 ac_tool_warned=yes ;;
2902 # Provide some information about the compiler.
2903 $as_echo "$as_me:${as_lineno-$LINENO}: checking
for C
++ compiler version
" >&5
2906 for ac_option in --version -v -V -qversion; do
2907 { { ac_try="$ac_compiler $ac_option >&5"
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2912 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2913 $as_echo "$ac_try_echo"; } >&5
2914 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2916 if test -s conftest.err; then
2918 ... rest of stderr output deleted ...
2919 10q' conftest.err >conftest.er1
2920 cat conftest.er1 >&5
2921 rm -f conftest.er1 conftest.err
2923 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
2924 test $ac_status = 0; }
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C
++ compiler
" >&5
2928 $as_echo_n "checking whether we are using the GNU C
++ compiler...
" >&6; }
2929 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
2930 $as_echo_n "(cached
) " >&6
2932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2933 /* end confdefs.h. */
2946 if ac_fn_cxx_try_compile "$LINENO"; then :
2951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2952 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_cxx_compiler_gnu" >&5
2956 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2957 if test $ac_compiler_gnu = yes; then
2962 ac_test_CXXFLAGS=${CXXFLAGS+set}
2963 ac_save_CXXFLAGS=$CXXFLAGS
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX accepts
-g" >&5
2965 $as_echo_n "checking whether
$CXX accepts
-g...
" >&6; }
2966 if test "${ac_cv_prog_cxx_g+set}" = set; then :
2967 $as_echo_n "(cached
) " >&6
2969 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2970 ac_cxx_werror_flag=yes
2973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2974 /* end confdefs.h. */
2984 if ac_fn_cxx_try_compile "$LINENO"; then :
2985 ac_cv_prog_cxx_g=yes
2988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2989 /* end confdefs.h. */
2999 if ac_fn_cxx_try_compile "$LINENO"; then :
3002 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005 /* end confdefs.h. */
3015 if ac_fn_cxx_try_compile "$LINENO"; then :
3016 ac_cv_prog_cxx_g=yes
3018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3023 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cxx_g" >&5
3026 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3027 if test "$ac_test_CXXFLAGS" = set; then
3028 CXXFLAGS=$ac_save_CXXFLAGS
3029 elif test $ac_cv_prog_cxx_g = yes; then
3030 if test "$GXX" = yes; then
3036 if test "$GXX" = yes; then
3043 ac_cpp='$CPP $CPPFLAGS'
3044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3048 if test -n "$ac_tool_prefix"; then
3049 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3050 set dummy ${ac_tool_prefix}ar; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3052 $as_echo_n "checking
for $ac_word...
" >&6; }
3053 if test "${ac_cv_prog_AR+set}" = set; then :
3054 $as_echo_n "(cached
) " >&6
3056 if test -n "$AR"; then
3057 ac_cv_prog_AR="$AR" # Let the user override the test.
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066 ac_cv_prog_AR="${ac_tool_prefix}ar"
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3077 if test -n "$AR"; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
3079 $as_echo "$AR" >&6; }
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3082 $as_echo "no
" >&6; }
3087 if test -z "$ac_cv_prog_AR"; then
3089 # Extract the first word of "ar", so it can be a program name with args.
3090 set dummy ar; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3092 $as_echo_n "checking
for $ac_word...
" >&6; }
3093 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3094 $as_echo_n "(cached
) " >&6
3096 if test -n "$ac_ct_AR"; then
3097 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106 ac_cv_prog_ac_ct_AR="ar"
3107 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3116 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3117 if test -n "$ac_ct_AR"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
3119 $as_echo "$ac_ct_AR" >&6; }
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3122 $as_echo "no
" >&6; }
3125 if test "x
$ac_ct_AR" = x; then
3128 case $cross_compiling:$ac_tool_warned in
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3131 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3132 ac_tool_warned=yes ;;
3140 if test -n "$ac_tool_prefix"; then
3141 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
3142 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3144 $as_echo_n "checking
for $ac_word...
" >&6; }
3145 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3146 $as_echo_n "(cached
) " >&6
3148 if test -n "$RANLIB"; then
3149 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 test -z "$as_dir" && as_dir=.
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3158 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
3159 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3168 RANLIB=$ac_cv_prog_RANLIB
3169 if test -n "$RANLIB"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
3171 $as_echo "$RANLIB" >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3174 $as_echo "no
" >&6; }
3179 if test -z "$ac_cv_prog_RANLIB"; then
3180 ac_ct_RANLIB=$RANLIB
3181 # Extract the first word of "ranlib
", so it can be a program name with args.
3182 set dummy ranlib; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3184 $as_echo_n "checking
for $ac_word...
" >&6; }
3185 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3186 $as_echo_n "(cached
) " >&6
3188 if test -n "$ac_ct_RANLIB"; then
3189 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198 ac_cv_prog_ac_ct_RANLIB="ranlib
"
3199 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3208 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3209 if test -n "$ac_ct_RANLIB"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
3211 $as_echo "$ac_ct_RANLIB" >&6; }
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3214 $as_echo "no
" >&6; }
3217 if test "x
$ac_ct_RANLIB" = x; then
3220 case $cross_compiling:$ac_tool_warned in
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3223 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3224 ac_tool_warned=yes ;;
3226 RANLIB=$ac_ct_RANLIB
3229 RANLIB="$ac_cv_prog_RANLIB"
3233 #-------------------------------------------------------------------------
3234 # MCPPBS specific program checks
3235 #-------------------------------------------------------------------------
3236 # These macros check to see if we can do a stow-based install and also
3237 # check for an isa simulator suitable for running the unit test programs
3240 # Find a good install program. We prefer a C program (faster),
3241 # so one script is as good as another. But avoid the broken or
3242 # incompatible versions:
3243 # SysV /etc/install, /usr/sbin/install
3244 # SunOS /usr/etc/install
3245 # IRIX /sbin/install
3247 # AmigaOS /C/install, which installs bootblocks on floppy discs
3248 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3249 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3250 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
3251 # OS/2's system install, which has a completely different semantic
3252 # ./install, which can be erroneously created by make from ./install.sh.
3253 # Reject install programs that cannot install multiple files.
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a BSD-compatible
install" >&5
3255 $as_echo_n "checking
for a BSD-compatible
install...
" >&6; }
3256 if test -z "$INSTALL"; then
3257 if test "${ac_cv_path_install+set}" = set; then :
3258 $as_echo_n "(cached
) " >&6
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 test -z "$as_dir" && as_dir=.
3265 # Account for people who put trailing slashes in PATH elements.
3266 case $as_dir/ in #((
3267 ./ | .// | /[cC]/* | \
3268 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3269 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3272 # OSF1 and SCO ODT 3.0 have their own names for install.
3273 # Don't use installbsd from OSF since it installs stuff as root
3275 for ac_prog in ginstall scoinst install; do
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3278 if test $ac_prog = install &&
3279 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3280 # AIX install. It has an incompatible calling convention.
3282 elif test $ac_prog = install &&
3283 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3284 # program-specific install script used by HP pwplus--don't use.
3287 rm -rf conftest.one conftest.two conftest.dir
3288 echo one > conftest.one
3289 echo two > conftest.two
3291 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir
" &&
3292 test -s conftest.one && test -s conftest.two &&
3293 test -s conftest.dir/conftest.one &&
3294 test -s conftest.dir/conftest.two
3296 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3309 rm -rf conftest.one conftest.two conftest.dir
3312 if test "${ac_cv_path_install+set}" = set; then
3313 INSTALL=$ac_cv_path_install
3315 # As a last resort, use the slow shell script. Don't cache a
3316 # value for INSTALL within a source directory, because that will
3317 # break other packages using the cache if that directory is
3318 # removed, or if the value is a relative name.
3319 INSTALL=$ac_install_sh
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $INSTALL" >&5
3323 $as_echo "$INSTALL" >&6; }
3325 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3326 # It thinks the first close brace ends the variable substitution.
3327 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3329 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3331 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3335 # Configure command line option
3337 # Check whether --enable-stow was given.
3338 if test "${enable_stow+set}" = set; then :
3339 enableval=$enable_stow; enable_stow="yes"
3347 # Environment variables
3352 # Check for install script
3356 # Deterimine if native build and set prefix appropriately
3358 if test ${enable_stow} = "yes" ; then :
3362 # Extract the first word of "$ac_prog", so it can be a program name with args.
3363 set dummy $ac_prog; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3365 $as_echo_n "checking
for $ac_word...
" >&6; }
3366 if test "${ac_cv_prog_stow+set}" = set; then :
3367 $as_echo_n "(cached
) " >&6
3369 if test -n "$stow"; then
3370 ac_cv_prog_stow="$stow" # Let the user override the test.
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379 ac_cv_prog_stow="$ac_prog"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3389 stow=$ac_cv_prog_stow
3390 if test -n "$stow"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $stow" >&5
3392 $as_echo "$stow" >&6; }
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3395 $as_echo "no
" >&6; }
3399 test -n "$stow" && break
3401 test -n "$stow" || stow="no
"
3403 if test ${stow} = "no
" ; then :
3405 as_fn_error "Cannot use
--enable-stow since stow is not available
" "$LINENO" 5
3409 # Check if native or non-native build
3411 if test "${build}" = "${host}" ; then :
3414 # build == host so this is a native build. Make sure --prefix not
3415 # set and $STOW_PREFIX is set, then set prefix=$STOW_PREFIX.
3417 if test "${prefix}" = "NONE
" && test -n "${STOW_PREFIX}" ; then :
3419 prefix="${STOW_PREFIX}"
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \
$STOW_PREFIX from environment
" >&5
3421 $as_echo "$as_me: Using \
$STOW_PREFIX from environment
" >&6;}
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix
=${prefix}" >&5
3423 $as_echo "$as_me: prefix
=${prefix}" >&6;}
3431 # build != host so this is a non-native build. Make sure --prefix
3432 # not set and $STOW_ROOT is set, then set
3433 # prefix=$STOW_ROOT/${host_alias}.
3435 if test "${prefix}" = "NONE
" && test -n "${STOW_ROOT}" ; then :
3437 prefix="${STOW_ROOT}/${host_alias}"
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \
$STOW_ROOT from environment
" >&5
3439 $as_echo "$as_me: Using \
$STOW_ROOT from environment
" >&6;}
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix
=${prefix}" >&5
3441 $as_echo "$as_me: prefix
=${prefix}" >&6;}
3453 if test "${build}" != "${host}" ; then :
3455 if test -n "$ac_tool_prefix"; then
3456 for ac_prog in isa-run run
3458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3461 $as_echo_n "checking
for $ac_word...
" >&6; }
3462 if test "${ac_cv_prog_RUN+set}" = set; then :
3463 $as_echo_n "(cached
) " >&6
3465 if test -n "$RUN"; then
3466 ac_cv_prog_RUN="$RUN" # Let the user override the test.
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3475 ac_cv_prog_RUN="$ac_tool_prefix$ac_prog"
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3486 if test -n "$RUN"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUN" >&5
3488 $as_echo "$RUN" >&6; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3491 $as_echo "no
" >&6; }
3495 test -n "$RUN" && break
3498 if test -z "$RUN"; then
3500 for ac_prog in isa-run run
3502 # Extract the first word of "$ac_prog", so it can be a program name with args.
3503 set dummy $ac_prog; ac_word=$2
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3505 $as_echo_n "checking
for $ac_word...
" >&6; }
3506 if test "${ac_cv_prog_ac_ct_RUN+set}" = set; then :
3507 $as_echo_n "(cached
) " >&6
3509 if test -n "$ac_ct_RUN"; then
3510 ac_cv_prog_ac_ct_RUN="$ac_ct_RUN" # Let the user override the test.
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3519 ac_cv_prog_ac_ct_RUN="$ac_prog"
3520 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3529 ac_ct_RUN=$ac_cv_prog_ac_ct_RUN
3530 if test -n "$ac_ct_RUN"; then
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RUN" >&5
3532 $as_echo "$ac_ct_RUN" >&6; }
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3535 $as_echo "no
" >&6; }
3539 test -n "$ac_ct_RUN" && break
3542 if test "x
$ac_ct_RUN" = x; then
3545 case $cross_compiling:$ac_tool_warned in
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3548 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3549 ac_tool_warned=yes ;;
3555 if test ${RUN} = "no
" ; then :
3557 as_fn_error "Cannot
find simulator
for target
${target_alias}" "$LINENO" 5
3570 #-------------------------------------------------------------------------
3571 # Checks for header files
3572 #-------------------------------------------------------------------------
3576 ac_cpp='$CPP $CPPFLAGS'
3577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3581 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3582 # On Suns, sometimes $CPP names a directory.
3583 if test -n "$CPP" && test -d "$CPP"; then
3586 if test -z "$CPP"; then
3587 if test "${ac_cv_prog_CPP+set}" = set; then :
3588 $as_echo_n "(cached
) " >&6
3590 # Double quotes because CPP needs to be expanded
3591 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3594 for ac_c_preproc_warn_flag in '' yes
3596 # Use a header file that comes with gcc, so configuring glibc
3597 # with a fresh cross-compiler works.
3598 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3599 # <limits.h> exists even on freestanding compilers.
3600 # On the NeXT, cc -E runs the code through the compiler's parser,
3601 # not just through cpp. "Syntax error
" is here to catch this case.
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3605 # include <limits.h>
3607 # include <assert.h>
3611 if ac_fn_c_try_cpp "$LINENO"; then :
3614 # Broken: fails on valid input.
3617 rm -f conftest.err conftest.$ac_ext
3619 # OK, works on sane cases. Now check whether nonexistent headers
3620 # can be detected and how.
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3623 #include <ac_nonexistent.h>
3625 if ac_fn_c_try_cpp "$LINENO"; then :
3626 # Broken: success on invalid input.
3629 # Passes both tests.
3633 rm -f conftest.err conftest.$ac_ext
3636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3637 rm -f conftest.err conftest.$ac_ext
3638 if $ac_preproc_ok; then :
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3651 $as_echo "$CPP" >&6; }
3653 for ac_c_preproc_warn_flag in '' yes
3655 # Use a header file that comes with gcc, so configuring glibc
3656 # with a fresh cross-compiler works.
3657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3658 # <limits.h> exists even on freestanding compilers.
3659 # On the NeXT, cc -E runs the code through the compiler's parser,
3660 # not just through cpp. "Syntax error
" is here to catch this case.
3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662 /* end confdefs.h. */
3664 # include <limits.h>
3666 # include <assert.h>
3670 if ac_fn_c_try_cpp "$LINENO"; then :
3673 # Broken: fails on valid input.
3676 rm -f conftest.err conftest.$ac_ext
3678 # OK, works on sane cases. Now check whether nonexistent headers
3679 # can be detected and how.
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3682 #include <ac_nonexistent.h>
3684 if ac_fn_c_try_cpp "$LINENO"; then :
3685 # Broken: success on invalid input.
3688 # Passes both tests.
3692 rm -f conftest.err conftest.$ac_ext
3695 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3696 rm -f conftest.err conftest.$ac_ext
3697 if $ac_preproc_ok; then :
3700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3703 See \`config.log' for more details.
" "$LINENO" 5; }
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3714 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3715 if test "${ac_cv_path_GREP+set}" = set; then :
3716 $as_echo_n "(cached
) " >&6
3718 if test -z "$GREP"; then
3719 ac_path_GREP_found=false
3720 # Loop through the user's path and test for each of PROGNAME-LIST
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3725 test -z "$as_dir" && as_dir=.
3726 for ac_prog in grep ggrep; do
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3729 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3730 # Check for GNU ac_path_GREP and select it if it is found.
3731 # Check for GNU $ac_path_GREP
3732 case `"$ac_path_GREP" --version 2>&1` in
3734 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3737 $as_echo_n 0123456789 >"conftest.
in"
3740 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3741 mv "conftest.tmp
" "conftest.
in"
3742 cp "conftest.
in" "conftest.
nl"
3743 $as_echo 'GREP' >> "conftest.
nl"
3744 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3745 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3746 as_fn_arith $ac_count + 1 && ac_count=$as_val
3747 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3748 # Best one so far, save it but keep looking for a better one
3749 ac_cv_path_GREP="$ac_path_GREP"
3750 ac_path_GREP_max=$ac_count
3752 # 10*(2^10) chars as input seems more than enough
3753 test $ac_count -gt 10 && break
3755 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3758 $ac_path_GREP_found && break 3
3763 if test -z "$ac_cv_path_GREP"; then
3764 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3767 ac_cv_path_GREP=$GREP
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3772 $as_echo "$ac_cv_path_GREP" >&6; }
3773 GREP="$ac_cv_path_GREP"
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3777 $as_echo_n "checking
for egrep...
" >&6; }
3778 if test "${ac_cv_path_EGREP+set}" = set; then :
3779 $as_echo_n "(cached
) " >&6
3781 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3782 then ac_cv_path_EGREP="$GREP -E"
3784 if test -z "$EGREP"; then
3785 ac_path_EGREP_found=false
3786 # Loop through the user's path and test for each of PROGNAME-LIST
3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3791 test -z "$as_dir" && as_dir=.
3792 for ac_prog in egrep; do
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3795 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3796 # Check for GNU ac_path_EGREP and select it if it is found.
3797 # Check for GNU $ac_path_EGREP
3798 case `"$ac_path_EGREP" --version 2>&1` in
3800 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3803 $as_echo_n 0123456789 >"conftest.
in"
3806 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3807 mv "conftest.tmp
" "conftest.
in"
3808 cp "conftest.
in" "conftest.
nl"
3809 $as_echo 'EGREP' >> "conftest.
nl"
3810 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3811 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3812 as_fn_arith $ac_count + 1 && ac_count=$as_val
3813 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3814 # Best one so far, save it but keep looking for a better one
3815 ac_cv_path_EGREP="$ac_path_EGREP"
3816 ac_path_EGREP_max=$ac_count
3818 # 10*(2^10) chars as input seems more than enough
3819 test $ac_count -gt 10 && break
3821 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3824 $ac_path_EGREP_found && break 3
3829 if test -z "$ac_cv_path_EGREP"; then
3830 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3833 ac_cv_path_EGREP=$EGREP
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3839 $as_echo "$ac_cv_path_EGREP" >&6; }
3840 EGREP="$ac_cv_path_EGREP"
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3844 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3845 if test "${ac_cv_header_stdc+set}" = set; then :
3846 $as_echo_n "(cached
) " >&6
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3863 if ac_fn_c_try_compile "$LINENO"; then :
3864 ac_cv_header_stdc=yes
3866 ac_cv_header_stdc=no
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870 if test $ac_cv_header_stdc = yes; then
3871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3877 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3878 $EGREP "memchr
" >/dev/null 2>&1; then :
3881 ac_cv_header_stdc=no
3887 if test $ac_cv_header_stdc = yes; then
3888 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3894 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3895 $EGREP "free
" >/dev/null 2>&1; then :
3898 ac_cv_header_stdc=no
3904 if test $ac_cv_header_stdc = yes; then
3905 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3906 if test "$cross_compiling" = yes; then :
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3913 #if ((' ' & 0x0FF) == 0x020)
3914 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3915 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3917 # define ISLOWER(c) \
3918 (('a' <= (c) && (c) <= 'i') \
3919 || ('j' <= (c) && (c) <= 'r') \
3920 || ('s' <= (c) && (c) <= 'z'))
3921 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3924 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3929 for (i = 0; i < 256; i++)
3930 if (XOR (islower (i), ISLOWER (i))
3931 || toupper (i) != TOUPPER (i))
3936 if ac_fn_c_try_run "$LINENO"; then :
3939 ac_cv_header_stdc=no
3941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3942 conftest.$ac_objext conftest.beam conftest.$ac_ext
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3948 $as_echo "$ac_cv_header_stdc" >&6; }
3949 if test $ac_cv_header_stdc = yes; then
3951 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3956 #-------------------------------------------------------------------------
3957 # Default compiler flags
3958 #-------------------------------------------------------------------------
3962 CXXFLAGS
="-Wall -O2 -Wno-pmf-conversions"
3965 #-------------------------------------------------------------------------
3966 # MCPPBS subproject list
3967 #-------------------------------------------------------------------------
3968 # Order list so that subprojects only depend on those listed earlier.
3969 # The '*' suffix indicates an optional subproject. The '**' suffix
3970 # indicates an optional subproject which is also the name of a group.
3974 # Add command line argument to enable all optional subprojects
3976 # Check whether --enable-optional-subprojects was given.
3977 if test "${enable_optional_subprojects+set}" = set; then :
3978 enableval
=$enable_optional_subprojects;
3982 # Loop through the subprojects given in the macro argument
3986 # Determine if this is a required or an optional subproject
3990 # Determine if there is a group with the same name
3994 # Create variations of the subproject name suitable for use as a CPP
3995 # enabled define, a shell enabled variable, and a shell function
4007 # Add subproject to our running list
4009 subprojects
="$subprojects riscv"
4011 # Process the subproject appropriately. If enabled add it to the
4012 # $enabled_subprojects running shell variable, set a
4013 # SUBPROJECT_ENABLED C define, and include the appropriate
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : riscv" >&5
4018 $as_echo "$as_me: configuring default subproject : riscv" >&6;}
4019 ac_config_files
="$ac_config_files riscv.mk:riscv/riscv.mk.in"
4021 enable_riscv_sproj
="yes"
4022 subprojects_enabled
="$subprojects_enabled riscv"
4024 $as_echo "#define RISCV_ENABLED /**/" >>confdefs.h
4026 # Check whether --enable-fpu was given.
4027 if test "${enable_fpu+set}" = set; then :
4028 enableval
=$enable_fpu;
4031 if test "x$enable_fpu" != "xno"; then :
4034 $as_echo "#define RISCV_ENABLE_FPU /**/" >>confdefs.h
4039 # Check whether --enable-64bit was given.
4040 if test "${enable_64bit+set}" = set; then :
4041 enableval
=$enable_64bit;
4044 if test "x$enable_64bit" != "xno"; then :
4047 $as_echo "#define RISCV_ENABLE_64BIT /**/" >>confdefs.h
4052 # Check whether --enable-rvc was given.
4053 if test "${enable_rvc+set}" = set; then :
4054 enableval
=$enable_rvc;
4057 if test "x$enable_rvc" = "xyes"; then :
4060 $as_echo "#define RISCV_ENABLE_RVC /**/" >>confdefs.h
4065 # Check whether --enable-vec was given.
4066 if test "${enable_vec+set}" = set; then :
4067 enableval
=$enable_vec;
4070 if test "x$enable_vec" != "xno"; then :
4073 $as_echo "#define RISCV_ENABLE_VEC /**/" >>confdefs.h
4078 libopc
=`dirname \`which riscv-gcc\
``/..
/`$ac_config_guess`/riscv
/lib
/libopcodes.a
4079 as_ac_File
=`$as_echo "ac_cv_file_$libopc" | $as_tr_sh`
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $libopc" >&5
4081 $as_echo_n "checking for $libopc... " >&6; }
4082 if { as_var
=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
4083 $as_echo_n "(cached) " >&6
4085 test "$cross_compiling" = yes &&
4086 as_fn_error
"cannot check for file existence when cross compiling" "$LINENO" 5
4087 if test -r "$libopc"; then
4088 eval "$as_ac_File=yes"
4090 eval "$as_ac_File=no"
4093 eval ac_res
=\$
$as_ac_File
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4095 $as_echo "$ac_res" >&6; }
4096 eval as_val
=\$
$as_ac_File
4097 if test "x$as_val" = x
""yes; then :
4099 cat >>confdefs.h
<<_ACEOF
4100 #define `$as_echo "HAVE_$libopc" | $as_tr_cpp` 1
4102 have_libopcodes
="yes"
4104 have_libopcodes
="no"
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bfd_init" >&5
4109 $as_echo_n "checking for library containing bfd_init... " >&6; }
4110 if test "${ac_cv_search_bfd_init+set}" = set; then :
4111 $as_echo_n "(cached) " >&6
4113 ac_func_search_save_LIBS
=$LIBS
4114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4117 /* Override any GCC internal prototype to avoid an error.
4118 Use char because int might match the return type of a GCC
4119 builtin and then its argument prototype would still apply. */
4132 for ac_lib
in '' bfd
; do
4133 if test -z "$ac_lib"; then
4134 ac_res
="none required"
4137 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4139 if ac_fn_c_try_link
"$LINENO"; then :
4140 ac_cv_search_bfd_init
=$ac_res
4142 rm -f core conftest.err conftest.
$ac_objext \
4144 if test "${ac_cv_search_bfd_init+set}" = set; then :
4148 if test "${ac_cv_search_bfd_init+set}" = set; then :
4151 ac_cv_search_bfd_init
=no
4154 LIBS
=$ac_func_search_save_LIBS
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bfd_init" >&5
4157 $as_echo "$ac_cv_search_bfd_init" >&6; }
4158 ac_res
=$ac_cv_search_bfd_init
4159 if test "$ac_res" != no
; then :
4160 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4163 have_libopcodes
="no"
4167 if test "$have_libopcodes" = "no"; then :
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find opcodes library" >&5
4170 $as_echo "$as_me: WARNING: Could not find opcodes library" >&2;}
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Build will not include disassembly support" >&5
4172 $as_echo "$as_me: WARNING: Build will not include disassembly support" >&2;}
4176 LIBS
="$libopc $LIBS"
4178 $as_echo "#define RISCV_HAVE_LIBOPCODES /**/" >>confdefs.h
4187 # Determine if this is a required or an optional subproject
4191 # Determine if there is a group with the same name
4195 # Create variations of the subproject name suitable for use as a CPP
4196 # enabled define, a shell enabled variable, and a shell function
4208 # Add subproject to our running list
4210 subprojects
="$subprojects softfloat"
4212 # Process the subproject appropriately. If enabled add it to the
4213 # $enabled_subprojects running shell variable, set a
4214 # SUBPROJECT_ENABLED C define, and include the appropriate
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : softfloat" >&5
4219 $as_echo "$as_me: configuring default subproject : softfloat" >&6;}
4220 ac_config_files
="$ac_config_files softfloat.mk:softfloat/softfloat.mk.in"
4222 enable_softfloat_sproj
="yes"
4223 subprojects_enabled
="$subprojects_enabled softfloat"
4225 $as_echo "#define SOFTFLOAT_ENABLED /**/" >>confdefs.h
4232 # Determine if this is a required or an optional subproject
4236 # Determine if there is a group with the same name
4240 # Create variations of the subproject name suitable for use as a CPP
4241 # enabled define, a shell enabled variable, and a shell function
4253 # Add subproject to our running list
4255 subprojects
="$subprojects softfloat_riscv"
4257 # Process the subproject appropriately. If enabled add it to the
4258 # $enabled_subprojects running shell variable, set a
4259 # SUBPROJECT_ENABLED C define, and include the appropriate
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : softfloat_riscv" >&5
4264 $as_echo "$as_me: configuring default subproject : softfloat_riscv" >&6;}
4265 ac_config_files
="$ac_config_files softfloat_riscv.mk:softfloat_riscv/softfloat_riscv.mk.in"
4267 enable_softfloat_riscv_sproj
="yes"
4268 subprojects_enabled
="$subprojects_enabled softfloat_riscv"
4270 $as_echo "#define SOFTFLOAT_RISCV_ENABLED /**/" >>confdefs.h
4277 # Output make variables
4284 #-------------------------------------------------------------------------
4285 # MCPPBS subproject groups
4286 #-------------------------------------------------------------------------
4287 # If a group has the same name as a subproject then you must add the
4288 # '**' suffix in the subproject list above. The list of subprojects in a
4289 # group should be ordered so that subprojets only depend on those listed
4290 # earlier. Here is an example:
4292 # MCPPBS_GROUP( [group-name], [sproja,sprojb,...] )
4295 #-------------------------------------------------------------------------
4297 #-------------------------------------------------------------------------
4299 ac_config_headers
="$ac_config_headers config.h"
4301 ac_config_files
="$ac_config_files Makefile"
4303 cat >confcache
<<\_ACEOF
4304 # This file is a shell script that caches the results of configure
4305 # tests run on this system so they can be shared between configure
4306 # scripts and configure runs, see configure's option --config-cache.
4307 # It is not useful on other systems. If it contains results you don't
4308 # want to keep, you may remove or edit it.
4310 # config.status only pays attention to the cache file if you give it
4311 # the --recheck option to rerun configure.
4313 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4314 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4319 # The following way of writing the cache mishandles newlines in values,
4320 # but we know of no workaround that is simple, portable, and efficient.
4321 # So, we kill variables containing newlines.
4322 # Ultrix sh set writes to stderr and can't be redirected directly,
4323 # and sets the high bit in the cache file unless we assign to the vars.
4325 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4326 eval ac_val
=\$
$ac_var
4330 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4331 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4334 _ | IFS | as_nl
) ;; #(
4335 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
4336 *) { eval $ac_var=; unset $ac_var;} ;;
4342 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4343 *${as_nl}ac_space
=\
*)
4344 # `set' does not quote correctly, so add quotes: double-quote
4345 # substitution turns \\\\ into \\, and sed turns \\ into \.
4348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4351 # `set' quotes correctly as required by POSIX, so do not add quotes.
4352 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4361 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4363 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4365 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
4366 if test -w "$cache_file"; then
4367 test "x$cache_file" != "x/dev/null" &&
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4369 $as_echo "$as_me: updating cache $cache_file" >&6;}
4370 cat confcache
>$cache_file
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4373 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4378 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4379 # Let make expand exec_prefix.
4380 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4382 DEFS
=-DHAVE_CONFIG_H
4386 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4387 # 1. Remove the extension, and $U if already installed.
4388 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
4389 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
4390 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4391 # will be set to the directory where LIBOBJS objects are built.
4392 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4393 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
4397 LTLIBOBJS
=$ac_ltlibobjs
4401 : ${CONFIG_STATUS=./config.status}
4403 ac_clean_files_save
=$ac_clean_files
4404 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4406 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4408 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4410 # Generated by $as_me.
4411 # Run this file to recreate the current configuration.
4412 # Compiler output produced by configure, useful for debugging
4413 # configure, is in config.log if it exists.
4419 SHELL=\${CONFIG_SHELL-$SHELL}
4422 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
4423 ## -------------------- ##
4424 ## M4sh Initialization. ##
4425 ## -------------------- ##
4427 # Be more Bourne compatible
4428 DUALCASE
=1; export DUALCASE
# for MKS sh
4429 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
4432 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4433 # is contrary to our usage. Disable this feature.
4434 alias -g '${1+"$@"}'='"$@"'
4435 setopt NO_GLOB_SUBST
4437 case `(set -o) 2>/dev/null` in #(
4449 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4450 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4451 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4452 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4453 # Prefer a ksh shell builtin over an external printf program on Solaris,
4454 # but without wasting forks for bash or zsh.
4455 if test -z "$BASH_VERSION$ZSH_VERSION" \
4456 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4457 as_echo='print
-r --'
4458 as_echo_n='print
-rn --'
4459 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4460 as_echo='printf %s
\n'
4461 as_echo_n='printf %s
'
4463 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4464 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
4465 as_echo_n='/usr
/ucb
/echo -n'
4467 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4468 as_echo_n_body='eval
4472 expr "X$arg" : "X\\(.*\\)$as_nl";
4473 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4475 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
4477 export as_echo_n_body
4478 as_echo_n='sh
-c $as_echo_n_body as_echo
'
4481 as_echo='sh
-c $as_echo_body as_echo
'
4484 # The user is always right.
4485 if test "${PATH_SEPARATOR+set}" != set; then
4487 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4488 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4495 # We need space, tab and new line, in precisely that order. Quoting is
4496 # there to prevent editors from complaining about space-tab.
4497 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4498 # splitting by setting IFS to empty value.)
4501 # Find who we are. Look in the path if we contain no directory separator.
4503 *[\\/]* ) as_myself=$0 ;;
4504 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 test -z "$as_dir" && as_dir=.
4509 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4515 # We did not find ourselves, most probably we were run as `sh COMMAND'
4516 # in which case we are not to be found in the path.
4517 if test "x$as_myself" = x
; then
4520 if test ! -f "$as_myself"; then
4521 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4525 # Unset variables that we do not need and which cause bugs (e.g. in
4526 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4527 # suppresses any "Segmentation fault" message there. '((' could
4528 # trigger a bug in pdksh 5.2.14.
4529 for as_var
in BASH_ENV ENV MAIL MAILPATH
4530 do eval test x\
${$as_var+set} = xset \
4531 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
4544 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
4547 # as_fn_error ERROR [LINENO LOG_FD]
4548 # ---------------------------------
4549 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4550 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4551 # script with status $?, using 1 if that was 0.
4554 as_status
=$?
; test $as_status -eq 0 && as_status
=1
4556 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
4557 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4559 $as_echo "$as_me: error: $1" >&2
4560 as_fn_exit
$as_status
4564 # as_fn_set_status STATUS
4565 # -----------------------
4566 # Set $? to STATUS, without forking.
4570 } # as_fn_set_status
4574 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4584 # Portably unset VAR.
4587 { eval $1=; unset $1;}
4589 as_unset
=as_fn_unset
4590 # as_fn_append VAR VALUE
4591 # ----------------------
4592 # Append the text in VALUE to the end of the definition contained in VAR. Take
4593 # advantage of any shell optimizations that allow amortized linear growth over
4594 # repeated appends, instead of the typical quadratic growth present in naive
4596 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
4597 eval 'as_fn_append ()
4608 # as_fn_arith ARG...
4609 # ------------------
4610 # Perform arithmetic evaluation on the ARGs, and store the result in the
4611 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4612 # must be portable across $(()) and expr.
4613 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
4614 eval 'as_fn_arith ()
4621 as_val
=`expr "$@" || test $? -eq 1`
4626 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
4627 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
4633 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4634 as_basename
=basename
4639 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
4645 as_me
=`$as_basename -- "$0" ||
4646 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4647 X"$0" : 'X\(//\)$' \| \
4648 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4650 sed '/^.*\/\([^/][^/]*\)\/*$/{
4664 # Avoid depending upon Character Ranges.
4665 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4666 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4667 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4668 as_cr_digits
='0123456789'
4669 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4671 ECHO_C
= ECHO_N
= ECHO_T
=
4672 case `echo -n x` in #(((((
4674 case `echo 'xy\c'` in
4675 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
4677 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
4684 rm -f conf$$ conf$$.exe conf$$.
file
4685 if test -d conf$$.dir
; then
4686 rm -f conf$$.dir
/conf$$.
file
4689 mkdir conf$$.dir
2>/dev
/null
4691 if (echo >conf$$.
file) 2>/dev
/null
; then
4692 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4694 # ... but there are two gotchas:
4695 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4696 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4697 # In both cases, we have to default to `cp -p'.
4698 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
4700 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4708 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
4709 rmdir conf$$.dir
2>/dev
/null
4714 # Create "$as_dir" as a directory, including parents if necessary.
4719 -*) as_dir
=.
/$as_dir;;
4721 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
4725 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4726 *) as_qdir
=$as_dir;;
4728 as_dirs
="'$as_qdir' $as_dirs"
4729 as_dir
=`$as_dirname -- "$as_dir" ||
4730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4731 X"$as_dir" : 'X\(//\)[^/]' \| \
4732 X"$as_dir" : 'X\(//\)$' \| \
4733 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4734 $as_echo X"$as_dir" |
4735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4752 test -d "$as_dir" && break
4754 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
4755 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
4759 if mkdir
-p .
2>/dev
/null
; then
4760 as_mkdir_p
='mkdir -p "$as_dir"'
4762 test -d .
/-p && rmdir .
/-p
4766 if test -x / >/dev
/null
2>&1; then
4769 if ls -dL / >/dev
/null
2>&1; then
4776 if test -d "$1"; then
4782 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4783 ???[sx]*):;;*)false;;esac;fi
4787 as_executable_p
=$as_test_x
4789 # Sed expression to map a string onto a valid CPP name.
4790 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4792 # Sed expression to map a string onto a valid variable name.
4793 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4797 ## ----------------------------------- ##
4798 ## Main body of $CONFIG_STATUS script. ##
4799 ## ----------------------------------- ##
4801 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
4803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4804 # Save the log message, to keep $0 and so on meaningful, and to
4805 # report actual input values of CONFIG_FILES etc. instead of their
4806 # values after options handling.
4808 This file was extended by RISC-V ISA Simulator $as_me ?, which was
4809 generated by GNU Autoconf 2.64. Invocation command line was
4811 CONFIG_FILES = $CONFIG_FILES
4812 CONFIG_HEADERS = $CONFIG_HEADERS
4813 CONFIG_LINKS = $CONFIG_LINKS
4814 CONFIG_COMMANDS = $CONFIG_COMMANDS
4817 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4822 case $ac_config_files in *"
4823 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
4826 case $ac_config_headers in *"
4827 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
4831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4832 # Files that config.status was made for.
4833 config_files="$ac_config_files"
4834 config_headers="$ac_config_headers"
4838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4840 \`$as_me' instantiates files and other configuration actions
4841 from templates according to the current configuration. Unless the files
4842 and actions are specified as TAGs, all are instantiated by default.
4844 Usage: $0 [OPTION]... [TAG]...
4846 -h, --help print this help, then exit
4847 -V, --version print version number and configuration settings, then exit
4848 -q, --quiet, --silent
4849 do not print progress messages
4850 -d, --debug don't remove temporary files
4851 --recheck update $as_me by reconfiguring in the same conditions
4852 --file=FILE[:TEMPLATE]
4853 instantiate the configuration file FILE
4854 --header=FILE[:TEMPLATE]
4855 instantiate the configuration header FILE
4857 Configuration files:
4860 Configuration headers:
4863 Report bugs to <Andrew Waterman>."
4866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4868 RISC-V ISA Simulator config.status ?
4869 configured by $0, generated by GNU Autoconf 2.64,
4870 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4872 Copyright (C) 2009 Free Software Foundation, Inc.
4873 This config.status script is free software; the Free Software Foundation
4874 gives unlimited permission to copy, distribute and modify it."
4879 test -n "\$AWK" || AWK=awk
4882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4883 # The default lists apply if the user does not specify any file.
4889 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
4890 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
4901 # Handling of the options.
4902 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
4904 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
4905 $as_echo "$ac_cs_version"; exit ;;
4906 --debug |
--debu |
--deb |
--de |
--d |
-d )
4908 --file |
--fil |
--fi |
--f )
4911 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4913 as_fn_append CONFIG_FILES
" '$ac_optarg'"
4914 ac_need_defaults
=false
;;
4915 --header |
--heade |
--head |
--hea )
4918 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4920 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
4921 ac_need_defaults
=false
;;
4923 # Conflict between --help and --header
4924 as_fn_error
"ambiguous option: \`$1'
4925 Try \`$0 --help' for more information.";;
4926 --help |
--hel |
-h )
4927 $as_echo "$ac_cs_usage"; exit ;;
4928 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
4929 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
4933 -*) as_fn_error
"unrecognized option: \`$1'
4934 Try \`$0 --help' for more information." ;;
4936 *) as_fn_append ac_config_targets
" $1"
4937 ac_need_defaults
=false
;;
4943 ac_configure_extra_args
=
4945 if $ac_cs_silent; then
4947 ac_configure_extra_args
="$ac_configure_extra_args --silent"
4951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4952 if \$ac_cs_recheck; then
4953 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4955 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4956 CONFIG_SHELL='$SHELL'
4962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4966 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4967 ## Running $as_me. ##
4973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4978 # Handling of arguments.
4979 for ac_config_target
in $ac_config_targets
4981 case $ac_config_target in
4982 "riscv.mk") CONFIG_FILES
="$CONFIG_FILES riscv.mk:riscv/riscv.mk.in" ;;
4983 "softfloat.mk") CONFIG_FILES
="$CONFIG_FILES softfloat.mk:softfloat/softfloat.mk.in" ;;
4984 "softfloat_riscv.mk") CONFIG_FILES
="$CONFIG_FILES softfloat_riscv.mk:softfloat_riscv/softfloat_riscv.mk.in" ;;
4985 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
4986 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
4988 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4993 # If the user did not use the arguments to specify the items to instantiate,
4994 # then the envvar interface is used. Set only those that are not.
4995 # We use the long form for the default assignment because of an extremely
4996 # bizarre bug on SunOS 4.1.3.
4997 if $ac_need_defaults; then
4998 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
4999 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5002 # Have a temporary directory for convenience. Make it in the build tree
5003 # simply because there is no reason against having it here, and in addition,
5004 # creating and moving files from /tmp can sometimes cause problems.
5005 # Hook for its removal unless debugging.
5006 # Note that there is a small window in which the directory will not be cleaned:
5007 # after its creation but before its name has been assigned to `$tmp'.
5011 trap 'exit_status=$?
5012 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5014 trap 'as_fn_exit 1' 1 2 13 15
5016 # Create a (secure) tmp directory for tmp files.
5019 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5020 test -n "$tmp" && test -d "$tmp"
5023 tmp
=.
/conf$$
-$RANDOM
5024 (umask 077 && mkdir
"$tmp")
5025 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
5027 # Set up the scripts for CONFIG_FILES section.
5028 # No need to generate them if there are no CONFIG_FILES.
5029 # This happens for instance with `./config.status config.h'.
5030 if test -n "$CONFIG_FILES"; then
5033 ac_cr
=`echo X | tr X '\015'`
5034 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5035 # But we know of no other shell where ac_cr would be empty at this
5036 # point, so we can use a bashism as a fallback.
5037 if test "x$ac_cr" = x
; then
5038 eval ac_cr
=\$
\'\\r
\'
5040 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5041 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5047 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5052 echo "cat >conf$$subs.awk <<_ACEOF" &&
5053 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5056 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
5057 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5059 for ac_last_try in false false false false false :; do
5060 . ./conf$$subs.sh ||
5061 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
5063 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
5064 if test $ac_delim_n = $ac_delim_num; then
5066 elif $ac_last_try; then
5067 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
5069 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5075 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
5079 s/^/S["/; s
/!.
*/"]=/
5089 s/\(.\{148\}\).*/\1/
5091 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
5096 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5103 s/\(.\{148\}\).*/\1/
5105 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5109 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5114 ' <conf$$subs.awk | sed '
5119 ' >>$CONFIG_STATUS || ac_write_fail=1
5120 rm -f conf$$subs.awk
5121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5123 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
5124 for (key in S) S_is_set[key] = 1
5130 nfields = split(line, field, "@
")
5132 len = length(field[1])
5133 for (i = 2; i < nfields; i++) {
5135 keylen = length(key)
5136 if (S_is_set[key]) {
5138 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5139 len += length(value) + length(field[++i])
5150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5151 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5152 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
5155 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
5156 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
5159 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5160 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
5161 # trailing colons and then remove the whole line if VPATH becomes empty
5162 # (actually we leave an empty line to preserve line numbers).
5163 if test "x
$srcdir" = x.; then
5164 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5168 s/^\([^=]*=[ ]*\):*/\1/
5174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5175 fi # test -n "$CONFIG_FILES"
5177 # Set up the scripts for CONFIG_HEADERS section.
5178 # No need to generate them if there are no CONFIG_HEADERS.
5179 # This happens for instance with `./config.status Makefile'.
5180 if test -n "$CONFIG_HEADERS"; then
5181 cat >"$tmp/defines.
awk" <<\_ACAWK ||
5185 # Transform confdefs.h into an awk script `defines.awk', embedded as
5186 # here-document in config.status, that substitutes the proper values into
5187 # config.h.in to produce config.h.
5189 # Create a delimiter string that does not exist in confdefs.h, to ease
5190 # handling of long lines.
5192 for ac_last_try in false false :; do
5193 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
5194 if test -z "$ac_t"; then
5196 elif $ac_last_try; then
5197 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
5199 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5203 # For the awk script, D is an array of macro values keyed by name,
5204 # likewise P contains macro parameters if any. Preserve backslash
5205 # newline sequences.
5207 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5209 s/.\{148\}/&'"$ac_delim"'/g
5212 s/^[ ]*#[ ]*define[ ][ ]*/ /
5219 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5221 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5225 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5226 D["\
1"]=" \
3\\\\\\n
"\\/p
5228 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5233 s/.\{148\}/&'"$ac_delim"'/g
5238 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5241 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5243 ' <confdefs.h | sed '
5244 s/'"$ac_delim"'/"\\\
5245 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5248 for (key in D) D_is_set[key] = 1
5251 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5253 split(line, arg, " ")
5254 if (arg[1] == "#") {
5258 defundef
= substr
(arg
[1], 2)
5261 split(mac1
, mac2
, "(") #)
5263 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5264 if (D_is_set
[macro
]) {
5265 # Preserve the white space surrounding the "#".
5266 print prefix
"define", macro P
[macro
] D
[macro
]
5269 # Replace #undef with comments. This is necessary, for example,
5270 # in the case of _POSIX_SOURCE, which is predefined and required
5271 # on some systems where configure will not decide to define it.
5272 if (defundef
== "undef") {
5273 print
"/*", prefix defundef
, macro
, "*/"
5281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5282 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
5283 fi # test -n "$CONFIG_HEADERS"
5286 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
5291 :[FHLC
]) ac_mode
=$ac_tag; continue;;
5293 case $ac_mode$ac_tag in
5295 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
5296 :[FH
]-) ac_tag
=-:-;;
5297 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
5314 -) ac_f
="$tmp/stdin";;
5315 *) # Look for the file first in the build tree, then in the source tree
5316 # (if the path is not absolute). The absolute path cannot be DOS-style,
5317 # because $ac_f cannot contain `:'.
5321 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
5323 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
5325 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5326 as_fn_append ac_file_inputs
" '$ac_f'"
5329 # Let's still pretend it is `configure' which instantiates (i.e., don't
5330 # use $as_me), people would be surprised to read:
5331 # /* config.h. Generated by config.status. */
5332 configure_input
='Generated from '`
5333 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5335 if test x
"$ac_file" != x-
; then
5336 configure_input
="$ac_file. $configure_input"
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5338 $as_echo "$as_me: creating $ac_file" >&6;}
5340 # Neutralize special characters interpreted by sed in replacement strings.
5341 case $configure_input in #(
5342 *\
&* |
*\|
* |
*\\* )
5343 ac_sed_conf_input
=`$as_echo "$configure_input" |
5344 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5345 *) ac_sed_conf_input
=$configure_input;;
5349 *:-:* |
*:-) cat >"$tmp/stdin" \
5350 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
5355 ac_dir
=`$as_dirname -- "$ac_file" ||
5356 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5357 X"$ac_file" : 'X\(//\)[^/]' \| \
5358 X"$ac_file" : 'X\(//\)$' \| \
5359 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5360 $as_echo X"$ac_file" |
5361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5378 as_dir
="$ac_dir"; as_fn_mkdir_p
5382 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5384 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5385 # A ".." for each directory in $ac_dir_suffix.
5386 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5387 case $ac_top_builddir_sub in
5388 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5389 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
5392 ac_abs_top_builddir
=$ac_pwd
5393 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
5394 # for backward compatibility:
5395 ac_top_builddir
=$ac_top_build_prefix
5398 .
) # We are building in place.
5400 ac_top_srcdir
=$ac_top_builddir_sub
5401 ac_abs_top_srcdir
=$ac_pwd ;;
5402 [\\/]* | ?
:[\\/]* ) # Absolute name.
5403 ac_srcdir
=$srcdir$ac_dir_suffix;
5404 ac_top_srcdir
=$srcdir
5405 ac_abs_top_srcdir
=$srcdir ;;
5407 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
5408 ac_top_srcdir
=$ac_top_build_prefix$srcdir
5409 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
5411 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
5421 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5422 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
5426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5427 # If the template does not know about datarootdir, expand it.
5428 # FIXME: This hack should be removed a few years after 2.60.
5429 ac_datarootdir_hack
=; ac_datarootdir_seen
=
5440 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5441 *datarootdir
*) ac_datarootdir_seen
=yes;;
5442 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5444 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5447 ac_datarootdir_hack='
5448 s&@datadir@&$datadir&g
5449 s&@docdir@&$docdir&g
5450 s&@infodir@&$infodir&g
5451 s&@localedir@&$localedir&g
5452 s&@mandir@&$mandir&g
5453 s&\\\${datarootdir}&$datarootdir&g' ;;
5457 # Neutralize VPATH when `$srcdir' = `.'.
5458 # Shell code in configure.ac might set extrasub.
5459 # FIXME: do we really want to maintain this feature?
5460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5461 ac_sed_extra="$ac_vpsub
5464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5466 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5467 s|@configure_input@|
$ac_sed_conf_input|
;t t
5468 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
5469 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
5470 s
&@srcdir@
&$ac_srcdir&;t t
5471 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
5472 s
&@top_srcdir@
&$ac_top_srcdir&;t t
5473 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
5474 s
&@builddir@
&$ac_builddir&;t t
5475 s
&@abs_builddir@
&$ac_abs_builddir&;t t
5476 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
5477 s
&@INSTALL@
&$ac_INSTALL&;t t
5478 $ac_datarootdir_hack
5480 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
5481 || as_fn_error "could not create
$ac_file" "$LINENO" 5
5483 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5484 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
5485 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
5487 which seems to be undefined. Please make sure it is defined." >&5
5488 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
5489 which seems to be undefined. Please make sure it is defined." >&2;}
5493 -) cat "$tmp/out" && rm -f "$tmp/out";;
5494 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5496 || as_fn_error "could not create $ac_file" "$LINENO" 5
5502 if test x"$ac_file" != x-; then
5504 $as_echo "/* $configure_input */" \
5505 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5506 } >"$tmp/config.h" \
5507 || as_fn_error "could not create $ac_file" "$LINENO" 5
5508 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5510 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5513 mv "$tmp/config.h" "$ac_file" \
5514 || as_fn_error "could not create $ac_file" "$LINENO" 5
5517 $as_echo "/* $configure_input */" \
5518 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5519 || as_fn_error "could not create -" "$LINENO" 5
5531 ac_clean_files=$ac_clean_files_save
5533 test $ac_write_fail = 0 ||
5534 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
5537 # configure is writing to config.log, and then calls config.status.
5538 # config.status does its own redirection, appending to config.log.
5539 # Unfortunately, on DOS this fails, as config.log is still kept open
5540 # by configure, so config.status won't be able to
write to it
; its
5541 # output is simply discarded. So we exec the FD to /dev/null,
5542 # effectively closing config.log, so it can be properly (re)opened and
5543 # appended to by config.status. When coming back to configure, we
5544 # need to make the FD available again.
5545 if test "$no_create" != yes; then
5547 ac_config_status_args
=
5548 test "$silent" = yes &&
5549 ac_config_status_args
="$ac_config_status_args --quiet"
5551 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5553 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5554 # would make configure fail if this is the last instruction.
5555 $ac_cs_success || as_fn_exit $?
5557 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5559 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}