2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for RISC-V ISA Simulator ?.
5 # Report bugs to <Andrew Waterman>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print
-rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
57 as_echo_n='/usr
/ucb
/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x
; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var
in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\
${$as_var+set} = xset \
124 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
137 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x
; then
140 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required
="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev
/null
; then :
183 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
188 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir
=.
195 for as_base
in sh bash ksh sh5
; do
196 # Try only shells that exist, to save several forks.
197 as_shell
=$as_dir/$as_base
198 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
200 CONFIG_SHELL
=$as_shell as_have_required
=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
209 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
211 CONFIG_SHELL
=$SHELL as_have_required
=yes
216 if test "x$CONFIG_SHELL" != x
; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
226 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x
$as_have_required = xno
; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x
${ZSH_VERSION+set} = xset
; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and Andrew Waterman
242 $0: about your system, including any error possibly output
243 $0: before this message. Then install a modern shell, or
244 $0: manually run the script under such a shell if you do
251 SHELL
=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE
= GREP_OPTIONS
=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir
=.
/$as_dir;;
296 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
300 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs
="'$as_qdir' $as_dirs"
304 as_dir
=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
330 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
365 as_val
=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status
=$1; test $as_status -eq 0 && as_status
=1
379 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit
$as_status
386 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
393 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
405 as_me
=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits
='0123456789'
429 as_cr_alnum
=$as_cr_Letters$as_cr_digits
432 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
433 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x
"$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C
= ECHO_N
= ECHO_T
=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
476 rm -f conf$$ conf$$.exe conf$$.
file
477 if test -d conf$$.dir
; then
478 rm -f conf$$.dir
/conf$$.
file
481 mkdir conf$$.dir
2>/dev
/null
483 if (echo >conf$$.
file) 2>/dev
/null
; then
484 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
492 elif ln conf$$.
file conf$$
2>/dev
/null
; then
500 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
501 rmdir conf$$.dir
2>/dev
/null
503 if mkdir
-p .
2>/dev
/null
; then
504 as_mkdir_p
='mkdir -p "$as_dir"'
506 test -d .
/-p && rmdir .
/-p
510 if test -x / >/dev
/null
2>&1; then
513 if ls -dL / >/dev
/null
2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p
=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix
=/usr
/local
553 ac_config_libobj_dir
=.
560 # Identity of this package.
561 PACKAGE_NAME
='RISC-V ISA Simulator'
562 PACKAGE_TARNAME
='riscv-isa-run'
564 PACKAGE_STRING
='RISC-V ISA Simulator ?'
565 PACKAGE_BUGREPORT
='Andrew Waterman'
568 ac_unique_file
="riscv/common.h"
569 ac_subst_vars
='LTLIBOBJS
634 program_transform_name
647 enable_option_checking
649 enable_optional_subprojects
655 ac_precious_vars
='build_alias
671 # Initialize some variables set by options.
673 ac_init_version
=false
674 ac_unrecognized_opts
=
676 # The variables have the same names as the options, with
677 # dashes changed to underlines.
685 program_transform_name
=s
,x
,x
,
693 # Installation directory options.
694 # These are left unexpanded so users can "make install exec_prefix=/foo"
695 # and all the variables that are supposed to be based on exec_prefix
696 # by default will actually change.
697 # Use braces instead of parens because sh, perl, etc. also accept them.
698 # (The list follows the same order as the GNU Coding Standards.)
699 bindir
='${exec_prefix}/bin'
700 sbindir
='${exec_prefix}/sbin'
701 libexecdir
='${exec_prefix}/libexec'
702 datarootdir
='${prefix}/share'
703 datadir
='${datarootdir}'
704 sysconfdir
='${prefix}/etc'
705 sharedstatedir
='${prefix}/com'
706 localstatedir
='${prefix}/var'
707 includedir
='${prefix}/include'
708 oldincludedir
='/usr/include'
709 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
710 infodir
='${datarootdir}/info'
715 libdir
='${exec_prefix}/lib'
716 localedir
='${datarootdir}/locale'
717 mandir
='${datarootdir}/man'
723 # If the previous option needs an argument, assign it.
724 if test -n "$ac_prev"; then
725 eval $ac_prev=\
$ac_option
731 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
736 # Accept the important Cygnus configure options, so we can diagnose typos.
738 case $ac_dashdash$ac_option in
742 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
744 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
747 -build |
--build |
--buil |
--bui |
--bu)
748 ac_prev
=build_alias
;;
749 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
750 build_alias
=$ac_optarg ;;
752 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
753 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
754 ac_prev
=cache_file
;;
755 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
756 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
757 cache_file
=$ac_optarg ;;
760 cache_file
=config.cache
;;
762 -datadir |
--datadir |
--datadi |
--datad)
764 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
765 datadir
=$ac_optarg ;;
767 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
768 |
--dataroo |
--dataro |
--datar)
769 ac_prev
=datarootdir
;;
770 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
771 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
772 datarootdir
=$ac_optarg ;;
774 -disable-* |
--disable-*)
775 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
776 # Reject names that are not valid shell variable names.
777 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
778 as_fn_error $?
"invalid feature name: $ac_useropt"
779 ac_useropt_orig
=$ac_useropt
780 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
781 case $ac_user_opts in
785 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
786 ac_unrecognized_sep
=', ';;
788 eval enable_
$ac_useropt=no
;;
790 -docdir |
--docdir |
--docdi |
--doc |
--do)
792 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
795 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
797 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
800 -enable-* |
--enable-*)
801 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
802 # Reject names that are not valid shell variable names.
803 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
804 as_fn_error $?
"invalid feature name: $ac_useropt"
805 ac_useropt_orig
=$ac_useropt
806 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
807 case $ac_user_opts in
811 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
812 ac_unrecognized_sep
=', ';;
814 eval enable_
$ac_useropt=\
$ac_optarg ;;
816 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
817 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
818 |
--exec |
--exe |
--ex)
819 ac_prev
=exec_prefix
;;
820 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
821 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
822 |
--exec=* |
--exe=* |
--ex=*)
823 exec_prefix
=$ac_optarg ;;
825 -gas |
--gas |
--ga |
--g)
826 # Obsolete; use --with-gas.
829 -help |
--help |
--hel |
--he |
-h)
831 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
832 ac_init_help
=recursive
;;
833 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
834 ac_init_help
=short
;;
836 -host |
--host |
--hos |
--ho)
837 ac_prev
=host_alias
;;
838 -host=* |
--host=* |
--hos=* |
--ho=*)
839 host_alias
=$ac_optarg ;;
841 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
843 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
845 htmldir
=$ac_optarg ;;
847 -includedir |
--includedir |
--includedi |
--included |
--include \
848 |
--includ |
--inclu |
--incl |
--inc)
849 ac_prev
=includedir
;;
850 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
851 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
852 includedir
=$ac_optarg ;;
854 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
856 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
857 infodir
=$ac_optarg ;;
859 -libdir |
--libdir |
--libdi |
--libd)
861 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
864 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
865 |
--libexe |
--libex |
--libe)
866 ac_prev
=libexecdir
;;
867 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
868 |
--libexe=* |
--libex=* |
--libe=*)
869 libexecdir
=$ac_optarg ;;
871 -localedir |
--localedir |
--localedi |
--localed |
--locale)
873 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
874 localedir
=$ac_optarg ;;
876 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
877 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
878 ac_prev
=localstatedir
;;
879 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
880 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
881 localstatedir
=$ac_optarg ;;
883 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
885 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
889 # Obsolete; use --without-fp.
892 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
893 |
--no-cr |
--no-c |
-n)
896 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
897 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
900 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
901 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
902 |
--oldin |
--oldi |
--old |
--ol |
--o)
903 ac_prev
=oldincludedir
;;
904 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
905 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
906 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
907 oldincludedir
=$ac_optarg ;;
909 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
911 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
914 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
915 |
--program-pre |
--program-pr |
--program-p)
916 ac_prev
=program_prefix
;;
917 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
918 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
919 program_prefix
=$ac_optarg ;;
921 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
922 |
--program-suf |
--program-su |
--program-s)
923 ac_prev
=program_suffix
;;
924 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
925 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
926 program_suffix
=$ac_optarg ;;
928 -program-transform-name |
--program-transform-name \
929 |
--program-transform-nam |
--program-transform-na \
930 |
--program-transform-n |
--program-transform- \
931 |
--program-transform |
--program-transfor \
932 |
--program-transfo |
--program-transf \
933 |
--program-trans |
--program-tran \
934 |
--progr-tra |
--program-tr |
--program-t)
935 ac_prev
=program_transform_name
;;
936 -program-transform-name=* |
--program-transform-name=* \
937 |
--program-transform-nam=* |
--program-transform-na=* \
938 |
--program-transform-n=* |
--program-transform-=* \
939 |
--program-transform=* |
--program-transfor=* \
940 |
--program-transfo=* |
--program-transf=* \
941 |
--program-trans=* |
--program-tran=* \
942 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
943 program_transform_name
=$ac_optarg ;;
945 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
947 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
950 -psdir |
--psdir |
--psdi |
--psd |
--ps)
952 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
955 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
956 |
-silent |
--silent |
--silen |
--sile |
--sil)
959 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
961 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
963 sbindir
=$ac_optarg ;;
965 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
966 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
967 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
969 ac_prev
=sharedstatedir
;;
970 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
971 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
972 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
974 sharedstatedir
=$ac_optarg ;;
976 -site |
--site |
--sit)
978 -site=* |
--site=* |
--sit=*)
981 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
983 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
986 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
987 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
988 ac_prev
=sysconfdir
;;
989 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
990 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
991 sysconfdir
=$ac_optarg ;;
993 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
994 ac_prev
=target_alias
;;
995 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
996 target_alias
=$ac_optarg ;;
998 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1001 -version |
--version |
--versio |
--versi |
--vers |
-V)
1002 ac_init_version
=: ;;
1005 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1008 as_fn_error $?
"invalid package name: $ac_useropt"
1009 ac_useropt_orig
=$ac_useropt
1010 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1015 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1016 ac_unrecognized_sep
=', ';;
1018 eval with_
$ac_useropt=\
$ac_optarg ;;
1020 -without-* |
--without-*)
1021 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1024 as_fn_error $?
"invalid package name: $ac_useropt"
1025 ac_useropt_orig
=$ac_useropt
1026 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1031 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1032 ac_unrecognized_sep
=', ';;
1034 eval with_
$ac_useropt=no
;;
1037 # Obsolete; use --with-x.
1040 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1041 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1042 ac_prev
=x_includes
;;
1043 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1044 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1045 x_includes
=$ac_optarg ;;
1047 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1048 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1049 ac_prev
=x_libraries
;;
1050 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1051 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1052 x_libraries
=$ac_optarg ;;
1054 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1055 Try \`$0 --help' for more information"
1059 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1060 # Reject names that are not valid shell variable names.
1061 case $ac_envvar in #(
1062 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1063 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1065 eval $ac_envvar=\
$ac_optarg
1066 export $ac_envvar ;;
1069 # FIXME: should be removed in autoconf 3.0.
1070 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1071 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1072 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1073 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1079 if test -n "$ac_prev"; then
1080 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1081 as_fn_error $?
"missing argument to $ac_option"
1084 if test -n "$ac_unrecognized_opts"; then
1085 case $enable_option_checking in
1087 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1088 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1092 # Check all directory arguments for consistency.
1093 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1094 datadir sysconfdir sharedstatedir localstatedir includedir \
1095 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1096 libdir localedir mandir
1098 eval ac_val
=\$
$ac_var
1099 # Remove trailing slashes.
1102 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1103 eval $ac_var=\
$ac_val;;
1105 # Be sure to have absolute directory names.
1107 [\\/$
]* | ?
:[\\/]* ) continue;;
1108 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1110 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1113 # There might be people who depend on the old broken behavior: `$host'
1114 # used to hold the argument of --host etc.
1115 # FIXME: To remove some day.
1118 target
=$target_alias
1120 # FIXME: To remove some day.
1121 if test "x$host_alias" != x
; then
1122 if test "x$build_alias" = x
; then
1123 cross_compiling
=maybe
1124 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1125 If a cross compiler is detected then cross compile mode will be used" >&2
1126 elif test "x$build_alias" != "x$host_alias"; then
1132 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1134 test "$silent" = yes && exec 6>/dev
/null
1137 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1138 ac_ls_di
=`ls -di .` &&
1139 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1140 as_fn_error $?
"working directory cannot be determined"
1141 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1142 as_fn_error $?
"pwd does not report name of working directory"
1145 # Find the source files, if location was not specified.
1146 if test -z "$srcdir"; then
1147 ac_srcdir_defaulted
=yes
1148 # Try the directory containing this script, then the parent directory.
1149 ac_confdir
=`$as_dirname -- "$as_myself" ||
1150 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1151 X"$as_myself" : 'X\(//\)[^/]' \| \
1152 X"$as_myself" : 'X\(//\)$' \| \
1153 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1154 $as_echo X"$as_myself" |
1155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1173 if test ! -r "$srcdir/$ac_unique_file"; then
1177 ac_srcdir_defaulted
=no
1179 if test ! -r "$srcdir/$ac_unique_file"; then
1180 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1181 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1183 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1185 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1187 # When building in place, set srcdir=.
1188 if test "$ac_abs_confdir" = "$ac_pwd"; then
1191 # Remove unnecessary trailing slashes from srcdir.
1192 # Double slashes in file names in object file debugging info
1193 # mess up M-x gdb in Emacs.
1195 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1197 for ac_var
in $ac_precious_vars; do
1198 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1199 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1200 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1201 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1205 # Report the --help message.
1207 if test "$ac_init_help" = "long"; then
1208 # Omit some internal or obsolete options to make the list less imposing.
1209 # This message is too long to be a string in the A/UX 3.1 sh.
1211 \`configure' configures RISC-V ISA Simulator ? to adapt to many kinds of systems.
1213 Usage: $0 [OPTION]... [VAR=VALUE]...
1215 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1216 VAR=VALUE. See below for descriptions of some of the useful variables.
1218 Defaults for the options are specified in brackets.
1221 -h, --help display this help and exit
1222 --help=short display options specific to this package
1223 --help=recursive display the short help of all the included packages
1224 -V, --version display version information and exit
1225 -q, --quiet, --silent do not print \`checking ...' messages
1226 --cache-file=FILE cache test results in FILE [disabled]
1227 -C, --config-cache alias for \`--cache-file=config.cache'
1228 -n, --no-create do not create output files
1229 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1231 Installation directories:
1232 --prefix=PREFIX install architecture-independent files in PREFIX
1233 [$ac_default_prefix]
1234 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1237 By default, \`make install' will install all the files in
1238 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1239 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1240 for instance \`--prefix=\$HOME'.
1242 For better control, use the options below.
1244 Fine tuning of the installation directories:
1245 --bindir=DIR user executables [EPREFIX/bin]
1246 --sbindir=DIR system admin executables [EPREFIX/sbin]
1247 --libexecdir=DIR program executables [EPREFIX/libexec]
1248 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1249 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1250 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1251 --libdir=DIR object code libraries [EPREFIX/lib]
1252 --includedir=DIR C header files [PREFIX/include]
1253 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1254 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1255 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1256 --infodir=DIR info documentation [DATAROOTDIR/info]
1257 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1258 --mandir=DIR man documentation [DATAROOTDIR/man]
1259 --docdir=DIR documentation root [DATAROOTDIR/doc/riscv-isa-run]
1260 --htmldir=DIR html documentation [DOCDIR]
1261 --dvidir=DIR dvi documentation [DOCDIR]
1262 --pdfdir=DIR pdf documentation [DOCDIR]
1263 --psdir=DIR ps documentation [DOCDIR]
1269 --build=BUILD configure
for building on BUILD
[guessed
]
1270 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1274 if test -n "$ac_init_help"; then
1275 case $ac_init_help in
1276 short | recursive
) echo "Configuration of RISC-V ISA Simulator ?:";;
1281 --disable-option-checking ignore unrecognized
--enable/--with options
1282 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1283 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1284 --enable-stow Enable stow-based
install
1285 --enable-optional-subprojects
1286 Enable all optional subprojects
1287 --disable-fpu Disable floating-point
1288 --disable-64bit Disable
64-bit mode
1289 --enable-rvc Enable instruction compression
1290 --disable-vec Disable vector processor
1292 Some influential environment variables
:
1293 CC C compiler
command
1294 CFLAGS C compiler flags
1295 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1296 nonstandard directory
<lib dir
>
1297 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1298 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1299 you have headers
in a nonstandard directory
<include dir
>
1300 CXX C
++ compiler
command
1301 CXXFLAGS C
++ compiler flags
1302 STOW_ROOT Root
for non-native stow-based installs
1303 STOW_PREFIX Prefix
for stow-based installs
1306 Use these variables to override the choices made by
`configure' or to help
1307 it to find libraries and programs with nonstandard names/locations.
1309 Report bugs to <Andrew Waterman>.
1314 if test "$ac_init_help" = "recursive"; then
1315 # If there are subdirs, report their specific --help.
1316 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1317 test -d "$ac_dir" ||
1318 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1323 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1325 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1326 # A ".." for each directory in $ac_dir_suffix.
1327 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1328 case $ac_top_builddir_sub in
1329 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1330 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1333 ac_abs_top_builddir=$ac_pwd
1334 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1335 # for backward compatibility:
1336 ac_top_builddir=$ac_top_build_prefix
1339 .) # We are building in place.
1341 ac_top_srcdir=$ac_top_builddir_sub
1342 ac_abs_top_srcdir=$ac_pwd ;;
1343 [\\/]* | ?:[\\/]* ) # Absolute name.
1344 ac_srcdir=$srcdir$ac_dir_suffix;
1345 ac_top_srcdir=$srcdir
1346 ac_abs_top_srcdir=$srcdir ;;
1348 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1349 ac_top_srcdir=$ac_top_build_prefix$srcdir
1350 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1352 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1354 cd "$ac_dir" || { ac_status=$?; continue; }
1355 # Check for guested configure.
1356 if test -f "$ac_srcdir/configure.gnu"; then
1358 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1359 elif test -f "$ac_srcdir/configure"; then
1361 $SHELL "$ac_srcdir/configure" --help=recursive
1363 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1365 cd "$ac_pwd" || { ac_status=$?; break; }
1369 test -n "$ac_init_help" && exit $ac_status
1370 if $ac_init_version; then
1372 RISC-V ISA Simulator configure ?
1373 generated by GNU Autoconf 2.68
1375 Copyright (C) 2010 Free Software Foundation, Inc.
1376 This configure script is free software; the Free Software Foundation
1377 gives unlimited permission to copy, distribute and modify it.
1382 ## ------------------------ ##
1383 ## Autoconf initialization. ##
1384 ## ------------------------ ##
1386 # ac_fn_c_try_compile LINENO
1387 # --------------------------
1388 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1389 ac_fn_c_try_compile ()
1391 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1392 rm -f conftest.$ac_objext
1393 if { { ac_try="$ac_compile"
1395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1396 *) ac_try_echo
=$ac_try;;
1398 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1399 $as_echo "$ac_try_echo"; } >&5
1400 (eval "$ac_compile") 2>conftest.err
1402 if test -s conftest.err
; then
1403 grep -v '^ *+' conftest.err
>conftest.er1
1404 cat conftest.er1
>&5
1405 mv -f conftest.er1 conftest.err
1407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1408 test $ac_status = 0; } && {
1409 test -z "$ac_c_werror_flag" ||
1410 test ! -s conftest.err
1411 } && test -s conftest.
$ac_objext; then :
1414 $as_echo "$as_me: failed program was:" >&5
1415 sed 's/^/| /' conftest.
$ac_ext >&5
1419 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1420 as_fn_set_status
$ac_retval
1422 } # ac_fn_c_try_compile
1424 # ac_fn_cxx_try_compile LINENO
1425 # ----------------------------
1426 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1427 ac_fn_cxx_try_compile
()
1429 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1430 rm -f conftest.
$ac_objext
1431 if { { ac_try
="$ac_compile"
1433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1434 *) ac_try_echo=$ac_try;;
1436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1437 $as_echo "$ac_try_echo"; } >&5
1438 (eval "$ac_compile") 2>conftest.err
1440 if test -s conftest.err; then
1441 grep -v '^ *+' conftest.err >conftest.er1
1442 cat conftest.er1 >&5
1443 mv -f conftest.er1 conftest.err
1445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1446 test $ac_status = 0; } && {
1447 test -z "$ac_cxx_werror_flag" ||
1448 test ! -s conftest.err
1449 } && test -s conftest.$ac_objext; then :
1452 $as_echo "$as_me: failed program was:" >&5
1453 sed 's/^/| /' conftest.$ac_ext >&5
1457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1458 as_fn_set_status $ac_retval
1460 } # ac_fn_cxx_try_compile
1462 # ac_fn_c_try_cpp LINENO
1463 # ----------------------
1464 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1468 if { { ac_try="$ac_cpp conftest.$ac_ext"
1470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1471 *) ac_try_echo
=$ac_try;;
1473 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1474 $as_echo "$ac_try_echo"; } >&5
1475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1477 if test -s conftest.err
; then
1478 grep -v '^ *+' conftest.err
>conftest.er1
1479 cat conftest.er1
>&5
1480 mv -f conftest.er1 conftest.err
1482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1483 test $ac_status = 0; } > conftest.i
&& {
1484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1485 test ! -s conftest.err
1489 $as_echo "$as_me: failed program was:" >&5
1490 sed 's/^/| /' conftest.
$ac_ext >&5
1494 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1495 as_fn_set_status
$ac_retval
1499 # ac_fn_c_try_run LINENO
1500 # ----------------------
1501 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1502 # that executables *can* be run.
1505 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1506 if { { ac_try
="$ac_link"
1508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_link") 2>&5
1515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1516 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1517 { { case "(($ac_try" in
1518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1519 *) ac_try_echo
=$ac_try;;
1521 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 $as_echo "$ac_try_echo"; } >&5
1523 (eval "$ac_try") 2>&5
1525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1526 test $ac_status = 0; }; }; then :
1529 $as_echo "$as_me: program exited with status $ac_status" >&5
1530 $as_echo "$as_me: failed program was:" >&5
1531 sed 's/^/| /' conftest.
$ac_ext >&5
1533 ac_retval
=$ac_status
1535 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1536 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1537 as_fn_set_status
$ac_retval
1541 # ac_fn_c_try_link LINENO
1542 # -----------------------
1543 # Try to link conftest.$ac_ext, and return whether this succeeded.
1546 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1547 rm -f conftest.
$ac_objext conftest
$ac_exeext
1548 if { { ac_try
="$ac_link"
1550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_link") 2>conftest.err
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_c_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest$ac_exeext && {
1567 test "$cross_compiling" = yes ||
1568 $as_test_x conftest$ac_exeext
1572 $as_echo "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1577 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1578 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1579 # interfere with the next link command; also delete a directory that is
1580 # left behind by Apple's compiler. We do this before executing the actions.
1581 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1582 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1583 as_fn_set_status $ac_retval
1585 } # ac_fn_c_try_link
1586 cat >config.log <<_ACEOF
1587 This file contains any messages produced by compilers while
1588 running configure, to aid debugging if configure makes a mistake.
1590 It was created by RISC-V ISA Simulator $as_me ?, which was
1591 generated by GNU Autoconf 2.68. Invocation command line was
1603 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1604 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1605 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1606 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1607 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1609 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1610 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1612 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1613 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1614 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1615 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1616 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1617 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1618 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 test -z "$as_dir" && as_dir=.
1627 $as_echo "PATH: $as_dir"
1643 # Keep a trace of the command line.
1644 # Strip out --no-create and --no-recursion so they do not pile up.
1645 # Strip out --silent because we don't want to record it for future runs.
1646 # Also quote any args containing shell meta-characters.
1647 # Make two passes to allow for proper duplicate-argument suppression.
1651 ac_must_keep_next=false
1657 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1659 | -silent | --silent | --silen | --sile | --sil)
1662 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1665 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1667 as_fn_append ac_configure_args1 " '$ac_arg'"
1668 if test $ac_must_keep_next = true; then
1669 ac_must_keep_next=false # Got value, back to normal.
1672 *=* | --config-cache | -C | -disable-* | --disable-* \
1673 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1674 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1675 | -with-* | --with-* | -without-* | --without-* | --x)
1676 case "$ac_configure_args0 " in
1677 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1680 -* ) ac_must_keep_next=true ;;
1683 as_fn_append ac_configure_args " '$ac_arg'"
1688 { ac_configure_args0=; unset ac_configure_args0;}
1689 { ac_configure_args1=; unset ac_configure_args1;}
1691 # When interrupted or exit'd, cleanup temporary files, and complete
1692 # config.log. We remove comments because anyway the quotes in there
1693 # would cause problems or look ugly.
1694 # WARNING: Use '\'' to represent an apostrophe within the trap.
1695 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1696 trap 'exit_status=$?
1697 # Save into config.log some information that might help in debugging.
1701 $as_echo "## ---------------- ##
1702 ## Cache variables. ##
1703 ## ---------------- ##"
1705 # The following way of writing the cache mishandles newlines in values,
1707 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1708 eval ac_val=\$$ac_var
1712 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1713 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1716 _ | IFS | as_nl) ;; #(
1717 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1718 *) { eval $ac_var=; unset $ac_var;} ;;
1723 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1724 *${as_nl}ac_space=\ *)
1726 "s/'\''/'\''\\\\'\'''\''/g;
1727 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1730 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1737 $as_echo "## ----------------- ##
1738 ## Output variables. ##
1739 ## ----------------- ##"
1741 for ac_var in $ac_subst_vars
1743 eval ac_val=\$$ac_var
1745 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1747 $as_echo "$ac_var='\''$ac_val'\''"
1751 if test -n "$ac_subst_files"; then
1752 $as_echo "## ------------------- ##
1753 ## File substitutions. ##
1754 ## ------------------- ##"
1756 for ac_var in $ac_subst_files
1758 eval ac_val=\$$ac_var
1760 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762 $as_echo "$ac_var='\''$ac_val'\''"
1767 if test -s confdefs.h; then
1768 $as_echo "## ----------- ##
1775 test "$ac_signal" != 0 &&
1776 $as_echo "$as_me: caught signal $ac_signal"
1777 $as_echo "$as_me: exit $exit_status"
1779 rm -f core *.core core.conftest.* &&
1780 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1783 for ac_signal in 1 2 13 15; do
1784 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1788 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1789 rm -f -r conftest* confdefs.h
1791 $as_echo "/* confdefs.h */" > confdefs.h
1793 # Predefined preprocessor variables.
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_NAME "$PACKAGE_NAME"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_STRING "$PACKAGE_STRING"
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_URL "$PACKAGE_URL"
1820 # Let the site file select an alternate cache file if it wants to.
1821 # Prefer an explicitly selected file to automatically selected ones.
1824 if test -n "$CONFIG_SITE"; then
1825 # We do not want a PATH search for config.site.
1826 case $CONFIG_SITE in #((
1827 -*) ac_site_file1=./$CONFIG_SITE;;
1828 */*) ac_site_file1=$CONFIG_SITE;;
1829 *) ac_site_file1=./$CONFIG_SITE;;
1831 elif test "x$prefix" != xNONE; then
1832 ac_site_file1=$prefix/share/config.site
1833 ac_site_file2=$prefix/etc/config.site
1835 ac_site_file1=$ac_default_prefix/share/config.site
1836 ac_site_file2=$ac_default_prefix/etc/config.site
1838 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1840 test "x$ac_site_file" = xNONE && continue
1841 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1843 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1844 sed 's/^/| /' "$ac_site_file" >&5
1846 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1848 as_fn_error $? "failed to load site
script $ac_site_file
1849 See \
`config.log' for more details" "$LINENO" 5; }
1853 if test -r "$cache_file"; then
1854 # Some versions of bash will fail to source /dev/null (special files
1855 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1856 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1858 $as_echo "$as_me: loading cache $cache_file" >&6;}
1860 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1861 *) . "./$cache_file";;
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1866 $as_echo "$as_me: creating cache $cache_file" >&6;}
1870 # Check that the precious variables saved in the cache have kept the same
1872 ac_cache_corrupted=false
1873 for ac_var in $ac_precious_vars; do
1874 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1875 eval ac_new_set=\$ac_env_${ac_var}_set
1876 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1877 eval ac_new_val=\$ac_env_${ac_var}_value
1878 case $ac_old_set,$ac_new_set in
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1881 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1882 ac_cache_corrupted=: ;;
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
1885 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1886 ac_cache_corrupted=: ;;
1889 if test "x$ac_old_val" != "x$ac_new_val"; then
1890 # differences in whitespace do not lead to failure.
1891 ac_old_val_w=`echo x
$ac_old_val`
1892 ac_new_val_w=`echo x
$ac_new_val`
1893 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1895 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1896 ac_cache_corrupted=:
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1899 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1900 eval $ac_var=\$ac_old_val
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1903 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1905 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1908 # Pass precious variables to config.status.
1909 if test "$ac_new_set" = set; then
1911 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1912 *) ac_arg=$ac_var=$ac_new_val ;;
1914 case " $ac_configure_args " in
1915 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1916 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1920 if $ac_cache_corrupted; then
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
1922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1924 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1925 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
1927 ## -------------------- ##
1928 ## Main body of script. ##
1929 ## -------------------- ##
1932 ac_cpp='$CPP $CPPFLAGS'
1933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940 for ac_dir in scripts "$srcdir"/scripts; do
1941 if test -f "$ac_dir/install-sh"; then
1943 ac_install_sh="$ac_aux_dir/install-sh -c"
1945 elif test -f "$ac_dir/install.sh"; then
1947 ac_install_sh="$ac_aux_dir/install.sh -c"
1949 elif test -f "$ac_dir/shtool"; then
1951 ac_install_sh="$ac_aux_dir/shtool install -c"
1955 if test -z "$ac_aux_dir"; then
1956 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
1959 # These three variables are undocumented and unsupported,
1960 # and are intended to be withdrawn in a future Autoconf release.
1961 # They can cause serious problems if a builder's source tree is in a directory
1962 # whose full name contains unusual characters.
1963 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1964 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1965 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1968 # Make sure we can run config.sub.
1969 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1970 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1973 $as_echo_n "checking build system type... " >&6; }
1974 if ${ac_cv_build+:} false; then :
1975 $as_echo_n "(cached) " >&6
1977 ac_build_alias=$build_alias
1978 test "x$ac_build_alias" = x &&
1979 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1980 test "x$ac_build_alias" = x &&
1981 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1982 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1983 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1987 $as_echo "$ac_cv_build" >&6; }
1988 case $ac_cv_build in
1990 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1993 ac_save_IFS=$IFS; IFS='-'
1999 # Remember, the first character of IFS is used to create $*,
2000 # except with old shells:
2003 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2007 $as_echo_n "checking host system type... " >&6; }
2008 if ${ac_cv_host+:} false; then :
2009 $as_echo_n "(cached) " >&6
2011 if test "x$host_alias" = x; then
2012 ac_cv_host=$ac_cv_build
2014 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2015 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2020 $as_echo "$ac_cv_host" >&6; }
2023 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2026 ac_save_IFS=$IFS; IFS='-'
2032 # Remember, the first character of IFS is used to create $*,
2033 # except with old shells:
2036 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2040 #-------------------------------------------------------------------------
2041 # Checks for programs
2042 #-------------------------------------------------------------------------
2045 ac_cpp='$CPP $CPPFLAGS'
2046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2049 if test -n "$ac_tool_prefix"; then
2050 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2051 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2053 $as_echo_n "checking for $ac_word... " >&6; }
2054 if ${ac_cv_prog_CC+:} false; then :
2055 $as_echo_n "(cached) " >&6
2057 if test -n "$CC"; then
2058 ac_cv_prog_CC="$CC" # Let the user override the test.
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 test -z "$as_dir" && as_dir=.
2065 for ac_exec_ext in '' $ac_executable_extensions; do
2066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2067 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 if test -n "$CC"; then
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2080 $as_echo "$CC" >&6; }
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2083 $as_echo "no" >&6; }
2088 if test -z "$ac_cv_prog_CC"; then
2090 # Extract the first word of "gcc", so it can be a program name with args.
2091 set dummy gcc; ac_word=$2
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2093 $as_echo_n "checking for $ac_word... " >&6; }
2094 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2095 $as_echo_n "(cached) " >&6
2097 if test -n "$ac_ct_CC"; then
2098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 test -z "$as_dir" && as_dir=.
2105 for ac_exec_ext in '' $ac_executable_extensions; do
2106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2107 ac_cv_prog_ac_ct_CC="gcc"
2108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2117 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2118 if test -n "$ac_ct_CC"; then
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2120 $as_echo "$ac_ct_CC" >&6; }
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2123 $as_echo "no" >&6; }
2126 if test "x$ac_ct_CC" = x; then
2129 case $cross_compiling:$ac_tool_warned in
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2133 ac_tool_warned=yes ;;
2141 if test -z "$CC"; then
2142 if test -n "$ac_tool_prefix"; then
2143 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2144 set dummy ${ac_tool_prefix}cc; ac_word=$2
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2146 $as_echo_n "checking for $ac_word... " >&6; }
2147 if ${ac_cv_prog_CC+:} false; then :
2148 $as_echo_n "(cached) " >&6
2150 if test -n "$CC"; then
2151 ac_cv_prog_CC="$CC" # Let the user override the test.
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 test -z "$as_dir" && as_dir=.
2158 for ac_exec_ext in '' $ac_executable_extensions; do
2159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2160 ac_cv_prog_CC="${ac_tool_prefix}cc"
2161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2171 if test -n "$CC"; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2173 $as_echo "$CC" >&6; }
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2176 $as_echo "no" >&6; }
2182 if test -z "$CC"; then
2183 # Extract the first word of "cc", so it can be a program name with args.
2184 set dummy cc; ac_word=$2
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2186 $as_echo_n "checking for $ac_word... " >&6; }
2187 if ${ac_cv_prog_CC+:} false; then :
2188 $as_echo_n "(cached) " >&6
2190 if test -n "$CC"; then
2191 ac_cv_prog_CC="$CC" # Let the user override the test.
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198 test -z "$as_dir" && as_dir=.
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2201 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2202 ac_prog_rejected=yes
2206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2213 if test $ac_prog_rejected = yes; then
2214 # We found a bogon in the path, so make sure we never use it.
2215 set dummy $ac_cv_prog_CC
2217 if test $# != 0; then
2218 # We chose a different compiler from the bogus one.
2219 # However, it has the same basename, so the bogon will be chosen
2220 # first if we set CC to just the basename; use the full file name.
2222 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2228 if test -n "$CC"; then
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2230 $as_echo "$CC" >&6; }
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2233 $as_echo "no" >&6; }
2238 if test -z "$CC"; then
2239 if test -n "$ac_tool_prefix"; then
2240 for ac_prog in cl.exe
2242 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2243 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2245 $as_echo_n "checking for $ac_word... " >&6; }
2246 if ${ac_cv_prog_CC+:} false; then :
2247 $as_echo_n "(cached) " >&6
2249 if test -n "$CC"; then
2250 ac_cv_prog_CC="$CC" # Let the user override the test.
2252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 test -z "$as_dir" && as_dir=.
2257 for ac_exec_ext in '' $ac_executable_extensions; do
2258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2259 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2270 if test -n "$CC"; then
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2272 $as_echo "$CC" >&6; }
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2275 $as_echo "no" >&6; }
2279 test -n "$CC" && break
2282 if test -z "$CC"; then
2284 for ac_prog in cl.exe
2286 # Extract the first word of "$ac_prog", so it can be a program name with args.
2287 set dummy $ac_prog; ac_word=$2
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2289 $as_echo_n "checking for $ac_word... " >&6; }
2290 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2291 $as_echo_n "(cached) " >&6
2293 if test -n "$ac_ct_CC"; then
2294 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303 ac_cv_prog_ac_ct_CC="$ac_prog"
2304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2314 if test -n "$ac_ct_CC"; then
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2316 $as_echo "$ac_ct_CC" >&6; }
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2319 $as_echo "no" >&6; }
2323 test -n "$ac_ct_CC" && break
2326 if test "x$ac_ct_CC" = x; then
2329 case $cross_compiling:$ac_tool_warned in
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2333 ac_tool_warned=yes ;;
2342 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2344 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2345 See \
`config.log' for more details" "$LINENO" 5; }
2347 # Provide some information about the compiler.
2348 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2351 for ac_option in --version -v -V -qversion; do
2352 { { ac_try="$ac_compiler $ac_option >&5"
2354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2355 *) ac_try_echo
=$ac_try;;
2357 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2358 $as_echo "$ac_try_echo"; } >&5
2359 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2361 if test -s conftest.err
; then
2363 ... rest of stderr output deleted ...
2364 10q' conftest.err
>conftest.er1
2365 cat conftest.er1
>&5
2367 rm -f conftest.er1 conftest.err
2368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2369 test $ac_status = 0; }
2372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h. */
2383 ac_clean_files_save
=$ac_clean_files
2384 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2385 # Try to create an executable without -o first, disregard a.out.
2386 # It will help us diagnose broken compilers, and finding out an intuition
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2389 $as_echo_n "checking whether the C compiler works... " >&6; }
2390 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2392 # The possible output files:
2393 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2396 for ac_file
in $ac_files
2399 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2400 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2405 if { { ac_try
="$ac_link_default"
2407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2411 $as_echo "$ac_try_echo"; } >&5
2412 (eval "$ac_link_default") 2>&5
2414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2415 test $ac_status = 0; }; then :
2416 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2417 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2418 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2419 # so that the user can short-circuit this test for compilers unknown to
2421 for ac_file in $ac_files ''
2423 test -f "$ac_file" || continue
2425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2428 # We found the default executable, but exeext='' is most
2432 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2434 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2436 # We set ac_cv_exeext here because the later test for it is not
2437 # safe: cross compilers may not add the suffix if given an `-o'
2438 # argument, so we may need to know it at that point already.
2439 # Even if this section looks crufty: it has the advantage of
2446 test "$ac_cv_exeext" = no && ac_cv_exeext=
2451 if test -z "$ac_file"; then :
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2453 $as_echo "no" >&6; }
2454 $as_echo "$as_me: failed program was:" >&5
2455 sed 's
/^
/|
/' conftest.$ac_ext >&5
2457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2458 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2459 as_fn_error 77 "C compiler cannot create executables
2460 See \`config.log
' for more details" "$LINENO" 5; }
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2463 $as_echo "yes" >&6; }
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2466 $as_echo_n "checking for C compiler default output file name... " >&6; }
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2468 $as_echo "$ac_file" >&6; }
2469 ac_exeext=$ac_cv_exeext
2471 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2472 ac_clean_files=$ac_clean_files_save
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2474 $as_echo_n "checking for suffix of executables... " >&6; }
2475 if { { ac_try="$ac_link"
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2481 $as_echo "$ac_try_echo"; } >&5
2482 (eval "$ac_link") 2>&5
2484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2485 test $ac_status = 0; }; then :
2486 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2487 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2488 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2490 for ac_file
in conftest.exe conftest conftest.
*; do
2491 test -f "$ac_file" ||
continue
2493 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2494 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2502 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2503 See \`config.log' for more details" "$LINENO" 5; }
2505 rm -f conftest conftest
$ac_cv_exeext
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2507 $as_echo "$ac_cv_exeext" >&6; }
2509 rm -f conftest.
$ac_ext
2510 EXEEXT
=$ac_cv_exeext
2512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2518 FILE *f = fopen ("conftest.out", "w");
2519 return ferror (f) || fclose (f) != 0;
2525 ac_clean_files
="$ac_clean_files conftest.out"
2526 # Check that the compiler produces executables we can run. If not, either
2527 # the compiler is broken, or we cross compile.
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2529 $as_echo_n "checking whether we are cross compiling... " >&6; }
2530 if test "$cross_compiling" != yes; then
2531 { { ac_try
="$ac_link"
2533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2537 $as_echo "$ac_try_echo"; } >&5
2538 (eval "$ac_link") 2>&5
2540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2541 test $ac_status = 0; }
2542 if { ac_try='./conftest$ac_cv_exeext'
2543 { { case "(($ac_try" in
2544 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2545 *) ac_try_echo
=$ac_try;;
2547 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2548 $as_echo "$ac_try_echo"; } >&5
2549 (eval "$ac_try") 2>&5
2551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2552 test $ac_status = 0; }; }; then
2555 if test "$cross_compiling" = maybe
; then
2558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2560 as_fn_error $?
"cannot run C compiled programs.
2561 If you meant to cross compile, use \`--host'.
2562 See \`config.log' for more details" "$LINENO" 5; }
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2567 $as_echo "$cross_compiling" >&6; }
2569 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2570 ac_clean_files
=$ac_clean_files_save
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2572 $as_echo_n "checking for suffix of object files... " >&6; }
2573 if ${ac_cv_objext+:} false
; then :
2574 $as_echo_n "(cached) " >&6
2576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2577 /* end confdefs.h. */
2587 rm -f conftest.o conftest.obj
2588 if { { ac_try
="$ac_compile"
2590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2594 $as_echo "$ac_try_echo"; } >&5
2595 (eval "$ac_compile") 2>&5
2597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2598 test $ac_status = 0; }; then :
2599 for ac_file in conftest.o conftest.obj conftest.*; do
2600 test -f "$ac_file" || continue;
2602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2603 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2608 $as_echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2613 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2614 See \
`config.log' for more details" "$LINENO" 5; }
2616 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2619 $as_echo "$ac_cv_objext" >&6; }
2620 OBJEXT=$ac_cv_objext
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2623 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2624 if ${ac_cv_c_compiler_gnu+:} false; then :
2625 $as_echo_n "(cached) " >&6
2627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2628 /* end confdefs.h. */
2641 if ac_fn_c_try_compile "$LINENO"; then :
2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2647 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2651 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2652 if test $ac_compiler_gnu = yes; then
2657 ac_test_CFLAGS=${CFLAGS+set}
2658 ac_save_CFLAGS=$CFLAGS
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2660 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2661 if ${ac_cv_prog_cc_g+:} false; then :
2662 $as_echo_n "(cached) " >&6
2664 ac_save_c_werror_flag=$ac_c_werror_flag
2665 ac_c_werror_flag=yes
2668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669 /* end confdefs.h. */
2679 if ac_fn_c_try_compile "$LINENO"; then :
2683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2684 /* end confdefs.h. */
2694 if ac_fn_c_try_compile "$LINENO"; then :
2697 ac_c_werror_flag=$ac_save_c_werror_flag
2699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2700 /* end confdefs.h. */
2710 if ac_fn_c_try_compile "$LINENO"; then :
2713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2718 ac_c_werror_flag=$ac_save_c_werror_flag
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2721 $as_echo "$ac_cv_prog_cc_g" >&6; }
2722 if test "$ac_test_CFLAGS" = set; then
2723 CFLAGS=$ac_save_CFLAGS
2724 elif test $ac_cv_prog_cc_g = yes; then
2725 if test "$GCC" = yes; then
2731 if test "$GCC" = yes; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2738 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2739 if ${ac_cv_prog_cc_c89+:} false; then :
2740 $as_echo_n "(cached) " >&6
2742 ac_cv_prog_cc_c89=no
2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745 /* end confdefs.h. */
2748 #include <sys/types.h>
2749 #include <sys/stat.h>
2750 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2751 struct buf { int x; };
2752 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2753 static char *e (p, i)
2759 static char *f (char * (*g) (char **, int), char **p, ...)
2764 s = g (p, va_arg (v,int));
2769 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2770 function prototypes and stuff, but not '\xHH' hex character constants.
2771 These don't provoke an error unfortunately, instead are silently treated
2772 as 'x'. The following induces an error, until -std is added to get
2773 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2774 array size at least. It's necessary to write '\x00'==0 to get something
2775 that's true only with -std. */
2776 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2778 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2779 inside strings and character constants. */
2781 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2783 int test (int i, double x);
2784 struct s1 {int (*f) (int a);};
2785 struct s2 {int (*f) (double a);};
2786 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2792 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2797 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2798 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2800 CC="$ac_save_CC $ac_arg"
2801 if ac_fn_c_try_compile "$LINENO"; then :
2802 ac_cv_prog_cc_c89=$ac_arg
2804 rm -f core conftest.err conftest.$ac_objext
2805 test "x$ac_cv_prog_cc_c89" != "xno" && break
2807 rm -f conftest.$ac_ext
2812 case "x$ac_cv_prog_cc_c89" in
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2815 $as_echo "none needed" >&6; } ;;
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2818 $as_echo "unsupported" >&6; } ;;
2820 CC="$CC $ac_cv_prog_cc_c89"
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2822 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2824 if test "x$ac_cv_prog_cc_c89" != xno; then :
2829 ac_cpp='$CPP $CPPFLAGS'
2830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2835 ac_cpp='$CXXCPP $CPPFLAGS'
2836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2839 if test -z "$CXX"; then
2840 if test -n "$CCC"; then
2843 if test -n "$ac_tool_prefix"; then
2844 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849 $as_echo_n "checking for $ac_word... " >&6; }
2850 if ${ac_cv_prog_CXX+:} false; then :
2851 $as_echo_n "(cached) " >&6
2853 if test -n "$CXX"; then
2854 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2863 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 if test -n "$CXX"; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2876 $as_echo "$CXX" >&6; }
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879 $as_echo "no" >&6; }
2883 test -n "$CXX" && break
2886 if test -z "$CXX"; then
2888 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2890 # Extract the first word of "$ac_prog", so it can be a program name with args.
2891 set dummy $ac_prog; ac_word=$2
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893 $as_echo_n "checking for $ac_word... " >&6; }
2894 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2895 $as_echo_n "(cached) " >&6
2897 if test -n "$ac_ct_CXX"; then
2898 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 test -z "$as_dir" && as_dir=.
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2907 ac_cv_prog_ac_ct_CXX="$ac_prog"
2908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2918 if test -n "$ac_ct_CXX"; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2920 $as_echo "$ac_ct_CXX" >&6; }
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 $as_echo "no" >&6; }
2927 test -n "$ac_ct_CXX" && break
2930 if test "x$ac_ct_CXX" = x; then
2933 case $cross_compiling:$ac_tool_warned in
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2937 ac_tool_warned=yes ;;
2945 # Provide some information about the compiler.
2946 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2949 for ac_option in --version -v -V -qversion; do
2950 { { ac_try="$ac_compiler $ac_option >&5"
2952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2953 *) ac_try_echo
=$ac_try;;
2955 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2956 $as_echo "$ac_try_echo"; } >&5
2957 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2959 if test -s conftest.err
; then
2961 ... rest of stderr output deleted ...
2962 10q' conftest.err
>conftest.er1
2963 cat conftest.er1
>&5
2965 rm -f conftest.er1 conftest.err
2966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2967 test $ac_status = 0; }
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2971 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2972 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
2973 $as_echo_n "(cached) " >&6
2975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2976 /* end confdefs.h. */
2989 if ac_fn_cxx_try_compile
"$LINENO"; then :
2994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2995 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2999 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3000 if test $ac_compiler_gnu = yes; then
3005 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3006 ac_save_CXXFLAGS
=$CXXFLAGS
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3008 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3009 if ${ac_cv_prog_cxx_g+:} false
; then :
3010 $as_echo_n "(cached) " >&6
3012 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3013 ac_cxx_werror_flag
=yes
3016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3017 /* end confdefs.h. */
3027 if ac_fn_cxx_try_compile
"$LINENO"; then :
3028 ac_cv_prog_cxx_g
=yes
3031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3032 /* end confdefs.h. */
3042 if ac_fn_cxx_try_compile
"$LINENO"; then :
3045 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3048 /* end confdefs.h. */
3058 if ac_fn_cxx_try_compile
"$LINENO"; then :
3059 ac_cv_prog_cxx_g
=yes
3061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3066 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3069 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3070 if test "$ac_test_CXXFLAGS" = set; then
3071 CXXFLAGS
=$ac_save_CXXFLAGS
3072 elif test $ac_cv_prog_cxx_g = yes; then
3073 if test "$GXX" = yes; then
3079 if test "$GXX" = yes; then
3086 ac_cpp
='$CPP $CPPFLAGS'
3087 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3091 if test -n "$ac_tool_prefix"; then
3092 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3093 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3095 $as_echo_n "checking for $ac_word... " >&6; }
3096 if ${ac_cv_prog_AR+:} false
; then :
3097 $as_echo_n "(cached) " >&6
3099 if test -n "$AR"; then
3100 ac_cv_prog_AR
="$AR" # Let the user override the test.
3102 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3106 test -z "$as_dir" && as_dir
=.
3107 for ac_exec_ext
in '' $ac_executable_extensions; do
3108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 if test -n "$AR"; then
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3122 $as_echo "$AR" >&6; }
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125 $as_echo "no" >&6; }
3130 if test -z "$ac_cv_prog_AR"; then
3132 # Extract the first word of "ar", so it can be a program name with args.
3133 set dummy
ar; ac_word
=$2
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
3137 $as_echo_n "(cached) " >&6
3139 if test -n "$ac_ct_AR"; then
3140 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
3142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3146 test -z "$as_dir" && as_dir
=.
3147 for ac_exec_ext
in '' $ac_executable_extensions; do
3148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149 ac_cv_prog_ac_ct_AR
="ar"
3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
3160 if test -n "$ac_ct_AR"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3162 $as_echo "$ac_ct_AR" >&6; }
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3168 if test "x$ac_ct_AR" = x
; then
3171 case $cross_compiling:$ac_tool_warned in
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3175 ac_tool_warned
=yes ;;
3183 if test -n "$ac_tool_prefix"; then
3184 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3185 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if ${ac_cv_prog_RANLIB+:} false
; then :
3189 $as_echo_n "(cached) " >&6
3191 if test -n "$RANLIB"; then
3192 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3198 test -z "$as_dir" && as_dir
=.
3199 for ac_exec_ext
in '' $ac_executable_extensions; do
3200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3201 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 RANLIB
=$ac_cv_prog_RANLIB
3212 if test -n "$RANLIB"; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3214 $as_echo "$RANLIB" >&6; }
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3222 if test -z "$ac_cv_prog_RANLIB"; then
3223 ac_ct_RANLIB
=$RANLIB
3224 # Extract the first word of "ranlib", so it can be a program name with args.
3225 set dummy ranlib
; ac_word
=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
3229 $as_echo_n "(cached) " >&6
3231 if test -n "$ac_ct_RANLIB"; then
3232 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3238 test -z "$as_dir" && as_dir
=.
3239 for ac_exec_ext
in '' $ac_executable_extensions; do
3240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3241 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3252 if test -n "$ac_ct_RANLIB"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3254 $as_echo "$ac_ct_RANLIB" >&6; }
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3260 if test "x$ac_ct_RANLIB" = x
; then
3263 case $cross_compiling:$ac_tool_warned in
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3267 ac_tool_warned
=yes ;;
3269 RANLIB
=$ac_ct_RANLIB
3272 RANLIB
="$ac_cv_prog_RANLIB"
3276 #-------------------------------------------------------------------------
3277 # MCPPBS specific program checks
3278 #-------------------------------------------------------------------------
3279 # These macros check to see if we can do a stow-based install and also
3280 # check for an isa simulator suitable for running the unit test programs
3283 # Find a good install program. We prefer a C program (faster),
3284 # so one script is as good as another. But avoid the broken or
3285 # incompatible versions:
3286 # SysV /etc/install, /usr/sbin/install
3287 # SunOS /usr/etc/install
3288 # IRIX /sbin/install
3290 # AmigaOS /C/install, which installs bootblocks on floppy discs
3291 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3292 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3293 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3294 # OS/2's system install, which has a completely different semantic
3295 # ./install, which can be erroneously created by make from ./install.sh.
3296 # Reject install programs that cannot install multiple files.
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3298 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3299 if test -z "$INSTALL"; then
3300 if ${ac_cv_path_install+:} false
; then :
3301 $as_echo_n "(cached) " >&6
3303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3307 test -z "$as_dir" && as_dir
=.
3308 # Account for people who put trailing slashes in PATH elements.
3309 case $as_dir/ in #((
3310 .
/ | .
// |
/[cC
]/* | \
3311 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3312 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3315 # OSF1 and SCO ODT 3.0 have their own names for install.
3316 # Don't use installbsd from OSF since it installs stuff as root
3318 for ac_prog
in ginstall scoinst
install; do
3319 for ac_exec_ext
in '' $ac_executable_extensions; do
3320 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3321 if test $ac_prog = install &&
3322 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3323 # AIX install. It has an incompatible calling convention.
3325 elif test $ac_prog = install &&
3326 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3327 # program-specific install script used by HP pwplus--don't use.
3330 rm -rf conftest.one conftest.two conftest.dir
3331 echo one
> conftest.one
3332 echo two
> conftest.two
3334 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3335 test -s conftest.one
&& test -s conftest.two
&&
3336 test -s conftest.dir
/conftest.one
&&
3337 test -s conftest.dir
/conftest.two
3339 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3352 rm -rf conftest.one conftest.two conftest.dir
3355 if test "${ac_cv_path_install+set}" = set; then
3356 INSTALL
=$ac_cv_path_install
3358 # As a last resort, use the slow shell script. Don't cache a
3359 # value for INSTALL within a source directory, because that will
3360 # break other packages using the cache if that directory is
3361 # removed, or if the value is a relative name.
3362 INSTALL
=$ac_install_sh
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3366 $as_echo "$INSTALL" >&6; }
3368 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3369 # It thinks the first close brace ends the variable substitution.
3370 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3372 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3374 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3378 # Configure command line option
3380 # Check whether --enable-stow was given.
3381 if test "${enable_stow+set}" = set; then :
3382 enableval
=$enable_stow; enable_stow
="yes"
3390 # Environment variables
3395 # Check for install script
3399 # Deterimine if native build and set prefix appropriately
3401 if test ${enable_stow} = "yes" ; then :
3405 # Extract the first word of "$ac_prog", so it can be a program name with args.
3406 set dummy
$ac_prog; ac_word
=$2
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408 $as_echo_n "checking for $ac_word... " >&6; }
3409 if ${ac_cv_prog_stow+:} false
; then :
3410 $as_echo_n "(cached) " >&6
3412 if test -n "$stow"; then
3413 ac_cv_prog_stow
="$stow" # Let the user override the test.
3415 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3419 test -z "$as_dir" && as_dir
=.
3420 for ac_exec_ext
in '' $ac_executable_extensions; do
3421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3422 ac_cv_prog_stow
="$ac_prog"
3423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432 stow
=$ac_cv_prog_stow
3433 if test -n "$stow"; then
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stow" >&5
3435 $as_echo "$stow" >&6; }
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438 $as_echo "no" >&6; }
3442 test -n "$stow" && break
3444 test -n "$stow" || stow
="no"
3446 if test ${stow} = "no" ; then :
3448 as_fn_error $?
"Cannot use --enable-stow since stow is not available" "$LINENO" 5
3452 # Check if native or non-native build
3454 if test "${build}" = "${host}" ; then :
3457 # build == host so this is a native build. Make sure --prefix not
3458 # set and $STOW_PREFIX is set, then set prefix=$STOW_PREFIX.
3460 if test "${prefix}" = "NONE" && test -n "${STOW_PREFIX}" ; then :
3462 prefix
="${STOW_PREFIX}"
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_PREFIX from environment" >&5
3464 $as_echo "$as_me: Using \$STOW_PREFIX from environment" >&6;}
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
3466 $as_echo "$as_me: prefix=${prefix}" >&6;}
3474 # build != host so this is a non-native build. Make sure --prefix
3475 # not set and $STOW_ROOT is set, then set
3476 # prefix=$STOW_ROOT/${host_alias}.
3478 if test "${prefix}" = "NONE" && test -n "${STOW_ROOT}" ; then :
3480 prefix
="${STOW_ROOT}/${host_alias}"
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_ROOT from environment" >&5
3482 $as_echo "$as_me: Using \$STOW_ROOT from environment" >&6;}
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
3484 $as_echo "$as_me: prefix=${prefix}" >&6;}
3496 if test "${build}" != "${host}" ; then :
3498 if test -n "$ac_tool_prefix"; then
3499 for ac_prog
in isa-run run
3501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3502 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if ${ac_cv_prog_RUN+:} false
; then :
3506 $as_echo_n "(cached) " >&6
3508 if test -n "$RUN"; then
3509 ac_cv_prog_RUN
="$RUN" # Let the user override the test.
3511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3515 test -z "$as_dir" && as_dir
=.
3516 for ac_exec_ext
in '' $ac_executable_extensions; do
3517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3518 ac_cv_prog_RUN
="$ac_tool_prefix$ac_prog"
3519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 if test -n "$RUN"; then
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUN" >&5
3531 $as_echo "$RUN" >&6; }
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3538 test -n "$RUN" && break
3541 if test -z "$RUN"; then
3543 for ac_prog
in isa-run run
3545 # Extract the first word of "$ac_prog", so it can be a program name with args.
3546 set dummy
$ac_prog; ac_word
=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if ${ac_cv_prog_ac_ct_RUN+:} false
; then :
3550 $as_echo_n "(cached) " >&6
3552 if test -n "$ac_ct_RUN"; then
3553 ac_cv_prog_ac_ct_RUN
="$ac_ct_RUN" # Let the user override the test.
3555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3559 test -z "$as_dir" && as_dir
=.
3560 for ac_exec_ext
in '' $ac_executable_extensions; do
3561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3562 ac_cv_prog_ac_ct_RUN
="$ac_prog"
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 ac_ct_RUN
=$ac_cv_prog_ac_ct_RUN
3573 if test -n "$ac_ct_RUN"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RUN" >&5
3575 $as_echo "$ac_ct_RUN" >&6; }
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3582 test -n "$ac_ct_RUN" && break
3585 if test "x$ac_ct_RUN" = x
; then
3588 case $cross_compiling:$ac_tool_warned in
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3592 ac_tool_warned
=yes ;;
3598 if test ${RUN} = "no" ; then :
3600 as_fn_error $?
"Cannot find simulator for target ${target_alias}" "$LINENO" 5
3613 #-------------------------------------------------------------------------
3614 # Checks for header files
3615 #-------------------------------------------------------------------------
3619 ac_cpp
='$CPP $CPPFLAGS'
3620 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3624 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3625 # On Suns, sometimes $CPP names a directory.
3626 if test -n "$CPP" && test -d "$CPP"; then
3629 if test -z "$CPP"; then
3630 if ${ac_cv_prog_CPP+:} false
; then :
3631 $as_echo_n "(cached) " >&6
3633 # Double quotes because CPP needs to be expanded
3634 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3637 for ac_c_preproc_warn_flag
in '' yes
3639 # Use a header file that comes with gcc, so configuring glibc
3640 # with a fresh cross-compiler works.
3641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3642 # <limits.h> exists even on freestanding compilers.
3643 # On the NeXT, cc -E runs the code through the compiler's parser,
3644 # not just through cpp. "Syntax error" is here to catch this case.
3645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3648 # include <limits.h>
3650 # include <assert.h>
3654 if ac_fn_c_try_cpp
"$LINENO"; then :
3657 # Broken: fails on valid input.
3660 rm -f conftest.err conftest.i conftest.
$ac_ext
3662 # OK, works on sane cases. Now check whether nonexistent headers
3663 # can be detected and how.
3664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3666 #include <ac_nonexistent.h>
3668 if ac_fn_c_try_cpp
"$LINENO"; then :
3669 # Broken: success on invalid input.
3672 # Passes both tests.
3676 rm -f conftest.err conftest.i conftest.
$ac_ext
3679 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3680 rm -f conftest.i conftest.err conftest.
$ac_ext
3681 if $ac_preproc_ok; then :
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3694 $as_echo "$CPP" >&6; }
3696 for ac_c_preproc_warn_flag
in '' yes
3698 # Use a header file that comes with gcc, so configuring glibc
3699 # with a fresh cross-compiler works.
3700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3701 # <limits.h> exists even on freestanding compilers.
3702 # On the NeXT, cc -E runs the code through the compiler's parser,
3703 # not just through cpp. "Syntax error" is here to catch this case.
3704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3707 # include <limits.h>
3709 # include <assert.h>
3713 if ac_fn_c_try_cpp
"$LINENO"; then :
3716 # Broken: fails on valid input.
3719 rm -f conftest.err conftest.i conftest.
$ac_ext
3721 # OK, works on sane cases. Now check whether nonexistent headers
3722 # can be detected and how.
3723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3725 #include <ac_nonexistent.h>
3727 if ac_fn_c_try_cpp
"$LINENO"; then :
3728 # Broken: success on invalid input.
3731 # Passes both tests.
3735 rm -f conftest.err conftest.i conftest.
$ac_ext
3738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3739 rm -f conftest.i conftest.err conftest.
$ac_ext
3740 if $ac_preproc_ok; then :
3743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3745 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3746 See \`config.log' for more details" "$LINENO" 5; }
3750 ac_cpp
='$CPP $CPPFLAGS'
3751 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3757 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3758 if ${ac_cv_path_GREP+:} false
; then :
3759 $as_echo_n "(cached) " >&6
3761 if test -z "$GREP"; then
3762 ac_path_GREP_found
=false
3763 # Loop through the user's path and test for each of PROGNAME-LIST
3764 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3765 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3768 test -z "$as_dir" && as_dir
=.
3769 for ac_prog
in grep ggrep
; do
3770 for ac_exec_ext
in '' $ac_executable_extensions; do
3771 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3772 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3773 # Check for GNU ac_path_GREP and select it if it is found.
3774 # Check for GNU $ac_path_GREP
3775 case `"$ac_path_GREP" --version 2>&1` in
3777 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3780 $as_echo_n 0123456789 >"conftest.in"
3783 cat "conftest.in" "conftest.in" >"conftest.tmp"
3784 mv "conftest.tmp" "conftest.in"
3785 cp "conftest.in" "conftest.nl"
3786 $as_echo 'GREP' >> "conftest.nl"
3787 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3788 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3789 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3790 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3791 # Best one so far, save it but keep looking for a better one
3792 ac_cv_path_GREP
="$ac_path_GREP"
3793 ac_path_GREP_max
=$ac_count
3795 # 10*(2^10) chars as input seems more than enough
3796 test $ac_count -gt 10 && break
3798 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3801 $ac_path_GREP_found && break 3
3806 if test -z "$ac_cv_path_GREP"; then
3807 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3810 ac_cv_path_GREP
=$GREP
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3815 $as_echo "$ac_cv_path_GREP" >&6; }
3816 GREP
="$ac_cv_path_GREP"
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3820 $as_echo_n "checking for egrep... " >&6; }
3821 if ${ac_cv_path_EGREP+:} false
; then :
3822 $as_echo_n "(cached) " >&6
3824 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3825 then ac_cv_path_EGREP
="$GREP -E"
3827 if test -z "$EGREP"; then
3828 ac_path_EGREP_found
=false
3829 # Loop through the user's path and test for each of PROGNAME-LIST
3830 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3831 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3834 test -z "$as_dir" && as_dir
=.
3835 for ac_prog
in egrep; do
3836 for ac_exec_ext
in '' $ac_executable_extensions; do
3837 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3838 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3839 # Check for GNU ac_path_EGREP and select it if it is found.
3840 # Check for GNU $ac_path_EGREP
3841 case `"$ac_path_EGREP" --version 2>&1` in
3843 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3846 $as_echo_n 0123456789 >"conftest.in"
3849 cat "conftest.in" "conftest.in" >"conftest.tmp"
3850 mv "conftest.tmp" "conftest.in"
3851 cp "conftest.in" "conftest.nl"
3852 $as_echo 'EGREP' >> "conftest.nl"
3853 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3854 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3855 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3856 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3857 # Best one so far, save it but keep looking for a better one
3858 ac_cv_path_EGREP
="$ac_path_EGREP"
3859 ac_path_EGREP_max
=$ac_count
3861 # 10*(2^10) chars as input seems more than enough
3862 test $ac_count -gt 10 && break
3864 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3867 $ac_path_EGREP_found && break 3
3872 if test -z "$ac_cv_path_EGREP"; then
3873 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3876 ac_cv_path_EGREP
=$EGREP
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3882 $as_echo "$ac_cv_path_EGREP" >&6; }
3883 EGREP
="$ac_cv_path_EGREP"
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3887 $as_echo_n "checking for ANSI C header files... " >&6; }
3888 if ${ac_cv_header_stdc+:} false
; then :
3889 $as_echo_n "(cached) " >&6
3891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3906 if ac_fn_c_try_compile
"$LINENO"; then :
3907 ac_cv_header_stdc
=yes
3909 ac_cv_header_stdc
=no
3911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3913 if test $ac_cv_header_stdc = yes; then
3914 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3921 $EGREP "memchr" >/dev
/null
2>&1; then :
3924 ac_cv_header_stdc
=no
3930 if test $ac_cv_header_stdc = yes; then
3931 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3938 $EGREP "free" >/dev
/null
2>&1; then :
3941 ac_cv_header_stdc
=no
3947 if test $ac_cv_header_stdc = yes; then
3948 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3949 if test "$cross_compiling" = yes; then :
3952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3956 #if ((' ' & 0x0FF) == 0x020)
3957 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3958 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3960 # define ISLOWER(c) \
3961 (('a' <= (c) && (c) <= 'i') \
3962 || ('j' <= (c) && (c) <= 'r') \
3963 || ('s' <= (c) && (c) <= 'z'))
3964 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3967 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3972 for (i = 0; i < 256; i++)
3973 if (XOR (islower (i), ISLOWER (i))
3974 || toupper (i) != TOUPPER (i))
3979 if ac_fn_c_try_run
"$LINENO"; then :
3982 ac_cv_header_stdc
=no
3984 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3985 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3991 $as_echo "$ac_cv_header_stdc" >&6; }
3992 if test $ac_cv_header_stdc = yes; then
3994 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3999 #-------------------------------------------------------------------------
4000 # Default compiler flags
4001 #-------------------------------------------------------------------------
4005 CXXFLAGS
="-Wall -O2 -Wno-pmf-conversions"
4008 #-------------------------------------------------------------------------
4009 # MCPPBS subproject list
4010 #-------------------------------------------------------------------------
4011 # Order list so that subprojects only depend on those listed earlier.
4012 # The '*' suffix indicates an optional subproject. The '**' suffix
4013 # indicates an optional subproject which is also the name of a group.
4017 # Add command line argument to enable all optional subprojects
4019 # Check whether --enable-optional-subprojects was given.
4020 if test "${enable_optional_subprojects+set}" = set; then :
4021 enableval
=$enable_optional_subprojects;
4025 # Loop through the subprojects given in the macro argument
4029 # Determine if this is a required or an optional subproject
4033 # Determine if there is a group with the same name
4037 # Create variations of the subproject name suitable for use as a CPP
4038 # enabled define, a shell enabled variable, and a shell function
4050 # Add subproject to our running list
4052 subprojects
="$subprojects riscv"
4054 # Process the subproject appropriately. If enabled add it to the
4055 # $enabled_subprojects running shell variable, set a
4056 # SUBPROJECT_ENABLED C define, and include the appropriate
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : riscv" >&5
4061 $as_echo "$as_me: configuring default subproject : riscv" >&6;}
4062 ac_config_files
="$ac_config_files riscv.mk:riscv/riscv.mk.in"
4064 enable_riscv_sproj
="yes"
4065 subprojects_enabled
="$subprojects_enabled riscv"
4067 $as_echo "#define RISCV_ENABLED /**/" >>confdefs.h
4069 # Check whether --enable-fpu was given.
4070 if test "${enable_fpu+set}" = set; then :
4071 enableval
=$enable_fpu;
4074 if test "x$enable_fpu" != "xno"; then :
4077 $as_echo "#define RISCV_ENABLE_FPU /**/" >>confdefs.h
4082 # Check whether --enable-64bit was given.
4083 if test "${enable_64bit+set}" = set; then :
4084 enableval
=$enable_64bit;
4087 if test "x$enable_64bit" != "xno"; then :
4090 $as_echo "#define RISCV_ENABLE_64BIT /**/" >>confdefs.h
4095 # Check whether --enable-rvc was given.
4096 if test "${enable_rvc+set}" = set; then :
4097 enableval
=$enable_rvc;
4100 if test "x$enable_rvc" = "xyes"; then :
4103 $as_echo "#define RISCV_ENABLE_RVC /**/" >>confdefs.h
4108 # Check whether --enable-vec was given.
4109 if test "${enable_vec+set}" = set; then :
4110 enableval
=$enable_vec;
4113 if test "x$enable_vec" != "xno"; then :
4116 $as_echo "#define RISCV_ENABLE_VEC /**/" >>confdefs.h
4121 libopc
=`dirname \`which riscv-gcc\
``/..
/`$ac_config_guess`/riscv
/lib
/libopcodes.a
4122 as_ac_File
=`$as_echo "ac_cv_file_$libopc" | $as_tr_sh`
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $libopc" >&5
4124 $as_echo_n "checking for $libopc... " >&6; }
4125 if eval \
${$as_ac_File+:} false
; then :
4126 $as_echo_n "(cached) " >&6
4128 test "$cross_compiling" = yes &&
4129 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
4130 if test -r "$libopc"; then
4131 eval "$as_ac_File=yes"
4133 eval "$as_ac_File=no"
4136 eval ac_res
=\$
$as_ac_File
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4138 $as_echo "$ac_res" >&6; }
4139 if eval test \"x\$
"$as_ac_File"\" = x
"yes"; then :
4141 cat >>confdefs.h
<<_ACEOF
4142 #define `$as_echo "HAVE_$libopc" | $as_tr_cpp` 1
4144 have_libopcodes
="yes"
4146 have_libopcodes
="no"
4150 libbfd
="/opt/local/lib/libbfd.dylib"
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bfd_init" >&5
4152 $as_echo_n "checking for library containing bfd_init... " >&6; }
4153 if ${ac_cv_search_bfd_init+:} false
; then :
4154 $as_echo_n "(cached) " >&6
4156 ac_func_search_save_LIBS
=$LIBS
4157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4160 /* Override any GCC internal prototype to avoid an error.
4161 Use char because int might match the return type of a GCC
4162 builtin and then its argument prototype would still apply. */
4175 for ac_lib
in '' bfd
; do
4176 if test -z "$ac_lib"; then
4177 ac_res
="none required"
4180 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4182 if ac_fn_c_try_link
"$LINENO"; then :
4183 ac_cv_search_bfd_init
=$ac_res
4185 rm -f core conftest.err conftest.
$ac_objext \
4187 if ${ac_cv_search_bfd_init+:} false
; then :
4191 if ${ac_cv_search_bfd_init+:} false
; then :
4194 ac_cv_search_bfd_init
=no
4197 LIBS
=$ac_func_search_save_LIBS
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bfd_init" >&5
4200 $as_echo "$ac_cv_search_bfd_init" >&6; }
4201 ac_res
=$ac_cv_search_bfd_init
4202 if test "$ac_res" != no
; then :
4203 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4207 as_ac_File
=`$as_echo "ac_cv_file_$libbfd" | $as_tr_sh`
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $libbfd" >&5
4209 $as_echo_n "checking for $libbfd... " >&6; }
4210 if eval \
${$as_ac_File+:} false
; then :
4211 $as_echo_n "(cached) " >&6
4213 test "$cross_compiling" = yes &&
4214 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
4215 if test -r "$libbfd"; then
4216 eval "$as_ac_File=yes"
4218 eval "$as_ac_File=no"
4221 eval ac_res
=\$
$as_ac_File
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4223 $as_echo "$ac_res" >&6; }
4224 if eval test \"x\$
"$as_ac_File"\" = x
"yes"; then :
4226 cat >>confdefs.h
<<_ACEOF
4227 #define `$as_echo "HAVE_$libbfd" | $as_tr_cpp` 1
4229 libopc
="$libopc $libbfd" incopc
="/opt/local/include"
4231 have_libopcodes
="no"
4238 if test "$have_libopcodes" = "no"; then :
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find opcodes library" >&5
4241 $as_echo "$as_me: WARNING: Could not find opcodes library" >&2;}
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Build will not include disassembly support" >&5
4243 $as_echo "$as_me: WARNING: Build will not include disassembly support" >&2;}
4247 LIBS
="$libopc $LIBS"
4250 $as_echo "#define RISCV_HAVE_LIBOPCODES /**/" >>confdefs.h
4260 # Determine if this is a required or an optional subproject
4264 # Determine if there is a group with the same name
4268 # Create variations of the subproject name suitable for use as a CPP
4269 # enabled define, a shell enabled variable, and a shell function
4281 # Add subproject to our running list
4283 subprojects
="$subprojects softfloat"
4285 # Process the subproject appropriately. If enabled add it to the
4286 # $enabled_subprojects running shell variable, set a
4287 # SUBPROJECT_ENABLED C define, and include the appropriate
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : softfloat" >&5
4292 $as_echo "$as_me: configuring default subproject : softfloat" >&6;}
4293 ac_config_files
="$ac_config_files softfloat.mk:softfloat/softfloat.mk.in"
4295 enable_softfloat_sproj
="yes"
4296 subprojects_enabled
="$subprojects_enabled softfloat"
4298 $as_echo "#define SOFTFLOAT_ENABLED /**/" >>confdefs.h
4305 # Determine if this is a required or an optional subproject
4309 # Determine if there is a group with the same name
4313 # Create variations of the subproject name suitable for use as a CPP
4314 # enabled define, a shell enabled variable, and a shell function
4326 # Add subproject to our running list
4328 subprojects
="$subprojects softfloat_riscv"
4330 # Process the subproject appropriately. If enabled add it to the
4331 # $enabled_subprojects running shell variable, set a
4332 # SUBPROJECT_ENABLED C define, and include the appropriate
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : softfloat_riscv" >&5
4337 $as_echo "$as_me: configuring default subproject : softfloat_riscv" >&6;}
4338 ac_config_files
="$ac_config_files softfloat_riscv.mk:softfloat_riscv/softfloat_riscv.mk.in"
4340 enable_softfloat_riscv_sproj
="yes"
4341 subprojects_enabled
="$subprojects_enabled softfloat_riscv"
4343 $as_echo "#define SOFTFLOAT_RISCV_ENABLED /**/" >>confdefs.h
4350 # Output make variables
4357 #-------------------------------------------------------------------------
4358 # MCPPBS subproject groups
4359 #-------------------------------------------------------------------------
4360 # If a group has the same name as a subproject then you must add the
4361 # '**' suffix in the subproject list above. The list of subprojects in a
4362 # group should be ordered so that subprojets only depend on those listed
4363 # earlier. Here is an example:
4365 # MCPPBS_GROUP( [group-name], [sproja,sprojb,...] )
4368 #-------------------------------------------------------------------------
4370 #-------------------------------------------------------------------------
4372 ac_config_headers
="$ac_config_headers config.h"
4374 ac_config_files
="$ac_config_files Makefile"
4376 cat >confcache
<<\_ACEOF
4377 # This file is a shell script that caches the results of configure
4378 # tests run on this system so they can be shared between configure
4379 # scripts and configure runs, see configure's option --config-cache.
4380 # It is not useful on other systems. If it contains results you don't
4381 # want to keep, you may remove or edit it.
4383 # config.status only pays attention to the cache file if you give it
4384 # the --recheck option to rerun configure.
4386 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4387 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4392 # The following way of writing the cache mishandles newlines in values,
4393 # but we know of no workaround that is simple, portable, and efficient.
4394 # So, we kill variables containing newlines.
4395 # Ultrix sh set writes to stderr and can't be redirected directly,
4396 # and sets the high bit in the cache file unless we assign to the vars.
4398 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4399 eval ac_val
=\$
$ac_var
4403 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4404 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4407 _ | IFS | as_nl
) ;; #(
4408 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
4409 *) { eval $ac_var=; unset $ac_var;} ;;
4415 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4416 *${as_nl}ac_space
=\
*)
4417 # `set' does not quote correctly, so add quotes: double-quote
4418 # substitution turns \\\\ into \\, and sed turns \\ into \.
4421 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4424 # `set' quotes correctly as required by POSIX, so do not add quotes.
4425 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4434 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4436 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4438 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
4439 if test -w "$cache_file"; then
4440 if test "x$cache_file" != "x/dev/null"; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4442 $as_echo "$as_me: updating cache $cache_file" >&6;}
4443 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
4444 cat confcache
>"$cache_file"
4446 case $cache_file in #(
4448 mv -f confcache
"$cache_file"$$
&&
4449 mv -f "$cache_file"$$
"$cache_file" ;; #(
4451 mv -f confcache
"$cache_file" ;;
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4457 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4462 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4463 # Let make expand exec_prefix.
4464 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4466 DEFS
=-DHAVE_CONFIG_H
4471 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4472 # 1. Remove the extension, and $U if already installed.
4473 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
4474 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
4475 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4476 # will be set to the directory where LIBOBJS objects are built.
4477 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4478 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
4482 LTLIBOBJS
=$ac_ltlibobjs
4486 : "${CONFIG_STATUS=./config.status}"
4488 ac_clean_files_save
=$ac_clean_files
4489 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4491 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4493 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4495 # Generated by $as_me.
4496 # Run this file to recreate the current configuration.
4497 # Compiler output produced by configure, useful for debugging
4498 # configure, is in config.log if it exists.
4504 SHELL=\${CONFIG_SHELL-$SHELL}
4507 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
4508 ## -------------------- ##
4509 ## M4sh Initialization. ##
4510 ## -------------------- ##
4512 # Be more Bourne compatible
4513 DUALCASE
=1; export DUALCASE
# for MKS sh
4514 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
4517 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4518 # is contrary to our usage. Disable this feature.
4519 alias -g '${1+"$@"}'='"$@"'
4520 setopt NO_GLOB_SUBST
4522 case `(set -o) 2>/dev/null` in #(
4534 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4535 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4536 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4537 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4538 # Prefer a ksh shell builtin over an external printf program on Solaris,
4539 # but without wasting forks for bash or zsh.
4540 if test -z "$BASH_VERSION$ZSH_VERSION" \
4541 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4542 as_echo='print
-r --'
4543 as_echo_n='print
-rn --'
4544 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4545 as_echo='printf %s
\n'
4546 as_echo_n='printf %s
'
4548 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4549 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
4550 as_echo_n='/usr
/ucb
/echo -n'
4552 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4553 as_echo_n_body='eval
4557 expr "X$arg" : "X\\(.*\\)$as_nl";
4558 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4560 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
4562 export as_echo_n_body
4563 as_echo_n='sh
-c $as_echo_n_body as_echo
'
4566 as_echo='sh
-c $as_echo_body as_echo
'
4569 # The user is always right.
4570 if test "${PATH_SEPARATOR+set}" != set; then
4572 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4573 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4580 # We need space, tab and new line, in precisely that order. Quoting is
4581 # there to prevent editors from complaining about space-tab.
4582 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4583 # splitting by setting IFS to empty value.)
4586 # Find who we are. Look in the path if we contain no directory separator.
4589 *[\\/]* ) as_myself=$0 ;;
4590 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 test -z "$as_dir" && as_dir=.
4595 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4601 # We did not find ourselves, most probably we were run as `sh COMMAND'
4602 # in which case we are not to be found in the path.
4603 if test "x$as_myself" = x
; then
4606 if test ! -f "$as_myself"; then
4607 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4611 # Unset variables that we do not need and which cause bugs (e.g. in
4612 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4613 # suppresses any "Segmentation fault" message there. '((' could
4614 # trigger a bug in pdksh 5.2.14.
4615 for as_var
in BASH_ENV ENV MAIL MAILPATH
4616 do eval test x\
${$as_var+set} = xset \
4617 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
4630 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
4633 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4634 # ----------------------------------------
4635 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4636 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4637 # script with STATUS, using 1 if that was 0.
4640 as_status
=$1; test $as_status -eq 0 && as_status
=1
4642 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
4643 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4645 $as_echo "$as_me: error: $2" >&2
4646 as_fn_exit
$as_status
4650 # as_fn_set_status STATUS
4651 # -----------------------
4652 # Set $? to STATUS, without forking.
4656 } # as_fn_set_status
4660 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4670 # Portably unset VAR.
4673 { eval $1=; unset $1;}
4675 as_unset
=as_fn_unset
4676 # as_fn_append VAR VALUE
4677 # ----------------------
4678 # Append the text in VALUE to the end of the definition contained in VAR. Take
4679 # advantage of any shell optimizations that allow amortized linear growth over
4680 # repeated appends, instead of the typical quadratic growth present in naive
4682 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
4683 eval 'as_fn_append ()
4694 # as_fn_arith ARG...
4695 # ------------------
4696 # Perform arithmetic evaluation on the ARGs, and store the result in the
4697 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4698 # must be portable across $(()) and expr.
4699 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
4700 eval 'as_fn_arith ()
4707 as_val
=`expr "$@" || test $? -eq 1`
4712 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
4713 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
4719 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4720 as_basename
=basename
4725 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
4731 as_me
=`$as_basename -- "$0" ||
4732 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4733 X"$0" : 'X\(//\)$' \| \
4734 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4736 sed '/^.*\/\([^/][^/]*\)\/*$/{
4750 # Avoid depending upon Character Ranges.
4751 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4752 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4753 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4754 as_cr_digits
='0123456789'
4755 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4757 ECHO_C
= ECHO_N
= ECHO_T
=
4758 case `echo -n x` in #(((((
4760 case `echo 'xy\c'` in
4761 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
4763 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
4770 rm -f conf$$ conf$$.exe conf$$.
file
4771 if test -d conf$$.dir
; then
4772 rm -f conf$$.dir
/conf$$.
file
4775 mkdir conf$$.dir
2>/dev
/null
4777 if (echo >conf$$.
file) 2>/dev
/null
; then
4778 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4780 # ... but there are two gotchas:
4781 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4782 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4783 # In both cases, we have to default to `cp -p'.
4784 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
4786 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4794 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
4795 rmdir conf$$.dir
2>/dev
/null
4800 # Create "$as_dir" as a directory, including parents if necessary.
4805 -*) as_dir
=.
/$as_dir;;
4807 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
4811 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4812 *) as_qdir
=$as_dir;;
4814 as_dirs
="'$as_qdir' $as_dirs"
4815 as_dir
=`$as_dirname -- "$as_dir" ||
4816 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4817 X"$as_dir" : 'X\(//\)[^/]' \| \
4818 X"$as_dir" : 'X\(//\)$' \| \
4819 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4820 $as_echo X"$as_dir" |
4821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4838 test -d "$as_dir" && break
4840 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
4841 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
4845 if mkdir
-p .
2>/dev
/null
; then
4846 as_mkdir_p
='mkdir -p "$as_dir"'
4848 test -d .
/-p && rmdir .
/-p
4852 if test -x / >/dev
/null
2>&1; then
4855 if ls -dL / >/dev
/null
2>&1; then
4862 if test -d "$1"; then
4868 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4869 ???[sx]*):;;*)false;;esac;fi
4873 as_executable_p
=$as_test_x
4875 # Sed expression to map a string onto a valid CPP name.
4876 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4878 # Sed expression to map a string onto a valid variable name.
4879 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4883 ## ----------------------------------- ##
4884 ## Main body of $CONFIG_STATUS script. ##
4885 ## ----------------------------------- ##
4887 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
4889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4890 # Save the log message, to keep $0 and so on meaningful, and to
4891 # report actual input values of CONFIG_FILES etc. instead of their
4892 # values after options handling.
4894 This file was extended by RISC-V ISA Simulator $as_me ?, which was
4895 generated by GNU Autoconf 2.68. Invocation command line was
4897 CONFIG_FILES = $CONFIG_FILES
4898 CONFIG_HEADERS = $CONFIG_HEADERS
4899 CONFIG_LINKS = $CONFIG_LINKS
4900 CONFIG_COMMANDS = $CONFIG_COMMANDS
4903 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4908 case $ac_config_files in *"
4909 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
4912 case $ac_config_headers in *"
4913 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
4917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4918 # Files that config.status was made for.
4919 config_files="$ac_config_files"
4920 config_headers="$ac_config_headers"
4924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4926 \`$as_me' instantiates files and other configuration actions
4927 from templates according to the current configuration. Unless the files
4928 and actions are specified as TAGs, all are instantiated by default.
4930 Usage: $0 [OPTION]... [TAG]...
4932 -h, --help print this help, then exit
4933 -V, --version print version number and configuration settings, then exit
4934 --config print configuration, then exit
4935 -q, --quiet, --silent
4936 do not print progress messages
4937 -d, --debug don't remove temporary files
4938 --recheck update $as_me by reconfiguring in the same conditions
4939 --file=FILE[:TEMPLATE]
4940 instantiate the configuration file FILE
4941 --header=FILE[:TEMPLATE]
4942 instantiate the configuration header FILE
4944 Configuration files:
4947 Configuration headers:
4950 Report bugs to <Andrew Waterman>."
4953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4954 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4956 RISC-V ISA Simulator config.status ?
4957 configured by $0, generated by GNU Autoconf 2.68,
4958 with options \\"\$ac_cs_config\\"
4960 Copyright (C) 2010 Free Software Foundation, Inc.
4961 This config.status script is free software; the Free Software Foundation
4962 gives unlimited permission to copy, distribute and modify it."
4967 test -n "\$AWK" || AWK=awk
4970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4971 # The default lists apply if the user does not specify any file.
4977 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
4978 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
4982 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
4994 # Handling of the options.
4995 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
4997 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
4998 $as_echo "$ac_cs_version"; exit ;;
4999 --config |
--confi |
--conf |
--con |
--co |
--c )
5000 $as_echo "$ac_cs_config"; exit ;;
5001 --debug |
--debu |
--deb |
--de |
--d |
-d )
5003 --file |
--fil |
--fi |
--f )
5006 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5007 '') as_fn_error $?
"missing file argument" ;;
5009 as_fn_append CONFIG_FILES
" '$ac_optarg'"
5010 ac_need_defaults
=false
;;
5011 --header |
--heade |
--head |
--hea )
5014 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5016 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
5017 ac_need_defaults
=false
;;
5019 # Conflict between --help and --header
5020 as_fn_error $?
"ambiguous option: \`$1'
5021 Try \`$0 --help' for more information.";;
5022 --help |
--hel |
-h )
5023 $as_echo "$ac_cs_usage"; exit ;;
5024 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
5025 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
5029 -*) as_fn_error $?
"unrecognized option: \`$1'
5030 Try \`$0 --help' for more information." ;;
5032 *) as_fn_append ac_config_targets
" $1"
5033 ac_need_defaults
=false
;;
5039 ac_configure_extra_args
=
5041 if $ac_cs_silent; then
5043 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5048 if \$ac_cs_recheck; then
5049 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5051 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5052 CONFIG_SHELL='$SHELL'
5058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5062 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5063 ## Running $as_me. ##
5069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5074 # Handling of arguments.
5075 for ac_config_target
in $ac_config_targets
5077 case $ac_config_target in
5078 "riscv.mk") CONFIG_FILES
="$CONFIG_FILES riscv.mk:riscv/riscv.mk.in" ;;
5079 "softfloat.mk") CONFIG_FILES
="$CONFIG_FILES softfloat.mk:softfloat/softfloat.mk.in" ;;
5080 "softfloat_riscv.mk") CONFIG_FILES
="$CONFIG_FILES softfloat_riscv.mk:softfloat_riscv/softfloat_riscv.mk.in" ;;
5081 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
5082 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5084 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5089 # If the user did not use the arguments to specify the items to instantiate,
5090 # then the envvar interface is used. Set only those that are not.
5091 # We use the long form for the default assignment because of an extremely
5092 # bizarre bug on SunOS 4.1.3.
5093 if $ac_need_defaults; then
5094 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5095 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5098 # Have a temporary directory for convenience. Make it in the build tree
5099 # simply because there is no reason against having it here, and in addition,
5100 # creating and moving files from /tmp can sometimes cause problems.
5101 # Hook for its removal unless debugging.
5102 # Note that there is a small window in which the directory will not be cleaned:
5103 # after its creation but before its name has been assigned to `$tmp'.
5107 trap 'exit_status=$?
5109 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5111 trap 'as_fn_exit 1' 1 2 13 15
5113 # Create a (secure) tmp directory for tmp files.
5116 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5120 tmp
=.
/conf$$
-$RANDOM
5121 (umask 077 && mkdir
"$tmp")
5122 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
5125 # Set up the scripts for CONFIG_FILES section.
5126 # No need to generate them if there are no CONFIG_FILES.
5127 # This happens for instance with `./config.status config.h'.
5128 if test -n "$CONFIG_FILES"; then
5131 ac_cr
=`echo X | tr X '\015'`
5132 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5133 # But we know of no other shell where ac_cr would be empty at this
5134 # point, so we can use a bashism as a fallback.
5135 if test "x$ac_cr" = x
; then
5136 eval ac_cr
=\$
\'\\r
\'
5138 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5139 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5145 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5150 echo "cat >conf$$subs.awk <<_ACEOF" &&
5151 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5154 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5155 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5157 for ac_last_try in false false false false false :; do
5158 . ./conf$$subs.sh ||
5159 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5161 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
5162 if test $ac_delim_n = $ac_delim_num; then
5164 elif $ac_last_try; then
5165 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5167 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5173 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
5177 s/^/S["/; s
/!.
*/"]=/
5187 s/\(.\{148\}\)..*/\1/
5189 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
5194 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5201 s/\(.\{148\}\)..*/\1/
5203 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5207 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5212 ' <conf$$subs.awk | sed '
5217 ' >>$CONFIG_STATUS || ac_write_fail=1
5218 rm -f conf$$subs.awk
5219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5221 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
5222 for (key in S) S_is_set[key] = 1
5228 nfields = split(line, field, "@
")
5230 len = length(field[1])
5231 for (i = 2; i < nfields; i++) {
5233 keylen = length(key)
5234 if (S_is_set[key]) {
5236 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5237 len += length(value) + length(field[++i])
5248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5249 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5250 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
5253 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
5254 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
5257 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5258 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
5259 # trailing colons and then remove the whole line if VPATH becomes empty
5260 # (actually we leave an empty line to preserve line numbers).
5261 if test "x
$srcdir" = x.; then
5262 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5281 fi # test -n "$CONFIG_FILES"
5283 # Set up the scripts for CONFIG_HEADERS section.
5284 # No need to generate them if there are no CONFIG_HEADERS.
5285 # This happens for instance with `./config.status Makefile'.
5286 if test -n "$CONFIG_HEADERS"; then
5287 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
5291 # Transform confdefs.h into an awk script `defines.awk', embedded as
5292 # here-document in config.status, that substitutes the proper values into
5293 # config.h.in to produce config.h.
5295 # Create a delimiter string that does not exist in confdefs.h, to ease
5296 # handling of long lines.
5298 for ac_last_try in false false :; do
5299 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
5300 if test -z "$ac_tt"; then
5302 elif $ac_last_try; then
5303 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
5305 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5309 # For the awk script, D is an array of macro values keyed by name,
5310 # likewise P contains macro parameters if any. Preserve backslash
5311 # newline sequences.
5313 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5315 s/.\{148\}/&'"$ac_delim"'/g
5318 s/^[ ]*#[ ]*define[ ][ ]*/ /
5325 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5327 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5331 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5332 D["\
1"]=" \
3\\\\\\n
"\\/p
5334 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5339 s/.\{148\}/&'"$ac_delim"'/g
5344 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5347 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5349 ' <confdefs.h | sed '
5350 s/'"$ac_delim"'/"\\\
5351 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5354 for (key in D) D_is_set[key] = 1
5357 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5359 split(line, arg, " ")
5360 if (arg[1] == "#") {
5364 defundef
= substr
(arg
[1], 2)
5367 split(mac1
, mac2
, "(") #)
5369 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5370 if (D_is_set
[macro
]) {
5371 # Preserve the white space surrounding the "#".
5372 print prefix
"define", macro P
[macro
] D
[macro
]
5375 # Replace #undef with comments. This is necessary, for example,
5376 # in the case of _POSIX_SOURCE, which is predefined and required
5377 # on some systems where configure will not decide to define it.
5378 if (defundef
== "undef") {
5379 print
"/*", prefix defundef
, macro
, "*/"
5387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5388 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
5389 fi # test -n "$CONFIG_HEADERS"
5392 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
5397 :[FHLC
]) ac_mode
=$ac_tag; continue;;
5399 case $ac_mode$ac_tag in
5401 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
5402 :[FH
]-) ac_tag
=-:-;;
5403 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
5420 -) ac_f
="$ac_tmp/stdin";;
5421 *) # Look for the file first in the build tree, then in the source tree
5422 # (if the path is not absolute). The absolute path cannot be DOS-style,
5423 # because $ac_f cannot contain `:'.
5427 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
5429 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5431 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5432 as_fn_append ac_file_inputs
" '$ac_f'"
5435 # Let's still pretend it is `configure' which instantiates (i.e., don't
5436 # use $as_me), people would be surprised to read:
5437 # /* config.h. Generated by config.status. */
5438 configure_input
='Generated from '`
5439 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5441 if test x
"$ac_file" != x-
; then
5442 configure_input
="$ac_file. $configure_input"
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5444 $as_echo "$as_me: creating $ac_file" >&6;}
5446 # Neutralize special characters interpreted by sed in replacement strings.
5447 case $configure_input in #(
5448 *\
&* |
*\|
* |
*\\* )
5449 ac_sed_conf_input
=`$as_echo "$configure_input" |
5450 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5451 *) ac_sed_conf_input
=$configure_input;;
5455 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
5456 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
5461 ac_dir
=`$as_dirname -- "$ac_file" ||
5462 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5463 X"$ac_file" : 'X\(//\)[^/]' \| \
5464 X"$ac_file" : 'X\(//\)$' \| \
5465 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5466 $as_echo X"$ac_file" |
5467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5484 as_dir
="$ac_dir"; as_fn_mkdir_p
5488 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5490 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5491 # A ".." for each directory in $ac_dir_suffix.
5492 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5493 case $ac_top_builddir_sub in
5494 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5495 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
5498 ac_abs_top_builddir
=$ac_pwd
5499 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
5500 # for backward compatibility:
5501 ac_top_builddir
=$ac_top_build_prefix
5504 .
) # We are building in place.
5506 ac_top_srcdir
=$ac_top_builddir_sub
5507 ac_abs_top_srcdir
=$ac_pwd ;;
5508 [\\/]* | ?
:[\\/]* ) # Absolute name.
5509 ac_srcdir
=$srcdir$ac_dir_suffix;
5510 ac_top_srcdir
=$srcdir
5511 ac_abs_top_srcdir
=$srcdir ;;
5513 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
5514 ac_top_srcdir
=$ac_top_build_prefix$srcdir
5515 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
5517 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
5527 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5528 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
5532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5533 # If the template does not know about datarootdir, expand it.
5534 # FIXME: This hack should be removed a few years after 2.60.
5535 ac_datarootdir_hack
=; ac_datarootdir_seen
=
5546 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5547 *datarootdir
*) ac_datarootdir_seen
=yes;;
5548 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5550 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5553 ac_datarootdir_hack='
5554 s&@datadir@&$datadir&g
5555 s&@docdir@&$docdir&g
5556 s&@infodir@&$infodir&g
5557 s&@localedir@&$localedir&g
5558 s&@mandir@&$mandir&g
5559 s&\\\${datarootdir}&$datarootdir&g' ;;
5563 # Neutralize VPATH when `$srcdir' = `.'.
5564 # Shell code in configure.ac might set extrasub.
5565 # FIXME: do we really want to maintain this feature?
5566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5567 ac_sed_extra="$ac_vpsub
5570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5572 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5573 s|@configure_input@|
$ac_sed_conf_input|
;t t
5574 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
5575 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
5576 s
&@srcdir@
&$ac_srcdir&;t t
5577 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
5578 s
&@top_srcdir@
&$ac_top_srcdir&;t t
5579 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
5580 s
&@builddir@
&$ac_builddir&;t t
5581 s
&@abs_builddir@
&$ac_abs_builddir&;t t
5582 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
5583 s
&@INSTALL@
&$ac_INSTALL&;t t
5584 $ac_datarootdir_hack
5586 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
5587 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
5589 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5590 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
5591 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5592 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
5594 which seems to be undefined. Please make sure it is defined" >&5
5595 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
5596 which seems to be undefined. Please make sure it is defined" >&2;}
5598 rm -f "$ac_tmp/stdin"
5600 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5601 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5603 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5609 if test x"$ac_file" != x-; then
5611 $as_echo "/* $configure_input */" \
5612 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5613 } >"$ac_tmp/config.h" \
5614 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5615 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5617 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5620 mv "$ac_tmp/config.h" "$ac_file" \
5621 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5624 $as_echo "/* $configure_input */" \
5625 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5626 || as_fn_error $? "could not create -" "$LINENO" 5
5638 ac_clean_files=$ac_clean_files_save
5640 test $ac_write_fail = 0 ||
5641 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5644 # configure is writing to config.log, and then calls config.status.
5645 # config.status does its own redirection, appending to config.log.
5646 # Unfortunately, on DOS this fails, as config.log is still kept open
5647 # by configure, so config.status won't be able to
write to it
; its
5648 # output is simply discarded. So we exec the FD to /dev/null,
5649 # effectively closing config.log, so it can be properly (re)opened and
5650 # appended to by config.status. When coming back to configure, we
5651 # need to make the FD available again.
5652 if test "$no_create" != yes; then
5654 ac_config_status_args
=
5655 test "$silent" = yes &&
5656 ac_config_status_args
="$ac_config_status_args --quiet"
5658 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5660 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5661 # would make configure fail if this is the last instruction.
5662 $ac_cs_success || as_fn_exit
1
5664 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5666 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}