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-sim-isa'
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
641 ac_precious_vars
='build_alias
657 # Initialize some variables set by options.
659 ac_init_version
=false
660 ac_unrecognized_opts
=
662 # The variables have the same names as the options, with
663 # dashes changed to underlines.
671 program_transform_name
=s
,x
,x
,
679 # Installation directory options.
680 # These are left unexpanded so users can "make install exec_prefix=/foo"
681 # and all the variables that are supposed to be based on exec_prefix
682 # by default will actually change.
683 # Use braces instead of parens because sh, perl, etc. also accept them.
684 # (The list follows the same order as the GNU Coding Standards.)
685 bindir
='${exec_prefix}/bin'
686 sbindir
='${exec_prefix}/sbin'
687 libexecdir
='${exec_prefix}/libexec'
688 datarootdir
='${prefix}/share'
689 datadir
='${datarootdir}'
690 sysconfdir
='${prefix}/etc'
691 sharedstatedir
='${prefix}/com'
692 localstatedir
='${prefix}/var'
693 includedir
='${prefix}/include'
694 oldincludedir
='/usr/include'
695 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
696 infodir
='${datarootdir}/info'
701 libdir
='${exec_prefix}/lib'
702 localedir
='${datarootdir}/locale'
703 mandir
='${datarootdir}/man'
709 # If the previous option needs an argument, assign it.
710 if test -n "$ac_prev"; then
711 eval $ac_prev=\
$ac_option
717 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
721 # Accept the important Cygnus configure options, so we can diagnose typos.
723 case $ac_dashdash$ac_option in
727 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
729 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
732 -build |
--build |
--buil |
--bui |
--bu)
733 ac_prev
=build_alias
;;
734 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
735 build_alias
=$ac_optarg ;;
737 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
738 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
739 ac_prev
=cache_file
;;
740 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
741 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
742 cache_file
=$ac_optarg ;;
745 cache_file
=config.cache
;;
747 -datadir |
--datadir |
--datadi |
--datad)
749 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
750 datadir
=$ac_optarg ;;
752 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
753 |
--dataroo |
--dataro |
--datar)
754 ac_prev
=datarootdir
;;
755 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
756 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
757 datarootdir
=$ac_optarg ;;
759 -disable-* |
--disable-*)
760 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
761 # Reject names that are not valid shell variable names.
762 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
763 as_fn_error
"invalid feature name: $ac_useropt"
764 ac_useropt_orig
=$ac_useropt
765 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
766 case $ac_user_opts in
770 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
771 ac_unrecognized_sep
=', ';;
773 eval enable_
$ac_useropt=no
;;
775 -docdir |
--docdir |
--docdi |
--doc |
--do)
777 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
780 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
782 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
785 -enable-* |
--enable-*)
786 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
789 as_fn_error
"invalid feature name: $ac_useropt"
790 ac_useropt_orig
=$ac_useropt
791 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
792 case $ac_user_opts in
796 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
797 ac_unrecognized_sep
=', ';;
799 eval enable_
$ac_useropt=\
$ac_optarg ;;
801 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
802 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
803 |
--exec |
--exe |
--ex)
804 ac_prev
=exec_prefix
;;
805 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
806 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
807 |
--exec=* |
--exe=* |
--ex=*)
808 exec_prefix
=$ac_optarg ;;
810 -gas |
--gas |
--ga |
--g)
811 # Obsolete; use --with-gas.
814 -help |
--help |
--hel |
--he |
-h)
816 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
817 ac_init_help
=recursive
;;
818 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
819 ac_init_help
=short
;;
821 -host |
--host |
--hos |
--ho)
822 ac_prev
=host_alias
;;
823 -host=* |
--host=* |
--hos=* |
--ho=*)
824 host_alias
=$ac_optarg ;;
826 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
828 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
830 htmldir
=$ac_optarg ;;
832 -includedir |
--includedir |
--includedi |
--included |
--include \
833 |
--includ |
--inclu |
--incl |
--inc)
834 ac_prev
=includedir
;;
835 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
836 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
837 includedir
=$ac_optarg ;;
839 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
841 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
842 infodir
=$ac_optarg ;;
844 -libdir |
--libdir |
--libdi |
--libd)
846 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
849 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
850 |
--libexe |
--libex |
--libe)
851 ac_prev
=libexecdir
;;
852 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
853 |
--libexe=* |
--libex=* |
--libe=*)
854 libexecdir
=$ac_optarg ;;
856 -localedir |
--localedir |
--localedi |
--localed |
--locale)
858 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
859 localedir
=$ac_optarg ;;
861 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
862 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
863 ac_prev
=localstatedir
;;
864 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
865 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
866 localstatedir
=$ac_optarg ;;
868 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
870 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
874 # Obsolete; use --without-fp.
877 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
878 |
--no-cr |
--no-c |
-n)
881 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
882 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
885 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
886 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
887 |
--oldin |
--oldi |
--old |
--ol |
--o)
888 ac_prev
=oldincludedir
;;
889 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
890 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
891 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
892 oldincludedir
=$ac_optarg ;;
894 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
896 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
899 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
900 |
--program-pre |
--program-pr |
--program-p)
901 ac_prev
=program_prefix
;;
902 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
903 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
904 program_prefix
=$ac_optarg ;;
906 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
907 |
--program-suf |
--program-su |
--program-s)
908 ac_prev
=program_suffix
;;
909 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
910 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
911 program_suffix
=$ac_optarg ;;
913 -program-transform-name |
--program-transform-name \
914 |
--program-transform-nam |
--program-transform-na \
915 |
--program-transform-n |
--program-transform- \
916 |
--program-transform |
--program-transfor \
917 |
--program-transfo |
--program-transf \
918 |
--program-trans |
--program-tran \
919 |
--progr-tra |
--program-tr |
--program-t)
920 ac_prev
=program_transform_name
;;
921 -program-transform-name=* |
--program-transform-name=* \
922 |
--program-transform-nam=* |
--program-transform-na=* \
923 |
--program-transform-n=* |
--program-transform-=* \
924 |
--program-transform=* |
--program-transfor=* \
925 |
--program-transfo=* |
--program-transf=* \
926 |
--program-trans=* |
--program-tran=* \
927 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
928 program_transform_name
=$ac_optarg ;;
930 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
932 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
935 -psdir |
--psdir |
--psdi |
--psd |
--ps)
937 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
940 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
941 |
-silent |
--silent |
--silen |
--sile |
--sil)
944 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
946 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
948 sbindir
=$ac_optarg ;;
950 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
951 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
952 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
954 ac_prev
=sharedstatedir
;;
955 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
956 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
957 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
959 sharedstatedir
=$ac_optarg ;;
961 -site |
--site |
--sit)
963 -site=* |
--site=* |
--sit=*)
966 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
968 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
971 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
972 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
973 ac_prev
=sysconfdir
;;
974 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
975 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
976 sysconfdir
=$ac_optarg ;;
978 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
979 ac_prev
=target_alias
;;
980 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
981 target_alias
=$ac_optarg ;;
983 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
986 -version |
--version |
--versio |
--versi |
--vers |
-V)
990 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
993 as_fn_error
"invalid package name: $ac_useropt"
994 ac_useropt_orig
=$ac_useropt
995 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
1000 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1001 ac_unrecognized_sep
=', ';;
1003 eval with_
$ac_useropt=\
$ac_optarg ;;
1005 -without-* |
--without-*)
1006 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1009 as_fn_error
"invalid package name: $ac_useropt"
1010 ac_useropt_orig
=$ac_useropt
1011 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1016 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1017 ac_unrecognized_sep
=', ';;
1019 eval with_
$ac_useropt=no
;;
1022 # Obsolete; use --with-x.
1025 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1026 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1027 ac_prev
=x_includes
;;
1028 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1029 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1030 x_includes
=$ac_optarg ;;
1032 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1033 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1034 ac_prev
=x_libraries
;;
1035 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1036 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1037 x_libraries
=$ac_optarg ;;
1039 -*) as_fn_error
"unrecognized option: \`$ac_option'
1040 Try \`$0 --help' for more information."
1044 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1045 # Reject names that are not valid shell variable names.
1046 case $ac_envvar in #(
1047 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1048 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1050 eval $ac_envvar=\
$ac_optarg
1051 export $ac_envvar ;;
1054 # FIXME: should be removed in autoconf 3.0.
1055 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1056 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1057 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1058 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1064 if test -n "$ac_prev"; then
1065 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1066 as_fn_error
"missing argument to $ac_option"
1069 if test -n "$ac_unrecognized_opts"; then
1070 case $enable_option_checking in
1072 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1073 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1077 # Check all directory arguments for consistency.
1078 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1079 datadir sysconfdir sharedstatedir localstatedir includedir \
1080 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1081 libdir localedir mandir
1083 eval ac_val
=\$
$ac_var
1084 # Remove trailing slashes.
1087 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1088 eval $ac_var=\
$ac_val;;
1090 # Be sure to have absolute directory names.
1092 [\\/$
]* | ?
:[\\/]* ) continue;;
1093 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1095 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1098 # There might be people who depend on the old broken behavior: `$host'
1099 # used to hold the argument of --host etc.
1100 # FIXME: To remove some day.
1103 target
=$target_alias
1105 # FIXME: To remove some day.
1106 if test "x$host_alias" != x
; then
1107 if test "x$build_alias" = x
; then
1108 cross_compiling
=maybe
1109 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1110 If a cross compiler is detected then cross compile mode will be used." >&2
1111 elif test "x$build_alias" != "x$host_alias"; then
1117 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1119 test "$silent" = yes && exec 6>/dev
/null
1122 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1123 ac_ls_di
=`ls -di .` &&
1124 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1125 as_fn_error
"working directory cannot be determined"
1126 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1127 as_fn_error
"pwd does not report name of working directory"
1130 # Find the source files, if location was not specified.
1131 if test -z "$srcdir"; then
1132 ac_srcdir_defaulted
=yes
1133 # Try the directory containing this script, then the parent directory.
1134 ac_confdir
=`$as_dirname -- "$as_myself" ||
1135 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1136 X"$as_myself" : 'X\(//\)[^/]' \| \
1137 X"$as_myself" : 'X\(//\)$' \| \
1138 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1139 $as_echo X"$as_myself" |
1140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1158 if test ! -r "$srcdir/$ac_unique_file"; then
1162 ac_srcdir_defaulted
=no
1164 if test ! -r "$srcdir/$ac_unique_file"; then
1165 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1166 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1168 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1170 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1172 # When building in place, set srcdir=.
1173 if test "$ac_abs_confdir" = "$ac_pwd"; then
1176 # Remove unnecessary trailing slashes from srcdir.
1177 # Double slashes in file names in object file debugging info
1178 # mess up M-x gdb in Emacs.
1180 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1182 for ac_var
in $ac_precious_vars; do
1183 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1184 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1185 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1186 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1190 # Report the --help message.
1192 if test "$ac_init_help" = "long"; then
1193 # Omit some internal or obsolete options to make the list less imposing.
1194 # This message is too long to be a string in the A/UX 3.1 sh.
1196 \`configure' configures RISC-V ISA Simulator ? to adapt to many kinds of systems.
1198 Usage: $0 [OPTION]... [VAR=VALUE]...
1200 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1201 VAR=VALUE. See below for descriptions of some of the useful variables.
1203 Defaults for the options are specified in brackets.
1206 -h, --help display this help and exit
1207 --help=short display options specific to this package
1208 --help=recursive display the short help of all the included packages
1209 -V, --version display version information and exit
1210 -q, --quiet, --silent do not print \`checking...' messages
1211 --cache-file=FILE cache test results in FILE [disabled]
1212 -C, --config-cache alias for \`--cache-file=config.cache'
1213 -n, --no-create do not create output files
1214 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1216 Installation directories:
1217 --prefix=PREFIX install architecture-independent files in PREFIX
1218 [$ac_default_prefix]
1219 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1222 By default, \`make install' will install all the files in
1223 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1224 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1225 for instance \`--prefix=\$HOME'.
1227 For better control, use the options below.
1229 Fine tuning of the installation directories:
1230 --bindir=DIR user executables [EPREFIX/bin]
1231 --sbindir=DIR system admin executables [EPREFIX/sbin]
1232 --libexecdir=DIR program executables [EPREFIX/libexec]
1233 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1234 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1235 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1236 --libdir=DIR object code libraries [EPREFIX/lib]
1237 --includedir=DIR C header files [PREFIX/include]
1238 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1239 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1240 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1241 --infodir=DIR info documentation [DATAROOTDIR/info]
1242 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1243 --mandir=DIR man documentation [DATAROOTDIR/man]
1244 --docdir=DIR documentation root [DATAROOTDIR/doc/riscv-sim-isa]
1245 --htmldir=DIR html documentation [DOCDIR]
1246 --dvidir=DIR dvi documentation [DOCDIR]
1247 --pdfdir=DIR pdf documentation [DOCDIR]
1248 --psdir=DIR ps documentation [DOCDIR]
1254 --build=BUILD configure
for building on BUILD
[guessed
]
1255 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1259 if test -n "$ac_init_help"; then
1260 case $ac_init_help in
1261 short | recursive
) echo "Configuration of RISC-V ISA Simulator ?:";;
1266 --disable-option-checking ignore unrecognized
--enable/--with options
1267 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1268 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1269 --enable-stow Enable stow-based
install
1270 --enable-optional-subprojects
1271 Enable all optional subprojects
1272 --disable-fpu Disable floating-point
1273 --disable-64bit Disable
64-bit mode
1275 Some influential environment variables
:
1276 CC C compiler
command
1277 CFLAGS C compiler flags
1278 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1279 nonstandard directory
<lib dir
>
1280 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1281 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1282 you have headers
in a nonstandard directory
<include dir
>
1283 CXX C
++ compiler
command
1284 CXXFLAGS C
++ compiler flags
1285 STOW_ROOT Root
for non-native stow-based installs
1286 STOW_PREFIX Prefix
for stow-based installs
1289 Use these variables to override the choices made by
`configure' or to help
1290 it to find libraries and programs with nonstandard names/locations.
1292 Report bugs to <Andrew Waterman>.
1297 if test "$ac_init_help" = "recursive"; then
1298 # If there are subdirs, report their specific --help.
1299 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1300 test -d "$ac_dir" ||
1301 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1306 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1308 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1309 # A ".." for each directory in $ac_dir_suffix.
1310 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1311 case $ac_top_builddir_sub in
1312 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1313 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1316 ac_abs_top_builddir=$ac_pwd
1317 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1318 # for backward compatibility:
1319 ac_top_builddir=$ac_top_build_prefix
1322 .) # We are building in place.
1324 ac_top_srcdir=$ac_top_builddir_sub
1325 ac_abs_top_srcdir=$ac_pwd ;;
1326 [\\/]* | ?:[\\/]* ) # Absolute name.
1327 ac_srcdir=$srcdir$ac_dir_suffix;
1328 ac_top_srcdir=$srcdir
1329 ac_abs_top_srcdir=$srcdir ;;
1331 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1332 ac_top_srcdir=$ac_top_build_prefix$srcdir
1333 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1335 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1337 cd "$ac_dir" || { ac_status=$?; continue; }
1338 # Check for guested configure.
1339 if test -f "$ac_srcdir/configure.gnu"; then
1341 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1342 elif test -f "$ac_srcdir/configure"; then
1344 $SHELL "$ac_srcdir/configure" --help=recursive
1346 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1348 cd "$ac_pwd" || { ac_status=$?; break; }
1352 test -n "$ac_init_help" && exit $ac_status
1353 if $ac_init_version; then
1355 RISC-V ISA Simulator configure ?
1356 generated by GNU Autoconf 2.64
1358 Copyright (C) 2009 Free Software Foundation, Inc.
1359 This configure script is free software; the Free Software Foundation
1360 gives unlimited permission to copy, distribute and modify it.
1365 ## ------------------------ ##
1366 ## Autoconf initialization. ##
1367 ## ------------------------ ##
1369 # ac_fn_c_try_compile LINENO
1370 # --------------------------
1371 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1372 ac_fn_c_try_compile ()
1374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1375 rm -f conftest.$ac_objext
1376 if { { ac_try="$ac_compile"
1378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1379 *) ac_try_echo
=$ac_try;;
1381 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1382 $as_echo "$ac_try_echo"; } >&5
1383 (eval "$ac_compile") 2>conftest.err
1385 if test -s conftest.err
; then
1386 grep -v '^ *+' conftest.err
>conftest.er1
1387 cat conftest.er1
>&5
1388 mv -f conftest.er1 conftest.err
1390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1391 test $ac_status = 0; } && {
1392 test -z "$ac_c_werror_flag" ||
1393 test ! -s conftest.err
1394 } && test -s conftest.
$ac_objext; then :
1397 $as_echo "$as_me: failed program was:" >&5
1398 sed 's/^/| /' conftest.
$ac_ext >&5
1402 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1405 } # ac_fn_c_try_compile
1407 # ac_fn_cxx_try_compile LINENO
1408 # ----------------------------
1409 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1410 ac_fn_cxx_try_compile
()
1412 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1413 rm -f conftest.
$ac_objext
1414 if { { ac_try
="$ac_compile"
1416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1417 *) ac_try_echo=$ac_try;;
1419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1420 $as_echo "$ac_try_echo"; } >&5
1421 (eval "$ac_compile") 2>conftest.err
1423 if test -s conftest.err; then
1424 grep -v '^ *+' conftest.err >conftest.er1
1425 cat conftest.er1 >&5
1426 mv -f conftest.er1 conftest.err
1428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1429 test $ac_status = 0; } && {
1430 test -z "$ac_cxx_werror_flag" ||
1431 test ! -s conftest.err
1432 } && test -s conftest.$ac_objext; then :
1435 $as_echo "$as_me: failed program was:" >&5
1436 sed 's/^/| /' conftest.$ac_ext >&5
1440 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1443 } # ac_fn_cxx_try_compile
1445 # ac_fn_c_try_cpp LINENO
1446 # ----------------------
1447 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1451 if { { ac_try="$ac_cpp conftest.$ac_ext"
1453 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1454 *) ac_try_echo
=$ac_try;;
1456 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1457 $as_echo "$ac_try_echo"; } >&5
1458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1460 if test -s conftest.err
; then
1461 grep -v '^ *+' conftest.err
>conftest.er1
1462 cat conftest.er1
>&5
1463 mv -f conftest.er1 conftest.err
1465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1466 test $ac_status = 0; } >/dev
/null
&& {
1467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1468 test ! -s conftest.err
1472 $as_echo "$as_me: failed program was:" >&5
1473 sed 's/^/| /' conftest.
$ac_ext >&5
1477 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1482 # ac_fn_c_try_run LINENO
1483 # ----------------------
1484 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1485 # that executables *can* be run.
1488 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1489 if { { ac_try
="$ac_link"
1491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1492 *) ac_try_echo=$ac_try;;
1494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1495 $as_echo "$ac_try_echo"; } >&5
1496 (eval "$ac_link") 2>&5
1498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1499 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1500 { { case "(($ac_try" in
1501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1502 *) ac_try_echo
=$ac_try;;
1504 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505 $as_echo "$ac_try_echo"; } >&5
1506 (eval "$ac_try") 2>&5
1508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1509 test $ac_status = 0; }; }; then :
1512 $as_echo "$as_me: program exited with status $ac_status" >&5
1513 $as_echo "$as_me: failed program was:" >&5
1514 sed 's/^/| /' conftest.
$ac_ext >&5
1516 ac_retval
=$ac_status
1518 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1519 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1524 # ac_fn_c_try_link LINENO
1525 # -----------------------
1526 # Try to link conftest.$ac_ext, and return whether this succeeded.
1529 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1530 rm -f conftest.
$ac_objext conftest
$ac_exeext
1531 if { { ac_try
="$ac_link"
1533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_link") 2>conftest.err
1540 if test -s conftest.err; then
1541 grep -v '^ *+' conftest.err >conftest.er1
1542 cat conftest.er1 >&5
1543 mv -f conftest.er1 conftest.err
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; } && {
1547 test -z "$ac_c_werror_flag" ||
1548 test ! -s conftest.err
1549 } && test -s conftest$ac_exeext && {
1550 test "$cross_compiling" = yes ||
1551 $as_test_x conftest$ac_exeext
1555 $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.$ac_ext >&5
1560 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1561 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1562 # interfere with the next link command; also delete a directory that is
1563 # left behind by Apple's compiler. We do this before executing the actions.
1564 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1568 } # ac_fn_c_try_link
1569 cat >config.log <<_ACEOF
1570 This file contains any messages produced by compilers while
1571 running configure, to aid debugging if configure makes a mistake.
1573 It was created by RISC-V ISA Simulator $as_me ?, which was
1574 generated by GNU Autoconf 2.64. Invocation command line was
1586 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1587 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1588 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1589 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1590 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1592 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1593 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1595 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1596 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1597 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1598 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1599 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1600 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1601 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 test -z "$as_dir" && as_dir=.
1610 $as_echo "PATH: $as_dir"
1626 # Keep a trace of the command line.
1627 # Strip out --no-create and --no-recursion so they do not pile up.
1628 # Strip out --silent because we don't want to record it for future runs.
1629 # Also quote any args containing shell meta-characters.
1630 # Make two passes to allow for proper duplicate-argument suppression.
1634 ac_must_keep_next=false
1640 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1641 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1642 | -silent | --silent | --silen | --sile | --sil)
1645 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1648 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1650 as_fn_append ac_configure_args1 " '$ac_arg'"
1651 if test $ac_must_keep_next = true; then
1652 ac_must_keep_next=false # Got value, back to normal.
1655 *=* | --config-cache | -C | -disable-* | --disable-* \
1656 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1657 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1658 | -with-* | --with-* | -without-* | --without-* | --x)
1659 case "$ac_configure_args0 " in
1660 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1663 -* ) ac_must_keep_next=true ;;
1666 as_fn_append ac_configure_args " '$ac_arg'"
1671 { ac_configure_args0=; unset ac_configure_args0;}
1672 { ac_configure_args1=; unset ac_configure_args1;}
1674 # When interrupted or exit'd, cleanup temporary files, and complete
1675 # config.log. We remove comments because anyway the quotes in there
1676 # would cause problems or look ugly.
1677 # WARNING: Use '\'' to represent an apostrophe within the trap.
1678 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1679 trap 'exit_status=$?
1680 # Save into config.log some information that might help in debugging.
1685 ## ---------------- ##
1686 ## Cache variables. ##
1687 ## ---------------- ##
1690 # The following way of writing the cache mishandles newlines in values,
1692 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1693 eval ac_val=\$$ac_var
1697 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1698 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1701 _ | IFS | as_nl) ;; #(
1702 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1703 *) { eval $ac_var=; unset $ac_var;} ;;
1708 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1709 *${as_nl}ac_space=\ *)
1711 "s/'\''/'\''\\\\'\'''\''/g;
1712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1723 ## ----------------- ##
1724 ## Output variables. ##
1725 ## ----------------- ##
1728 for ac_var in $ac_subst_vars
1730 eval ac_val=\$$ac_var
1732 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734 $as_echo "$ac_var='\''$ac_val'\''"
1738 if test -n "$ac_subst_files"; then
1740 ## ------------------- ##
1741 ## File substitutions. ##
1742 ## ------------------- ##
1745 for ac_var in $ac_subst_files
1747 eval ac_val=\$$ac_var
1749 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751 $as_echo "$ac_var='\''$ac_val'\''"
1756 if test -s confdefs.h; then
1766 test "$ac_signal" != 0 &&
1767 $as_echo "$as_me: caught signal $ac_signal"
1768 $as_echo "$as_me: exit $exit_status"
1770 rm -f core *.core core.conftest.* &&
1771 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1774 for ac_signal in 1 2 13 15; do
1775 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1779 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1780 rm -f -r conftest* confdefs.h
1782 $as_echo "/* confdefs.h */" > confdefs.h
1784 # Predefined preprocessor variables.
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_NAME "$PACKAGE_NAME"
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_STRING "$PACKAGE_STRING"
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_URL "$PACKAGE_URL"
1811 # Let the site file select an alternate cache file if it wants to.
1812 # Prefer an explicitly selected file to automatically selected ones.
1815 if test -n "$CONFIG_SITE"; then
1816 ac_site_file1=$CONFIG_SITE
1817 elif test "x$prefix" != xNONE; then
1818 ac_site_file1=$prefix/share/config.site
1819 ac_site_file2=$prefix/etc/config.site
1821 ac_site_file1=$ac_default_prefix/share/config.site
1822 ac_site_file2=$ac_default_prefix/etc/config.site
1824 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1826 test "x$ac_site_file" = xNONE && continue
1827 if test -r "$ac_site_file"; then
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1829 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1830 sed 's/^/| /' "$ac_site_file" >&5
1835 if test -r "$cache_file"; then
1836 # Some versions of bash will fail to source /dev/null (special
1837 # files actually), so we avoid doing that.
1838 if test -f "$cache_file"; then
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1840 $as_echo "$as_me: loading cache $cache_file" >&6;}
1842 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1843 *) . "./$cache_file";;
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1848 $as_echo "$as_me: creating cache $cache_file" >&6;}
1852 # Check that the precious variables saved in the cache have kept the same
1854 ac_cache_corrupted=false
1855 for ac_var in $ac_precious_vars; do
1856 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1857 eval ac_new_set=\$ac_env_${ac_var}_set
1858 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1859 eval ac_new_val=\$ac_env_${ac_var}_value
1860 case $ac_old_set,$ac_new_set in
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1863 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1864 ac_cache_corrupted=: ;;
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
1867 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1868 ac_cache_corrupted=: ;;
1871 if test "x$ac_old_val" != "x$ac_new_val"; then
1872 # differences in whitespace do not lead to failure.
1873 ac_old_val_w=`echo x
$ac_old_val`
1874 ac_new_val_w=`echo x
$ac_new_val`
1875 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1877 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1878 ac_cache_corrupted=:
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1881 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1882 eval $ac_var=\$ac_old_val
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1885 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1887 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1890 # Pass precious variables to config.status.
1891 if test "$ac_new_set" = set; then
1893 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1894 *) ac_arg=$ac_var=$ac_new_val ;;
1896 case " $ac_configure_args " in
1897 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1898 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1902 if $ac_cache_corrupted; then
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
1904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1906 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1907 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
1909 ## -------------------- ##
1910 ## Main body of script. ##
1911 ## -------------------- ##
1914 ac_cpp='$CPP $CPPFLAGS'
1915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1922 for ac_dir in scripts "$srcdir"/scripts; do
1923 for ac_t in install-sh install.sh shtool; do
1924 if test -f "$ac_dir/$ac_t"; then
1926 ac_install_sh="$ac_aux_dir/$ac_t -c"
1931 if test -z "$ac_aux_dir"; then
1932 as_fn_error "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
1935 # These three variables are undocumented and unsupported,
1936 # and are intended to be withdrawn in a future Autoconf release.
1937 # They can cause serious problems if a builder's source tree is in a directory
1938 # whose full name contains unusual characters.
1939 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1940 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1941 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1944 # Make sure we can run config.sub.
1945 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1946 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1949 $as_echo_n "checking build system type... " >&6; }
1950 if test "${ac_cv_build+set}" = set; then :
1951 $as_echo_n "(cached) " >&6
1953 ac_build_alias=$build_alias
1954 test "x$ac_build_alias" = x &&
1955 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1956 test "x$ac_build_alias" = x &&
1957 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
1958 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1959 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1963 $as_echo "$ac_cv_build" >&6; }
1964 case $ac_cv_build in
1966 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
1969 ac_save_IFS=$IFS; IFS='-'
1975 # Remember, the first character of IFS is used to create $*,
1976 # except with old shells:
1979 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1983 $as_echo_n "checking host system type... " >&6; }
1984 if test "${ac_cv_host+set}" = set; then :
1985 $as_echo_n "(cached) " >&6
1987 if test "x$host_alias" = x; then
1988 ac_cv_host=$ac_cv_build
1990 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1991 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1996 $as_echo "$ac_cv_host" >&6; }
1999 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2002 ac_save_IFS=$IFS; IFS='-'
2008 # Remember, the first character of IFS is used to create $*,
2009 # except with old shells:
2012 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2016 #-------------------------------------------------------------------------
2017 # Checks for programs
2018 #-------------------------------------------------------------------------
2021 ac_cpp='$CPP $CPPFLAGS'
2022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2025 if test -n "$ac_tool_prefix"; then
2026 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2027 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2029 $as_echo_n "checking for $ac_word... " >&6; }
2030 if test "${ac_cv_prog_CC+set}" = set; then :
2031 $as_echo_n "(cached) " >&6
2033 if test -n "$CC"; then
2034 ac_cv_prog_CC="$CC" # Let the user override the test.
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2043 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 if test -n "$CC"; then
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2056 $as_echo "$CC" >&6; }
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2059 $as_echo "no" >&6; }
2064 if test -z "$ac_cv_prog_CC"; then
2066 # Extract the first word of "gcc", so it can be a program name with args.
2067 set dummy gcc; ac_word=$2
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2069 $as_echo_n "checking for $ac_word... " >&6; }
2070 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2071 $as_echo_n "(cached) " >&6
2073 if test -n "$ac_ct_CC"; then
2074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2083 ac_cv_prog_ac_ct_CC="gcc"
2084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2094 if test -n "$ac_ct_CC"; then
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2096 $as_echo "$ac_ct_CC" >&6; }
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2099 $as_echo "no" >&6; }
2102 if test "x$ac_ct_CC" = x; then
2105 case $cross_compiling:$ac_tool_warned in
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2109 ac_tool_warned=yes ;;
2117 if test -z "$CC"; then
2118 if test -n "$ac_tool_prefix"; then
2119 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2120 set dummy ${ac_tool_prefix}cc; ac_word=$2
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2122 $as_echo_n "checking for $ac_word... " >&6; }
2123 if test "${ac_cv_prog_CC+set}" = set; then :
2124 $as_echo_n "(cached) " >&6
2126 if test -n "$CC"; then
2127 ac_cv_prog_CC="$CC" # Let the user override the test.
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 test -z "$as_dir" && as_dir=.
2134 for ac_exec_ext in '' $ac_executable_extensions; do
2135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2136 ac_cv_prog_CC="${ac_tool_prefix}cc"
2137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2147 if test -n "$CC"; then
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2149 $as_echo "$CC" >&6; }
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2152 $as_echo "no" >&6; }
2158 if test -z "$CC"; then
2159 # Extract the first word of "cc", so it can be a program name with args.
2160 set dummy cc; ac_word=$2
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2162 $as_echo_n "checking for $ac_word... " >&6; }
2163 if test "${ac_cv_prog_CC+set}" = set; then :
2164 $as_echo_n "(cached) " >&6
2166 if test -n "$CC"; then
2167 ac_cv_prog_CC="$CC" # Let the user override the test.
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 test -z "$as_dir" && as_dir=.
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2177 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2178 ac_prog_rejected=yes
2182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2189 if test $ac_prog_rejected = yes; then
2190 # We found a bogon in the path, so make sure we never use it.
2191 set dummy $ac_cv_prog_CC
2193 if test $# != 0; then
2194 # We chose a different compiler from the bogus one.
2195 # However, it has the same basename, so the bogon will be chosen
2196 # first if we set CC to just the basename; use the full file name.
2198 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2204 if test -n "$CC"; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2206 $as_echo "$CC" >&6; }
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2209 $as_echo "no" >&6; }
2214 if test -z "$CC"; then
2215 if test -n "$ac_tool_prefix"; then
2216 for ac_prog in cl.exe
2218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2221 $as_echo_n "checking for $ac_word... " >&6; }
2222 if test "${ac_cv_prog_CC+set}" = set; then :
2223 $as_echo_n "(cached) " >&6
2225 if test -n "$CC"; then
2226 ac_cv_prog_CC="$CC" # Let the user override the test.
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232 test -z "$as_dir" && as_dir=.
2233 for ac_exec_ext in '' $ac_executable_extensions; do
2234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2235 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2246 if test -n "$CC"; then
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2248 $as_echo "$CC" >&6; }
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2251 $as_echo "no" >&6; }
2255 test -n "$CC" && break
2258 if test -z "$CC"; then
2260 for ac_prog in cl.exe
2262 # Extract the first word of "$ac_prog", so it can be a program name with args.
2263 set dummy $ac_prog; ac_word=$2
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2265 $as_echo_n "checking for $ac_word... " >&6; }
2266 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2267 $as_echo_n "(cached) " >&6
2269 if test -n "$ac_ct_CC"; then
2270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 test -z "$as_dir" && as_dir=.
2277 for ac_exec_ext in '' $ac_executable_extensions; do
2278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2279 ac_cv_prog_ac_ct_CC="$ac_prog"
2280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2290 if test -n "$ac_ct_CC"; then
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2292 $as_echo "$ac_ct_CC" >&6; }
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2295 $as_echo "no" >&6; }
2299 test -n "$ac_ct_CC" && break
2302 if test "x$ac_ct_CC" = x; then
2305 case $cross_compiling:$ac_tool_warned in
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2309 ac_tool_warned=yes ;;
2318 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2320 as_fn_error "no acceptable C compiler found
in \
$PATH
2321 See \
`config.log' for more details." "$LINENO" 5; }
2323 # Provide some information about the compiler.
2324 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2327 for ac_option in --version -v -V -qversion; do
2328 { { ac_try="$ac_compiler $ac_option >&5"
2330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2331 *) ac_try_echo
=$ac_try;;
2333 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2334 $as_echo "$ac_try_echo"; } >&5
2335 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2337 if test -s conftest.err
; then
2339 ... rest of stderr output deleted ...
2340 10q' conftest.err
>conftest.er1
2341 cat conftest.er1
>&5
2342 rm -f conftest.er1 conftest.err
2344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2345 test $ac_status = 0; }
2348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h. */
2354 FILE *f = fopen ("conftest.out", "w");
2355 return ferror (f) || fclose (f) != 0;
2361 ac_clean_files_save
=$ac_clean_files
2362 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2363 # Try to create an executable without -o first, disregard a.out.
2364 # It will help us diagnose broken compilers, and finding out an intuition
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2367 $as_echo_n "checking for C compiler default output file name... " >&6; }
2368 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2370 # The possible output files:
2371 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2374 for ac_file
in $ac_files
2377 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2378 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2383 if { { ac_try
="$ac_link_default"
2385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2389 $as_echo "$ac_try_echo"; } >&5
2390 (eval "$ac_link_default") 2>&5
2392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2393 test $ac_status = 0; }; then :
2394 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2395 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2396 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2397 # so that the user can short-circuit this test for compilers unknown to
2399 for ac_file in $ac_files ''
2401 test -f "$ac_file" || continue
2403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2406 # We found the default executable, but exeext='' is most
2410 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2412 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2414 # We set ac_cv_exeext here because the later test for it is not
2415 # safe: cross compilers may not add the suffix if given an `-o'
2416 # argument, so we may need to know it at that point already.
2417 # Even if this section looks crufty: it has the advantage of
2424 test "$ac_cv_exeext" = no && ac_cv_exeext=
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2430 $as_echo "$ac_file" >&6; }
2431 if test -z "$ac_file"; then :
2432 $as_echo "$as_me: failed program was:" >&5
2433 sed 's
/^
/|
/' conftest.$ac_ext >&5
2435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2436 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2437 { as_fn_set_status 77
2438 as_fn_error "C compiler cannot create executables
2439 See \`config.log
' for more details." "$LINENO" 5; }; }
2441 ac_exeext=$ac_cv_exeext
2443 # Check that the compiler produces executables we can run. If not, either
2444 # the compiler is broken, or we cross compile.
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2446 $as_echo_n "checking whether the C compiler works... " >&6; }
2447 # If not cross compiling, check that we can run a simple program.
2448 if test "$cross_compiling" != yes; then
2449 if { ac_try='.
/$ac_file'
2450 { { case "(($ac_try" in
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2455 $as_echo "$ac_try_echo"; } >&5
2456 (eval "$ac_try") 2>&5
2458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2459 test $ac_status = 0; }; }; then
2462 if test "$cross_compiling" = maybe; then
2465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2466 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2467 as_fn_error "cannot run C compiled programs.
2468 If you meant to cross compile, use \`--host'.
2469 See \`config.log' for more details.
" "$LINENO" 5; }
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
2474 $as_echo "yes" >&6; }
2476 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2477 ac_clean_files=$ac_clean_files_save
2478 # Check that the compiler produces executables we can run. If not, either
2479 # the compiler is broken, or we cross compile.
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
2481 $as_echo_n "checking whether we are cross compiling...
" >&6; }
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
2483 $as_echo "$cross_compiling" >&6; }
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
2486 $as_echo_n "checking
for suffix of executables...
" >&6; }
2487 if { { ac_try="$ac_link"
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2492 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2493 $as_echo "$ac_try_echo"; } >&5
2494 (eval "$ac_link") 2>&5
2496 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
2497 test $ac_status = 0; }; then :
2498 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2499 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2500 # work properly (i.e., refer to `conftest.exe'), while it won't with
2502 for ac_file in conftest.exe conftest conftest.*; do
2503 test -f "$ac_file" || continue
2505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2506 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2514 as_fn_error "cannot compute suffix of executables: cannot compile and link
2515 See \`config.log' for more details.
" "$LINENO" 5; }
2517 rm -f conftest$ac_cv_exeext
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
2519 $as_echo "$ac_cv_exeext" >&6; }
2521 rm -f conftest.$ac_ext
2522 EXEEXT=$ac_cv_exeext
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
2525 $as_echo_n "checking
for suffix of object files...
" >&6; }
2526 if test "${ac_cv_objext+set}" = set; then :
2527 $as_echo_n "(cached
) " >&6
2529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2530 /* end confdefs.h. */
2540 rm -f conftest.o conftest.obj
2541 if { { ac_try="$ac_compile"
2543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544 *) ac_try_echo=$ac_try;;
2546 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2547 $as_echo "$ac_try_echo"; } >&5
2548 (eval "$ac_compile") 2>&5
2550 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
2551 test $ac_status = 0; }; then :
2552 for ac_file in conftest.o conftest.obj conftest.*; do
2553 test -f "$ac_file" || continue;
2555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2556 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2561 $as_echo "$as_me: failed program was
:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2566 as_fn_error "cannot compute suffix of object files: cannot compile
2567 See \`config.log' for more details.
" "$LINENO" 5; }
2569 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
2572 $as_echo "$ac_cv_objext" >&6; }
2573 OBJEXT=$ac_cv_objext
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
2576 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
2577 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2578 $as_echo_n "(cached
) " >&6
2580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2581 /* end confdefs.h. */
2594 if ac_fn_c_try_compile "$LINENO"; then :
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
2604 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2605 if test $ac_compiler_gnu = yes; then
2610 ac_test_CFLAGS=${CFLAGS+set}
2611 ac_save_CFLAGS=$CFLAGS
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
2613 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
2614 if test "${ac_cv_prog_cc_g+set}" = set; then :
2615 $as_echo_n "(cached
) " >&6
2617 ac_save_c_werror_flag=$ac_c_werror_flag
2618 ac_c_werror_flag=yes
2621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2622 /* end confdefs.h. */
2632 if ac_fn_c_try_compile "$LINENO"; then :
2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637 /* end confdefs.h. */
2647 if ac_fn_c_try_compile "$LINENO"; then :
2650 ac_c_werror_flag=$ac_save_c_werror_flag
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653 /* end confdefs.h. */
2663 if ac_fn_c_try_compile "$LINENO"; then :
2666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671 ac_c_werror_flag=$ac_save_c_werror_flag
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
2674 $as_echo "$ac_cv_prog_cc_g" >&6; }
2675 if test "$ac_test_CFLAGS" = set; then
2676 CFLAGS=$ac_save_CFLAGS
2677 elif test $ac_cv_prog_cc_g = yes; then
2678 if test "$GCC" = yes; then
2684 if test "$GCC" = yes; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
2691 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
2692 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2693 $as_echo_n "(cached
) " >&6
2695 ac_cv_prog_cc_c89=no
2697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2698 /* end confdefs.h. */
2701 #include <sys/types.h>
2702 #include <sys/stat.h>
2703 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2704 struct buf { int x; };
2705 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2706 static char *e (p, i)
2712 static char *f (char * (*g) (char **, int), char **p, ...)
2717 s = g (p, va_arg (v,int));
2722 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2723 function prototypes and stuff, but not '\xHH' hex character constants.
2724 These don't provoke an error unfortunately, instead are silently treated
2725 as 'x'. The following induces an error, until -std is added to get
2726 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2727 array size at least. It's necessary to write '\x00'==0 to get something
2728 that's true only with -std. */
2729 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2731 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2732 inside strings and character constants. */
2734 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2736 int test (int i, double x);
2737 struct s1 {int (*f) (int a);};
2738 struct s2 {int (*f) (double a);};
2739 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2745 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2750 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2751 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2753 CC="$ac_save_CC $ac_arg"
2754 if ac_fn_c_try_compile "$LINENO"; then :
2755 ac_cv_prog_cc_c89=$ac_arg
2757 rm -f core conftest.err conftest.$ac_objext
2758 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
2760 rm -f conftest.$ac_ext
2765 case "x
$ac_cv_prog_cc_c89" in
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
2768 $as_echo "none needed
" >&6; } ;;
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
2771 $as_echo "unsupported
" >&6; } ;;
2773 CC="$CC $ac_cv_prog_cc_c89"
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
2775 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2777 if test "x
$ac_cv_prog_cc_c89" != xno; then :
2782 ac_cpp='$CPP $CPPFLAGS'
2783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2788 ac_cpp='$CXXCPP $CPPFLAGS'
2789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2792 if test -z "$CXX"; then
2793 if test -n "$CCC"; then
2796 if test -n "$ac_tool_prefix"; then
2797 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
2802 $as_echo_n "checking
for $ac_word...
" >&6; }
2803 if test "${ac_cv_prog_CXX+set}" = set; then :
2804 $as_echo_n "(cached
) " >&6
2806 if test -n "$CXX"; then
2807 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2817 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
2827 if test -n "$CXX"; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX" >&5
2829 $as_echo "$CXX" >&6; }
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
2832 $as_echo "no
" >&6; }
2836 test -n "$CXX" && break
2839 if test -z "$CXX"; then
2841 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2843 # Extract the first word of "$ac_prog", so it can be a program name with args.
2844 set dummy $ac_prog; ac_word=$2
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
2846 $as_echo_n "checking
for $ac_word...
" >&6; }
2847 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2848 $as_echo_n "(cached
) " >&6
2850 if test -n "$ac_ct_CXX"; then
2851 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2860 ac_cv_prog_ac_ct_CXX="$ac_prog"
2861 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
2870 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2871 if test -n "$ac_ct_CXX"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_CXX" >&5
2873 $as_echo "$ac_ct_CXX" >&6; }
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
2876 $as_echo "no
" >&6; }
2880 test -n "$ac_ct_CXX" && break
2883 if test "x
$ac_ct_CXX" = x; then
2886 case $cross_compiling:$ac_tool_warned in
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2889 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2890 ac_tool_warned=yes ;;
2898 # Provide some information about the compiler.
2899 $as_echo "$as_me:${as_lineno-$LINENO}: checking
for C
++ compiler version
" >&5
2902 for ac_option in --version -v -V -qversion; do
2903 { { ac_try="$ac_compiler $ac_option >&5"
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2908 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2909 $as_echo "$ac_try_echo"; } >&5
2910 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2912 if test -s conftest.err; then
2914 ... rest of stderr output deleted ...
2915 10q' conftest.err >conftest.er1
2916 cat conftest.er1 >&5
2917 rm -f conftest.er1 conftest.err
2919 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
2920 test $ac_status = 0; }
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C
++ compiler
" >&5
2924 $as_echo_n "checking whether we are using the GNU C
++ compiler...
" >&6; }
2925 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
2926 $as_echo_n "(cached
) " >&6
2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929 /* end confdefs.h. */
2942 if ac_fn_cxx_try_compile "$LINENO"; then :
2947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2948 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_cxx_compiler_gnu" >&5
2952 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2953 if test $ac_compiler_gnu = yes; then
2958 ac_test_CXXFLAGS=${CXXFLAGS+set}
2959 ac_save_CXXFLAGS=$CXXFLAGS
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX accepts
-g" >&5
2961 $as_echo_n "checking whether
$CXX accepts
-g...
" >&6; }
2962 if test "${ac_cv_prog_cxx_g+set}" = set; then :
2963 $as_echo_n "(cached
) " >&6
2965 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2966 ac_cxx_werror_flag=yes
2969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2970 /* end confdefs.h. */
2980 if ac_fn_cxx_try_compile "$LINENO"; then :
2981 ac_cv_prog_cxx_g=yes
2984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2985 /* end confdefs.h. */
2995 if ac_fn_cxx_try_compile "$LINENO"; then :
2998 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3001 /* end confdefs.h. */
3011 if ac_fn_cxx_try_compile "$LINENO"; then :
3012 ac_cv_prog_cxx_g=yes
3014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3019 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cxx_g" >&5
3022 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3023 if test "$ac_test_CXXFLAGS" = set; then
3024 CXXFLAGS=$ac_save_CXXFLAGS
3025 elif test $ac_cv_prog_cxx_g = yes; then
3026 if test "$GXX" = yes; then
3032 if test "$GXX" = yes; then
3039 ac_cpp='$CPP $CPPFLAGS'
3040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3044 if test -n "$ac_tool_prefix"; then
3045 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3046 set dummy ${ac_tool_prefix}ar; ac_word=$2
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3048 $as_echo_n "checking
for $ac_word...
" >&6; }
3049 if test "${ac_cv_prog_AR+set}" = set; then :
3050 $as_echo_n "(cached
) " >&6
3052 if test -n "$AR"; then
3053 ac_cv_prog_AR="$AR" # Let the user override the test.
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062 ac_cv_prog_AR="${ac_tool_prefix}ar"
3063 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3073 if test -n "$AR"; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
3075 $as_echo "$AR" >&6; }
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3078 $as_echo "no
" >&6; }
3083 if test -z "$ac_cv_prog_AR"; then
3085 # Extract the first word of "ar", so it can be a program name with args.
3086 set dummy ar; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3088 $as_echo_n "checking
for $ac_word...
" >&6; }
3089 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3090 $as_echo_n "(cached
) " >&6
3092 if test -n "$ac_ct_AR"; then
3093 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102 ac_cv_prog_ac_ct_AR="ar"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3112 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3113 if test -n "$ac_ct_AR"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
3115 $as_echo "$ac_ct_AR" >&6; }
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3118 $as_echo "no
" >&6; }
3121 if test "x
$ac_ct_AR" = x; then
3124 case $cross_compiling:$ac_tool_warned in
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3127 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3128 ac_tool_warned=yes ;;
3136 if test -n "$ac_tool_prefix"; then
3137 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
3138 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3140 $as_echo_n "checking
for $ac_word...
" >&6; }
3141 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3142 $as_echo_n "(cached
) " >&6
3144 if test -n "$RANLIB"; then
3145 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3164 RANLIB=$ac_cv_prog_RANLIB
3165 if test -n "$RANLIB"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
3167 $as_echo "$RANLIB" >&6; }
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3170 $as_echo "no
" >&6; }
3175 if test -z "$ac_cv_prog_RANLIB"; then
3176 ac_ct_RANLIB=$RANLIB
3177 # Extract the first word of "ranlib
", so it can be a program name with args.
3178 set dummy ranlib; ac_word=$2
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3180 $as_echo_n "checking
for $ac_word...
" >&6; }
3181 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3182 $as_echo_n "(cached
) " >&6
3184 if test -n "$ac_ct_RANLIB"; then
3185 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194 ac_cv_prog_ac_ct_RANLIB="ranlib
"
3195 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3204 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3205 if test -n "$ac_ct_RANLIB"; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
3207 $as_echo "$ac_ct_RANLIB" >&6; }
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3210 $as_echo "no
" >&6; }
3213 if test "x
$ac_ct_RANLIB" = x; then
3216 case $cross_compiling:$ac_tool_warned in
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3219 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3220 ac_tool_warned=yes ;;
3222 RANLIB=$ac_ct_RANLIB
3225 RANLIB="$ac_cv_prog_RANLIB"
3229 #-------------------------------------------------------------------------
3230 # MCPPBS specific program checks
3231 #-------------------------------------------------------------------------
3232 # These macros check to see if we can do a stow-based install and also
3233 # check for an isa simulator suitable for running the unit test programs
3236 # Find a good install program. We prefer a C program (faster),
3237 # so one script is as good as another. But avoid the broken or
3238 # incompatible versions:
3239 # SysV /etc/install, /usr/sbin/install
3240 # SunOS /usr/etc/install
3241 # IRIX /sbin/install
3243 # AmigaOS /C/install, which installs bootblocks on floppy discs
3244 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3245 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3246 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
3247 # OS/2's system install, which has a completely different semantic
3248 # ./install, which can be erroneously created by make from ./install.sh.
3249 # Reject install programs that cannot install multiple files.
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a BSD-compatible
install" >&5
3251 $as_echo_n "checking
for a BSD-compatible
install...
" >&6; }
3252 if test -z "$INSTALL"; then
3253 if test "${ac_cv_path_install+set}" = set; then :
3254 $as_echo_n "(cached
) " >&6
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 test -z "$as_dir" && as_dir=.
3261 # Account for people who put trailing slashes in PATH elements.
3262 case $as_dir/ in #((
3263 ./ | .// | /[cC]/* | \
3264 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3265 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3268 # OSF1 and SCO ODT 3.0 have their own names for install.
3269 # Don't use installbsd from OSF since it installs stuff as root
3271 for ac_prog in ginstall scoinst install; do
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3274 if test $ac_prog = install &&
3275 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3276 # AIX install. It has an incompatible calling convention.
3278 elif test $ac_prog = install &&
3279 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3280 # program-specific install script used by HP pwplus--don't use.
3283 rm -rf conftest.one conftest.two conftest.dir
3284 echo one > conftest.one
3285 echo two > conftest.two
3287 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir
" &&
3288 test -s conftest.one && test -s conftest.two &&
3289 test -s conftest.dir/conftest.one &&
3290 test -s conftest.dir/conftest.two
3292 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3305 rm -rf conftest.one conftest.two conftest.dir
3308 if test "${ac_cv_path_install+set}" = set; then
3309 INSTALL=$ac_cv_path_install
3311 # As a last resort, use the slow shell script. Don't cache a
3312 # value for INSTALL within a source directory, because that will
3313 # break other packages using the cache if that directory is
3314 # removed, or if the value is a relative name.
3315 INSTALL=$ac_install_sh
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $INSTALL" >&5
3319 $as_echo "$INSTALL" >&6; }
3321 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3322 # It thinks the first close brace ends the variable substitution.
3323 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3325 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3327 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3331 # Configure command line option
3333 # Check whether --enable-stow was given.
3334 if test "${enable_stow+set}" = set; then :
3335 enableval=$enable_stow; enable_stow="yes"
3343 # Environment variables
3348 # Check for install script
3352 # Deterimine if native build and set prefix appropriately
3354 if test ${enable_stow} = "yes" ; then :
3358 # Extract the first word of "$ac_prog", so it can be a program name with args.
3359 set dummy $ac_prog; ac_word=$2
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3361 $as_echo_n "checking
for $ac_word...
" >&6; }
3362 if test "${ac_cv_prog_stow+set}" = set; then :
3363 $as_echo_n "(cached
) " >&6
3365 if test -n "$stow"; then
3366 ac_cv_prog_stow="$stow" # Let the user override the test.
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3375 ac_cv_prog_stow="$ac_prog"
3376 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3385 stow=$ac_cv_prog_stow
3386 if test -n "$stow"; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $stow" >&5
3388 $as_echo "$stow" >&6; }
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3391 $as_echo "no
" >&6; }
3395 test -n "$stow" && break
3397 test -n "$stow" || stow="no
"
3399 if test ${stow} = "no
" ; then :
3401 as_fn_error "Cannot use
--enable-stow since stow is not available
" "$LINENO" 5
3405 # Check if native or non-native build
3407 if test "${build}" = "${host}" ; then :
3410 # build == host so this is a native build. Make sure --prefix not
3411 # set and $STOW_PREFIX is set, then set prefix=$STOW_PREFIX.
3413 if test "${prefix}" = "NONE
" && test -n "${STOW_PREFIX}" ; then :
3415 prefix="${STOW_PREFIX}"
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \
$STOW_PREFIX from environment
" >&5
3417 $as_echo "$as_me: Using \
$STOW_PREFIX from environment
" >&6;}
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix
=${prefix}" >&5
3419 $as_echo "$as_me: prefix
=${prefix}" >&6;}
3427 # build != host so this is a non-native build. Make sure --prefix
3428 # not set and $STOW_ROOT is set, then set
3429 # prefix=$STOW_ROOT/${host_alias}.
3431 if test "${prefix}" = "NONE
" && test -n "${STOW_ROOT}" ; then :
3433 prefix="${STOW_ROOT}/${host_alias}"
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \
$STOW_ROOT from environment
" >&5
3435 $as_echo "$as_me: Using \
$STOW_ROOT from environment
" >&6;}
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix
=${prefix}" >&5
3437 $as_echo "$as_me: prefix
=${prefix}" >&6;}
3449 if test "${build}" != "${host}" ; then :
3451 if test -n "$ac_tool_prefix"; then
3452 for ac_prog in isa-run run
3454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3457 $as_echo_n "checking
for $ac_word...
" >&6; }
3458 if test "${ac_cv_prog_RUN+set}" = set; then :
3459 $as_echo_n "(cached
) " >&6
3461 if test -n "$RUN"; then
3462 ac_cv_prog_RUN="$RUN" # Let the user override the test.
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471 ac_cv_prog_RUN="$ac_tool_prefix$ac_prog"
3472 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3482 if test -n "$RUN"; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUN" >&5
3484 $as_echo "$RUN" >&6; }
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3487 $as_echo "no
" >&6; }
3491 test -n "$RUN" && break
3494 if test -z "$RUN"; then
3496 for ac_prog in isa-run run
3498 # Extract the first word of "$ac_prog", so it can be a program name with args.
3499 set dummy $ac_prog; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3501 $as_echo_n "checking
for $ac_word...
" >&6; }
3502 if test "${ac_cv_prog_ac_ct_RUN+set}" = set; then :
3503 $as_echo_n "(cached
) " >&6
3505 if test -n "$ac_ct_RUN"; then
3506 ac_cv_prog_ac_ct_RUN="$ac_ct_RUN" # Let the user override the test.
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515 ac_cv_prog_ac_ct_RUN="$ac_prog"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3525 ac_ct_RUN=$ac_cv_prog_ac_ct_RUN
3526 if test -n "$ac_ct_RUN"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RUN" >&5
3528 $as_echo "$ac_ct_RUN" >&6; }
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3531 $as_echo "no
" >&6; }
3535 test -n "$ac_ct_RUN" && break
3538 if test "x
$ac_ct_RUN" = x; then
3541 case $cross_compiling:$ac_tool_warned in
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3544 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3545 ac_tool_warned=yes ;;
3551 if test ${RUN} = "no
" ; then :
3553 as_fn_error "Cannot
find simulator
for target
${target_alias}" "$LINENO" 5
3566 #-------------------------------------------------------------------------
3567 # Checks for header files
3568 #-------------------------------------------------------------------------
3572 ac_cpp='$CPP $CPPFLAGS'
3573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3577 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3578 # On Suns, sometimes $CPP names a directory.
3579 if test -n "$CPP" && test -d "$CPP"; then
3582 if test -z "$CPP"; then
3583 if test "${ac_cv_prog_CPP+set}" = set; then :
3584 $as_echo_n "(cached
) " >&6
3586 # Double quotes because CPP needs to be expanded
3587 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3590 for ac_c_preproc_warn_flag in '' yes
3592 # Use a header file that comes with gcc, so configuring glibc
3593 # with a fresh cross-compiler works.
3594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3595 # <limits.h> exists even on freestanding compilers.
3596 # On the NeXT, cc -E runs the code through the compiler's parser,
3597 # not just through cpp. "Syntax error
" is here to catch this case.
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3601 # include <limits.h>
3603 # include <assert.h>
3607 if ac_fn_c_try_cpp "$LINENO"; then :
3610 # Broken: fails on valid input.
3613 rm -f conftest.err conftest.$ac_ext
3615 # OK, works on sane cases. Now check whether nonexistent headers
3616 # can be detected and how.
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3619 #include <ac_nonexistent.h>
3621 if ac_fn_c_try_cpp "$LINENO"; then :
3622 # Broken: success on invalid input.
3625 # Passes both tests.
3629 rm -f conftest.err conftest.$ac_ext
3632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633 rm -f conftest.err conftest.$ac_ext
3634 if $ac_preproc_ok; then :
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3647 $as_echo "$CPP" >&6; }
3649 for ac_c_preproc_warn_flag in '' yes
3651 # Use a header file that comes with gcc, so configuring glibc
3652 # with a fresh cross-compiler works.
3653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3654 # <limits.h> exists even on freestanding compilers.
3655 # On the NeXT, cc -E runs the code through the compiler's parser,
3656 # not just through cpp. "Syntax error
" is here to catch this case.
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3660 # include <limits.h>
3662 # include <assert.h>
3666 if ac_fn_c_try_cpp "$LINENO"; then :
3669 # Broken: fails on valid input.
3672 rm -f conftest.err conftest.$ac_ext
3674 # OK, works on sane cases. Now check whether nonexistent headers
3675 # can be detected and how.
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3678 #include <ac_nonexistent.h>
3680 if ac_fn_c_try_cpp "$LINENO"; then :
3681 # Broken: success on invalid input.
3684 # Passes both tests.
3688 rm -f conftest.err conftest.$ac_ext
3691 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3692 rm -f conftest.err conftest.$ac_ext
3693 if $ac_preproc_ok; then :
3696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3698 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3699 See \`config.log' for more details.
" "$LINENO" 5; }
3703 ac_cpp='$CPP $CPPFLAGS'
3704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3710 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3711 if test "${ac_cv_path_GREP+set}" = set; then :
3712 $as_echo_n "(cached
) " >&6
3714 if test -z "$GREP"; then
3715 ac_path_GREP_found=false
3716 # Loop through the user's path and test for each of PROGNAME-LIST
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3721 test -z "$as_dir" && as_dir=.
3722 for ac_prog in grep ggrep; do
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3725 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3726 # Check for GNU ac_path_GREP and select it if it is found.
3727 # Check for GNU $ac_path_GREP
3728 case `"$ac_path_GREP" --version 2>&1` in
3730 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3733 $as_echo_n 0123456789 >"conftest.
in"
3736 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3737 mv "conftest.tmp
" "conftest.
in"
3738 cp "conftest.
in" "conftest.
nl"
3739 $as_echo 'GREP' >> "conftest.
nl"
3740 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3741 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3742 as_fn_arith $ac_count + 1 && ac_count=$as_val
3743 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3744 # Best one so far, save it but keep looking for a better one
3745 ac_cv_path_GREP="$ac_path_GREP"
3746 ac_path_GREP_max=$ac_count
3748 # 10*(2^10) chars as input seems more than enough
3749 test $ac_count -gt 10 && break
3751 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3754 $ac_path_GREP_found && break 3
3759 if test -z "$ac_cv_path_GREP"; then
3760 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3763 ac_cv_path_GREP=$GREP
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3768 $as_echo "$ac_cv_path_GREP" >&6; }
3769 GREP="$ac_cv_path_GREP"
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3773 $as_echo_n "checking
for egrep...
" >&6; }
3774 if test "${ac_cv_path_EGREP+set}" = set; then :
3775 $as_echo_n "(cached
) " >&6
3777 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3778 then ac_cv_path_EGREP="$GREP -E"
3780 if test -z "$EGREP"; then
3781 ac_path_EGREP_found=false
3782 # Loop through the user's path and test for each of PROGNAME-LIST
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3787 test -z "$as_dir" && as_dir=.
3788 for ac_prog in egrep; do
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3791 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3792 # Check for GNU ac_path_EGREP and select it if it is found.
3793 # Check for GNU $ac_path_EGREP
3794 case `"$ac_path_EGREP" --version 2>&1` in
3796 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3799 $as_echo_n 0123456789 >"conftest.
in"
3802 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3803 mv "conftest.tmp
" "conftest.
in"
3804 cp "conftest.
in" "conftest.
nl"
3805 $as_echo 'EGREP' >> "conftest.
nl"
3806 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3807 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3808 as_fn_arith $ac_count + 1 && ac_count=$as_val
3809 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3810 # Best one so far, save it but keep looking for a better one
3811 ac_cv_path_EGREP="$ac_path_EGREP"
3812 ac_path_EGREP_max=$ac_count
3814 # 10*(2^10) chars as input seems more than enough
3815 test $ac_count -gt 10 && break
3817 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3820 $ac_path_EGREP_found && break 3
3825 if test -z "$ac_cv_path_EGREP"; then
3826 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3829 ac_cv_path_EGREP=$EGREP
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3835 $as_echo "$ac_cv_path_EGREP" >&6; }
3836 EGREP="$ac_cv_path_EGREP"
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3840 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3841 if test "${ac_cv_header_stdc+set}" = set; then :
3842 $as_echo_n "(cached
) " >&6
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3859 if ac_fn_c_try_compile "$LINENO"; then :
3860 ac_cv_header_stdc=yes
3862 ac_cv_header_stdc=no
3864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866 if test $ac_cv_header_stdc = yes; then
3867 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3873 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3874 $EGREP "memchr
" >/dev/null 2>&1; then :
3877 ac_cv_header_stdc=no
3883 if test $ac_cv_header_stdc = yes; then
3884 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3890 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3891 $EGREP "free
" >/dev/null 2>&1; then :
3894 ac_cv_header_stdc=no
3900 if test $ac_cv_header_stdc = yes; then
3901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3902 if test "$cross_compiling" = yes; then :
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3909 #if ((' ' & 0x0FF) == 0x020)
3910 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3911 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3913 # define ISLOWER(c) \
3914 (('a' <= (c) && (c) <= 'i') \
3915 || ('j' <= (c) && (c) <= 'r') \
3916 || ('s' <= (c) && (c) <= 'z'))
3917 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3920 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3925 for (i = 0; i < 256; i++)
3926 if (XOR (islower (i), ISLOWER (i))
3927 || toupper (i) != TOUPPER (i))
3932 if ac_fn_c_try_run "$LINENO"; then :
3935 ac_cv_header_stdc=no
3937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3938 conftest.$ac_objext conftest.beam conftest.$ac_ext
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3944 $as_echo "$ac_cv_header_stdc" >&6; }
3945 if test $ac_cv_header_stdc = yes; then
3947 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3952 #-------------------------------------------------------------------------
3953 # Default compiler flags
3954 #-------------------------------------------------------------------------
3958 CXXFLAGS
="-Wall -O2"
3961 #-------------------------------------------------------------------------
3962 # MCPPBS subproject list
3963 #-------------------------------------------------------------------------
3964 # Order list so that subprojects only depend on those listed earlier.
3965 # The '*' suffix indicates an optional subproject. The '**' suffix
3966 # indicates an optional subproject which is also the name of a group.
3970 # Add command line argument to enable all optional subprojects
3972 # Check whether --enable-optional-subprojects was given.
3973 if test "${enable_optional_subprojects+set}" = set; then :
3974 enableval
=$enable_optional_subprojects;
3978 # Loop through the subprojects given in the macro argument
3982 # Determine if this is a required or an optional subproject
3986 # Determine if there is a group with the same name
3990 # Create variations of the subproject name suitable for use as a CPP
3991 # enabled define, a shell enabled variable, and a shell function
4003 # Add subproject to our running list
4005 subprojects
="$subprojects riscv"
4007 # Process the subproject appropriately. If enabled add it to the
4008 # $enabled_subprojects running shell variable, set a
4009 # SUBPROJECT_ENABLED C define, and include the appropriate
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : riscv" >&5
4014 $as_echo "$as_me: configuring default subproject : riscv" >&6;}
4015 ac_config_files
="$ac_config_files riscv.mk:riscv/riscv.mk.in"
4017 enable_riscv_sproj
="yes"
4018 subprojects_enabled
="$subprojects_enabled riscv"
4020 $as_echo "#define RISCV_ENABLED /**/" >>confdefs.h
4022 # Check whether --enable-fpu was given.
4023 if test "${enable_fpu+set}" = set; then :
4024 enableval
=$enable_fpu;
4027 if test "x$enable_fpu" != "xno"; then :
4030 $as_echo "#define RISCV_ENABLE_FPU /**/" >>confdefs.h
4035 # Check whether --enable-64bit was given.
4036 if test "${enable_64bit+set}" = set; then :
4037 enableval
=$enable_64bit;
4040 if test "x$enable_64bit" != "xno"; then :
4043 $as_echo "#define RISCV_ENABLE_64BIT /**/" >>confdefs.h
4048 libopc
=`dirname \`which riscv-gcc\
``/..
/`$ac_config_guess`/riscv
/lib
/libopcodes.a
4049 as_ac_File
=`$as_echo "ac_cv_file_$libopc" | $as_tr_sh`
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $libopc" >&5
4051 $as_echo_n "checking for $libopc... " >&6; }
4052 if { as_var
=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
4053 $as_echo_n "(cached) " >&6
4055 test "$cross_compiling" = yes &&
4056 as_fn_error
"cannot check for file existence when cross compiling" "$LINENO" 5
4057 if test -r "$libopc"; then
4058 eval "$as_ac_File=yes"
4060 eval "$as_ac_File=no"
4063 eval ac_res
=\$
$as_ac_File
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4065 $as_echo "$ac_res" >&6; }
4066 eval as_val
=\$
$as_ac_File
4067 if test "x$as_val" = x
""yes; then :
4069 cat >>confdefs.h
<<_ACEOF
4070 #define `$as_echo "HAVE_$libopc" | $as_tr_cpp` 1
4072 have_libopcodes
="yes"
4074 have_libopcodes
="no"
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bfd_init" >&5
4079 $as_echo_n "checking for library containing bfd_init... " >&6; }
4080 if test "${ac_cv_search_bfd_init+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4083 ac_func_search_save_LIBS
=$LIBS
4084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4087 /* Override any GCC internal prototype to avoid an error.
4088 Use char because int might match the return type of a GCC
4089 builtin and then its argument prototype would still apply. */
4102 for ac_lib
in '' bfd
; do
4103 if test -z "$ac_lib"; then
4104 ac_res
="none required"
4107 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4109 if ac_fn_c_try_link
"$LINENO"; then :
4110 ac_cv_search_bfd_init
=$ac_res
4112 rm -f core conftest.err conftest.
$ac_objext \
4114 if test "${ac_cv_search_bfd_init+set}" = set; then :
4118 if test "${ac_cv_search_bfd_init+set}" = set; then :
4121 ac_cv_search_bfd_init
=no
4124 LIBS
=$ac_func_search_save_LIBS
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bfd_init" >&5
4127 $as_echo "$ac_cv_search_bfd_init" >&6; }
4128 ac_res
=$ac_cv_search_bfd_init
4129 if test "$ac_res" != no
; then :
4130 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4133 have_libopcodes
="no"
4137 if test "$have_libopcodes" = "no"; then :
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find opcodes library" >&5
4140 $as_echo "$as_me: WARNING: Could not find opcodes library" >&2;}
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Build will not include disassembly support" >&5
4142 $as_echo "$as_me: WARNING: Build will not include disassembly support" >&2;}
4146 LIBS
="$libopc $LIBS"
4148 $as_echo "#define RISCV_HAVE_LIBOPCODES /**/" >>confdefs.h
4157 # Determine if this is a required or an optional subproject
4161 # Determine if there is a group with the same name
4165 # Create variations of the subproject name suitable for use as a CPP
4166 # enabled define, a shell enabled variable, and a shell function
4178 # Add subproject to our running list
4180 subprojects
="$subprojects softfloat"
4182 # Process the subproject appropriately. If enabled add it to the
4183 # $enabled_subprojects running shell variable, set a
4184 # SUBPROJECT_ENABLED C define, and include the appropriate
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : softfloat" >&5
4189 $as_echo "$as_me: configuring default subproject : softfloat" >&6;}
4190 ac_config_files
="$ac_config_files softfloat.mk:softfloat/softfloat.mk.in"
4192 enable_softfloat_sproj
="yes"
4193 subprojects_enabled
="$subprojects_enabled softfloat"
4195 $as_echo "#define SOFTFLOAT_ENABLED /**/" >>confdefs.h
4202 # Determine if this is a required or an optional subproject
4206 # Determine if there is a group with the same name
4210 # Create variations of the subproject name suitable for use as a CPP
4211 # enabled define, a shell enabled variable, and a shell function
4223 # Add subproject to our running list
4225 subprojects
="$subprojects softfloat_riscv"
4227 # Process the subproject appropriately. If enabled add it to the
4228 # $enabled_subprojects running shell variable, set a
4229 # SUBPROJECT_ENABLED C define, and include the appropriate
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : softfloat_riscv" >&5
4234 $as_echo "$as_me: configuring default subproject : softfloat_riscv" >&6;}
4235 ac_config_files
="$ac_config_files softfloat_riscv.mk:softfloat_riscv/softfloat_riscv.mk.in"
4237 enable_softfloat_riscv_sproj
="yes"
4238 subprojects_enabled
="$subprojects_enabled softfloat_riscv"
4240 $as_echo "#define SOFTFLOAT_RISCV_ENABLED /**/" >>confdefs.h
4247 # Output make variables
4254 #-------------------------------------------------------------------------
4255 # MCPPBS subproject groups
4256 #-------------------------------------------------------------------------
4257 # If a group has the same name as a subproject then you must add the
4258 # '**' suffix in the subproject list above. The list of subprojects in a
4259 # group should be ordered so that subprojets only depend on those listed
4260 # earlier. Here is an example:
4262 # MCPPBS_GROUP( [group-name], [sproja,sprojb,...] )
4265 #-------------------------------------------------------------------------
4267 #-------------------------------------------------------------------------
4269 ac_config_headers
="$ac_config_headers config.h"
4271 ac_config_files
="$ac_config_files Makefile"
4273 cat >confcache
<<\_ACEOF
4274 # This file is a shell script that caches the results of configure
4275 # tests run on this system so they can be shared between configure
4276 # scripts and configure runs, see configure's option --config-cache.
4277 # It is not useful on other systems. If it contains results you don't
4278 # want to keep, you may remove or edit it.
4280 # config.status only pays attention to the cache file if you give it
4281 # the --recheck option to rerun configure.
4283 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4284 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4289 # The following way of writing the cache mishandles newlines in values,
4290 # but we know of no workaround that is simple, portable, and efficient.
4291 # So, we kill variables containing newlines.
4292 # Ultrix sh set writes to stderr and can't be redirected directly,
4293 # and sets the high bit in the cache file unless we assign to the vars.
4295 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4296 eval ac_val
=\$
$ac_var
4300 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4301 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4304 _ | IFS | as_nl
) ;; #(
4305 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
4306 *) { eval $ac_var=; unset $ac_var;} ;;
4312 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4313 *${as_nl}ac_space
=\
*)
4314 # `set' does not quote correctly, so add quotes: double-quote
4315 # substitution turns \\\\ into \\, and sed turns \\ into \.
4318 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4321 # `set' quotes correctly as required by POSIX, so do not add quotes.
4322 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4331 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4333 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4335 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
4336 if test -w "$cache_file"; then
4337 test "x$cache_file" != "x/dev/null" &&
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4339 $as_echo "$as_me: updating cache $cache_file" >&6;}
4340 cat confcache
>$cache_file
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4343 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4348 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4349 # Let make expand exec_prefix.
4350 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4352 DEFS
=-DHAVE_CONFIG_H
4356 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4357 # 1. Remove the extension, and $U if already installed.
4358 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
4359 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
4360 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4361 # will be set to the directory where LIBOBJS objects are built.
4362 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4363 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
4367 LTLIBOBJS
=$ac_ltlibobjs
4371 : ${CONFIG_STATUS=./config.status}
4373 ac_clean_files_save
=$ac_clean_files
4374 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4376 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4378 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4380 # Generated by $as_me.
4381 # Run this file to recreate the current configuration.
4382 # Compiler output produced by configure, useful for debugging
4383 # configure, is in config.log if it exists.
4389 SHELL=\${CONFIG_SHELL-$SHELL}
4392 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
4393 ## -------------------- ##
4394 ## M4sh Initialization. ##
4395 ## -------------------- ##
4397 # Be more Bourne compatible
4398 DUALCASE
=1; export DUALCASE
# for MKS sh
4399 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
4402 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4403 # is contrary to our usage. Disable this feature.
4404 alias -g '${1+"$@"}'='"$@"'
4405 setopt NO_GLOB_SUBST
4407 case `(set -o) 2>/dev/null` in #(
4419 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4420 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4421 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4422 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4423 # Prefer a ksh shell builtin over an external printf program on Solaris,
4424 # but without wasting forks for bash or zsh.
4425 if test -z "$BASH_VERSION$ZSH_VERSION" \
4426 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4427 as_echo='print
-r --'
4428 as_echo_n='print
-rn --'
4429 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4430 as_echo='printf %s
\n'
4431 as_echo_n='printf %s
'
4433 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4434 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
4435 as_echo_n='/usr
/ucb
/echo -n'
4437 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4438 as_echo_n_body='eval
4442 expr "X$arg" : "X\\(.*\\)$as_nl";
4443 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4445 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
4447 export as_echo_n_body
4448 as_echo_n='sh
-c $as_echo_n_body as_echo
'
4451 as_echo='sh
-c $as_echo_body as_echo
'
4454 # The user is always right.
4455 if test "${PATH_SEPARATOR+set}" != set; then
4457 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4458 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4465 # We need space, tab and new line, in precisely that order. Quoting is
4466 # there to prevent editors from complaining about space-tab.
4467 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4468 # splitting by setting IFS to empty value.)
4471 # Find who we are. Look in the path if we contain no directory separator.
4473 *[\\/]* ) as_myself=$0 ;;
4474 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 test -z "$as_dir" && as_dir=.
4479 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4485 # We did not find ourselves, most probably we were run as `sh COMMAND'
4486 # in which case we are not to be found in the path.
4487 if test "x$as_myself" = x
; then
4490 if test ! -f "$as_myself"; then
4491 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4495 # Unset variables that we do not need and which cause bugs (e.g. in
4496 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4497 # suppresses any "Segmentation fault" message there. '((' could
4498 # trigger a bug in pdksh 5.2.14.
4499 for as_var
in BASH_ENV ENV MAIL MAILPATH
4500 do eval test x\
${$as_var+set} = xset \
4501 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
4514 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
4517 # as_fn_error ERROR [LINENO LOG_FD]
4518 # ---------------------------------
4519 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4520 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4521 # script with status $?, using 1 if that was 0.
4524 as_status
=$?
; test $as_status -eq 0 && as_status
=1
4526 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
4527 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4529 $as_echo "$as_me: error: $1" >&2
4530 as_fn_exit
$as_status
4534 # as_fn_set_status STATUS
4535 # -----------------------
4536 # Set $? to STATUS, without forking.
4540 } # as_fn_set_status
4544 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4554 # Portably unset VAR.
4557 { eval $1=; unset $1;}
4559 as_unset
=as_fn_unset
4560 # as_fn_append VAR VALUE
4561 # ----------------------
4562 # Append the text in VALUE to the end of the definition contained in VAR. Take
4563 # advantage of any shell optimizations that allow amortized linear growth over
4564 # repeated appends, instead of the typical quadratic growth present in naive
4566 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
4567 eval 'as_fn_append ()
4578 # as_fn_arith ARG...
4579 # ------------------
4580 # Perform arithmetic evaluation on the ARGs, and store the result in the
4581 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4582 # must be portable across $(()) and expr.
4583 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
4584 eval 'as_fn_arith ()
4591 as_val
=`expr "$@" || test $? -eq 1`
4596 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
4597 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
4603 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4604 as_basename
=basename
4609 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
4615 as_me
=`$as_basename -- "$0" ||
4616 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4617 X"$0" : 'X\(//\)$' \| \
4618 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4620 sed '/^.*\/\([^/][^/]*\)\/*$/{
4634 # Avoid depending upon Character Ranges.
4635 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4636 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4637 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4638 as_cr_digits
='0123456789'
4639 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4641 ECHO_C
= ECHO_N
= ECHO_T
=
4642 case `echo -n x` in #(((((
4644 case `echo 'xy\c'` in
4645 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
4647 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
4654 rm -f conf$$ conf$$.exe conf$$.
file
4655 if test -d conf$$.dir
; then
4656 rm -f conf$$.dir
/conf$$.
file
4659 mkdir conf$$.dir
2>/dev
/null
4661 if (echo >conf$$.
file) 2>/dev
/null
; then
4662 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4664 # ... but there are two gotchas:
4665 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4666 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4667 # In both cases, we have to default to `cp -p'.
4668 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
4670 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4678 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
4679 rmdir conf$$.dir
2>/dev
/null
4684 # Create "$as_dir" as a directory, including parents if necessary.
4689 -*) as_dir
=.
/$as_dir;;
4691 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
4695 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4696 *) as_qdir
=$as_dir;;
4698 as_dirs
="'$as_qdir' $as_dirs"
4699 as_dir
=`$as_dirname -- "$as_dir" ||
4700 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4701 X"$as_dir" : 'X\(//\)[^/]' \| \
4702 X"$as_dir" : 'X\(//\)$' \| \
4703 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4704 $as_echo X"$as_dir" |
4705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4722 test -d "$as_dir" && break
4724 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
4725 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
4729 if mkdir
-p .
2>/dev
/null
; then
4730 as_mkdir_p
='mkdir -p "$as_dir"'
4732 test -d .
/-p && rmdir .
/-p
4736 if test -x / >/dev
/null
2>&1; then
4739 if ls -dL / >/dev
/null
2>&1; then
4746 if test -d "$1"; then
4752 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4753 ???[sx]*):;;*)false;;esac;fi
4757 as_executable_p
=$as_test_x
4759 # Sed expression to map a string onto a valid CPP name.
4760 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4762 # Sed expression to map a string onto a valid variable name.
4763 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4767 ## ----------------------------------- ##
4768 ## Main body of $CONFIG_STATUS script. ##
4769 ## ----------------------------------- ##
4771 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
4773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4774 # Save the log message, to keep $0 and so on meaningful, and to
4775 # report actual input values of CONFIG_FILES etc. instead of their
4776 # values after options handling.
4778 This file was extended by RISC-V ISA Simulator $as_me ?, which was
4779 generated by GNU Autoconf 2.64. Invocation command line was
4781 CONFIG_FILES = $CONFIG_FILES
4782 CONFIG_HEADERS = $CONFIG_HEADERS
4783 CONFIG_LINKS = $CONFIG_LINKS
4784 CONFIG_COMMANDS = $CONFIG_COMMANDS
4787 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4792 case $ac_config_files in *"
4793 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
4796 case $ac_config_headers in *"
4797 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
4801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4802 # Files that config.status was made for.
4803 config_files="$ac_config_files"
4804 config_headers="$ac_config_headers"
4808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4810 \`$as_me' instantiates files and other configuration actions
4811 from templates according to the current configuration. Unless the files
4812 and actions are specified as TAGs, all are instantiated by default.
4814 Usage: $0 [OPTION]... [TAG]...
4816 -h, --help print this help, then exit
4817 -V, --version print version number and configuration settings, then exit
4818 -q, --quiet, --silent
4819 do not print progress messages
4820 -d, --debug don't remove temporary files
4821 --recheck update $as_me by reconfiguring in the same conditions
4822 --file=FILE[:TEMPLATE]
4823 instantiate the configuration file FILE
4824 --header=FILE[:TEMPLATE]
4825 instantiate the configuration header FILE
4827 Configuration files:
4830 Configuration headers:
4833 Report bugs to <Andrew Waterman>."
4836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4838 RISC-V ISA Simulator config.status ?
4839 configured by $0, generated by GNU Autoconf 2.64,
4840 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4842 Copyright (C) 2009 Free Software Foundation, Inc.
4843 This config.status script is free software; the Free Software Foundation
4844 gives unlimited permission to copy, distribute and modify it."
4849 test -n "\$AWK" || AWK=awk
4852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4853 # The default lists apply if the user does not specify any file.
4859 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
4860 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
4871 # Handling of the options.
4872 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
4874 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
4875 $as_echo "$ac_cs_version"; exit ;;
4876 --debug |
--debu |
--deb |
--de |
--d |
-d )
4878 --file |
--fil |
--fi |
--f )
4881 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4883 as_fn_append CONFIG_FILES
" '$ac_optarg'"
4884 ac_need_defaults
=false
;;
4885 --header |
--heade |
--head |
--hea )
4888 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4890 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
4891 ac_need_defaults
=false
;;
4893 # Conflict between --help and --header
4894 as_fn_error
"ambiguous option: \`$1'
4895 Try \`$0 --help' for more information.";;
4896 --help |
--hel |
-h )
4897 $as_echo "$ac_cs_usage"; exit ;;
4898 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
4899 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
4903 -*) as_fn_error
"unrecognized option: \`$1'
4904 Try \`$0 --help' for more information." ;;
4906 *) as_fn_append ac_config_targets
" $1"
4907 ac_need_defaults
=false
;;
4913 ac_configure_extra_args
=
4915 if $ac_cs_silent; then
4917 ac_configure_extra_args
="$ac_configure_extra_args --silent"
4921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4922 if \$ac_cs_recheck; then
4923 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4925 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4926 CONFIG_SHELL='$SHELL'
4932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4936 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4937 ## Running $as_me. ##
4943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4948 # Handling of arguments.
4949 for ac_config_target
in $ac_config_targets
4951 case $ac_config_target in
4952 "riscv.mk") CONFIG_FILES
="$CONFIG_FILES riscv.mk:riscv/riscv.mk.in" ;;
4953 "softfloat.mk") CONFIG_FILES
="$CONFIG_FILES softfloat.mk:softfloat/softfloat.mk.in" ;;
4954 "softfloat_riscv.mk") CONFIG_FILES
="$CONFIG_FILES softfloat_riscv.mk:softfloat_riscv/softfloat_riscv.mk.in" ;;
4955 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
4956 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
4958 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4963 # If the user did not use the arguments to specify the items to instantiate,
4964 # then the envvar interface is used. Set only those that are not.
4965 # We use the long form for the default assignment because of an extremely
4966 # bizarre bug on SunOS 4.1.3.
4967 if $ac_need_defaults; then
4968 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
4969 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
4972 # Have a temporary directory for convenience. Make it in the build tree
4973 # simply because there is no reason against having it here, and in addition,
4974 # creating and moving files from /tmp can sometimes cause problems.
4975 # Hook for its removal unless debugging.
4976 # Note that there is a small window in which the directory will not be cleaned:
4977 # after its creation but before its name has been assigned to `$tmp'.
4981 trap 'exit_status=$?
4982 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4984 trap 'as_fn_exit 1' 1 2 13 15
4986 # Create a (secure) tmp directory for tmp files.
4989 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4990 test -n "$tmp" && test -d "$tmp"
4993 tmp
=.
/conf$$
-$RANDOM
4994 (umask 077 && mkdir
"$tmp")
4995 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
4997 # Set up the scripts for CONFIG_FILES section.
4998 # No need to generate them if there are no CONFIG_FILES.
4999 # This happens for instance with `./config.status config.h'.
5000 if test -n "$CONFIG_FILES"; then
5003 ac_cr
=`echo X | tr X '\015'`
5004 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5005 # But we know of no other shell where ac_cr would be empty at this
5006 # point, so we can use a bashism as a fallback.
5007 if test "x$ac_cr" = x
; then
5008 eval ac_cr
=\$
\'\\r
\'
5010 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5011 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5017 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5022 echo "cat >conf$$subs.awk <<_ACEOF" &&
5023 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5026 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
5027 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5029 for ac_last_try in false false false false false :; do
5030 . ./conf$$subs.sh ||
5031 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
5033 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
5034 if test $ac_delim_n = $ac_delim_num; then
5036 elif $ac_last_try; then
5037 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
5039 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5045 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
5049 s/^/S["/; s
/!.
*/"]=/
5059 s/\(.\{148\}\).*/\1/
5061 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
5066 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5073 s/\(.\{148\}\).*/\1/
5075 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5079 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5084 ' <conf$$subs.awk | sed '
5089 ' >>$CONFIG_STATUS || ac_write_fail=1
5090 rm -f conf$$subs.awk
5091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5093 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
5094 for (key in S) S_is_set[key] = 1
5100 nfields = split(line, field, "@
")
5102 len = length(field[1])
5103 for (i = 2; i < nfields; i++) {
5105 keylen = length(key)
5106 if (S_is_set[key]) {
5108 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5109 len += length(value) + length(field[++i])
5120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5121 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5122 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
5125 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
5126 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
5129 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5130 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
5131 # trailing colons and then remove the whole line if VPATH becomes empty
5132 # (actually we leave an empty line to preserve line numbers).
5133 if test "x
$srcdir" = x.; then
5134 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5138 s/^\([^=]*=[ ]*\):*/\1/
5144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5145 fi # test -n "$CONFIG_FILES"
5147 # Set up the scripts for CONFIG_HEADERS section.
5148 # No need to generate them if there are no CONFIG_HEADERS.
5149 # This happens for instance with `./config.status Makefile'.
5150 if test -n "$CONFIG_HEADERS"; then
5151 cat >"$tmp/defines.
awk" <<\_ACAWK ||
5155 # Transform confdefs.h into an awk script `defines.awk', embedded as
5156 # here-document in config.status, that substitutes the proper values into
5157 # config.h.in to produce config.h.
5159 # Create a delimiter string that does not exist in confdefs.h, to ease
5160 # handling of long lines.
5162 for ac_last_try in false false :; do
5163 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
5164 if test -z "$ac_t"; then
5166 elif $ac_last_try; then
5167 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
5169 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5173 # For the awk script, D is an array of macro values keyed by name,
5174 # likewise P contains macro parameters if any. Preserve backslash
5175 # newline sequences.
5177 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5179 s/.\{148\}/&'"$ac_delim"'/g
5182 s/^[ ]*#[ ]*define[ ][ ]*/ /
5189 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5191 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5195 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5196 D["\
1"]=" \
3\\\\\\n
"\\/p
5198 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5203 s/.\{148\}/&'"$ac_delim"'/g
5208 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5211 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5213 ' <confdefs.h | sed '
5214 s/'"$ac_delim"'/"\\\
5215 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5218 for (key in D) D_is_set[key] = 1
5221 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5223 split(line, arg, " ")
5224 if (arg[1] == "#") {
5228 defundef
= substr
(arg
[1], 2)
5231 split(mac1
, mac2
, "(") #)
5233 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5234 if (D_is_set
[macro
]) {
5235 # Preserve the white space surrounding the "#".
5236 print prefix
"define", macro P
[macro
] D
[macro
]
5239 # Replace #undef with comments. This is necessary, for example,
5240 # in the case of _POSIX_SOURCE, which is predefined and required
5241 # on some systems where configure will not decide to define it.
5242 if (defundef
== "undef") {
5243 print
"/*", prefix defundef
, macro
, "*/"
5251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5252 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
5253 fi # test -n "$CONFIG_HEADERS"
5256 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
5261 :[FHLC
]) ac_mode
=$ac_tag; continue;;
5263 case $ac_mode$ac_tag in
5265 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
5266 :[FH
]-) ac_tag
=-:-;;
5267 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
5284 -) ac_f
="$tmp/stdin";;
5285 *) # Look for the file first in the build tree, then in the source tree
5286 # (if the path is not absolute). The absolute path cannot be DOS-style,
5287 # because $ac_f cannot contain `:'.
5291 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
5293 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
5295 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5296 as_fn_append ac_file_inputs
" '$ac_f'"
5299 # Let's still pretend it is `configure' which instantiates (i.e., don't
5300 # use $as_me), people would be surprised to read:
5301 # /* config.h. Generated by config.status. */
5302 configure_input
='Generated from '`
5303 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5305 if test x
"$ac_file" != x-
; then
5306 configure_input
="$ac_file. $configure_input"
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5308 $as_echo "$as_me: creating $ac_file" >&6;}
5310 # Neutralize special characters interpreted by sed in replacement strings.
5311 case $configure_input in #(
5312 *\
&* |
*\|
* |
*\\* )
5313 ac_sed_conf_input
=`$as_echo "$configure_input" |
5314 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5315 *) ac_sed_conf_input
=$configure_input;;
5319 *:-:* |
*:-) cat >"$tmp/stdin" \
5320 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
5325 ac_dir
=`$as_dirname -- "$ac_file" ||
5326 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5327 X"$ac_file" : 'X\(//\)[^/]' \| \
5328 X"$ac_file" : 'X\(//\)$' \| \
5329 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5330 $as_echo X"$ac_file" |
5331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5348 as_dir
="$ac_dir"; as_fn_mkdir_p
5352 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5354 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5355 # A ".." for each directory in $ac_dir_suffix.
5356 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5357 case $ac_top_builddir_sub in
5358 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5359 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
5362 ac_abs_top_builddir
=$ac_pwd
5363 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
5364 # for backward compatibility:
5365 ac_top_builddir
=$ac_top_build_prefix
5368 .
) # We are building in place.
5370 ac_top_srcdir
=$ac_top_builddir_sub
5371 ac_abs_top_srcdir
=$ac_pwd ;;
5372 [\\/]* | ?
:[\\/]* ) # Absolute name.
5373 ac_srcdir
=$srcdir$ac_dir_suffix;
5374 ac_top_srcdir
=$srcdir
5375 ac_abs_top_srcdir
=$srcdir ;;
5377 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
5378 ac_top_srcdir
=$ac_top_build_prefix$srcdir
5379 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
5381 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
5391 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5392 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
5396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5397 # If the template does not know about datarootdir, expand it.
5398 # FIXME: This hack should be removed a few years after 2.60.
5399 ac_datarootdir_hack
=; ac_datarootdir_seen
=
5410 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5411 *datarootdir
*) ac_datarootdir_seen
=yes;;
5412 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5414 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5417 ac_datarootdir_hack='
5418 s&@datadir@&$datadir&g
5419 s&@docdir@&$docdir&g
5420 s&@infodir@&$infodir&g
5421 s&@localedir@&$localedir&g
5422 s&@mandir@&$mandir&g
5423 s&\\\${datarootdir}&$datarootdir&g' ;;
5427 # Neutralize VPATH when `$srcdir' = `.'.
5428 # Shell code in configure.ac might set extrasub.
5429 # FIXME: do we really want to maintain this feature?
5430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5431 ac_sed_extra="$ac_vpsub
5434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5436 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5437 s|@configure_input@|
$ac_sed_conf_input|
;t t
5438 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
5439 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
5440 s
&@srcdir@
&$ac_srcdir&;t t
5441 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
5442 s
&@top_srcdir@
&$ac_top_srcdir&;t t
5443 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
5444 s
&@builddir@
&$ac_builddir&;t t
5445 s
&@abs_builddir@
&$ac_abs_builddir&;t t
5446 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
5447 s
&@INSTALL@
&$ac_INSTALL&;t t
5448 $ac_datarootdir_hack
5450 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
5451 || as_fn_error "could not create
$ac_file" "$LINENO" 5
5453 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5454 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
5455 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
5457 which seems to be undefined. Please make sure it is defined." >&5
5458 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
5459 which seems to be undefined. Please make sure it is defined." >&2;}
5463 -) cat "$tmp/out" && rm -f "$tmp/out";;
5464 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5466 || as_fn_error "could not create $ac_file" "$LINENO" 5
5472 if test x"$ac_file" != x-; then
5474 $as_echo "/* $configure_input */" \
5475 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5476 } >"$tmp/config.h" \
5477 || as_fn_error "could not create $ac_file" "$LINENO" 5
5478 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5480 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5483 mv "$tmp/config.h" "$ac_file" \
5484 || as_fn_error "could not create $ac_file" "$LINENO" 5
5487 $as_echo "/* $configure_input */" \
5488 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5489 || as_fn_error "could not create -" "$LINENO" 5
5501 ac_clean_files=$ac_clean_files_save
5503 test $ac_write_fail = 0 ||
5504 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
5507 # configure is writing to config.log, and then calls config.status.
5508 # config.status does its own redirection, appending to config.log.
5509 # Unfortunately, on DOS this fails, as config.log is still kept open
5510 # by configure, so config.status won't be able to
write to it
; its
5511 # output is simply discarded. So we exec the FD to /dev/null,
5512 # effectively closing config.log, so it can be properly (re)opened and
5513 # appended to by config.status. When coming back to configure, we
5514 # need to make the FD available again.
5515 if test "$no_create" != yes; then
5517 ac_config_status_args
=
5518 test "$silent" = yes &&
5519 ac_config_status_args
="$ac_config_status_args --quiet"
5521 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5523 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5524 # would make configure fail if this is the last instruction.
5525 $ac_cs_success || as_fn_exit $?
5527 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5529 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}