2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for RISC-V ISA Simulator ?.
5 # Report bugs to <Andrew Waterman>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and Andrew Waterman
232 $0: about your system, including any error possibly output
233 $0: before this message. Then install a modern shell, or
234 $0: manually run the script under such a shell if you do
241 SHELL
=${CONFIG_SHELL-/bin/sh}
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE
= GREP_OPTIONS
=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
252 # Portably unset VAR.
255 { eval $1=; unset $1;}
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 # Create "$as_dir" as a directory, including parents if necessary.
284 -*) as_dir
=.
/$as_dir;;
286 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
290 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 as_dirs
="'$as_qdir' $as_dirs"
294 as_dir
=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317 test -d "$as_dir" && break
319 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
320 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
331 eval 'as_fn_append ()
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
355 as_val
=`expr "$@" || test $? -eq 1`
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
367 as_status
=$?
; test $as_status -eq 0 && as_status
=1
369 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit
$as_status
376 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
383 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
395 as_me
=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
414 # Avoid depending upon Character Ranges.
415 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits
='0123456789'
419 as_cr_alnum
=$as_cr_Letters$as_cr_digits
422 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
423 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 chmod +x
"$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
449 # Exit status is that of the last command.
453 ECHO_C
= ECHO_N
= ECHO_T
=
454 case `echo -n x` in #(((((
456 case `echo 'xy\c'` in
457 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
466 rm -f conf$$ conf$$.exe conf$$.
file
467 if test -d conf$$.dir
; then
468 rm -f conf$$.dir
/conf$$.
file
471 mkdir conf$$.dir
2>/dev
/null
473 if (echo >conf$$.
file) 2>/dev
/null
; then
474 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
482 elif ln conf$$.
file conf$$
2>/dev
/null
; then
490 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
491 rmdir conf$$.dir
2>/dev
/null
493 if mkdir
-p .
2>/dev
/null
; then
494 as_mkdir_p
='mkdir -p "$as_dir"'
496 test -d .
/-p && rmdir .
/-p
500 if test -x / >/dev
/null
2>&1; then
503 if ls -dL / >/dev
/null
2>&1; then
510 if test -d "$1"; then
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
521 as_executable_p
=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 exec 7<&0 </dev
/null
6>&1
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
550 PACKAGE_NAME
='RISC-V ISA Simulator'
551 PACKAGE_TARNAME
='riscv-sim-isa'
553 PACKAGE_STRING
='RISC-V ISA Simulator ?'
554 PACKAGE_BUGREPORT
='Andrew Waterman'
557 ac_unique_file
="riscv/common.h"
558 ac_subst_vars
='LTLIBOBJS
622 program_transform_name
635 enable_option_checking
637 enable_optional_subprojects
639 ac_precious_vars
='build_alias
655 # Initialize some variables set by options.
657 ac_init_version
=false
658 ac_unrecognized_opts
=
660 # The variables have the same names as the options, with
661 # dashes changed to underlines.
669 program_transform_name
=s
,x
,x
,
677 # Installation directory options.
678 # These are left unexpanded so users can "make install exec_prefix=/foo"
679 # and all the variables that are supposed to be based on exec_prefix
680 # by default will actually change.
681 # Use braces instead of parens because sh, perl, etc. also accept them.
682 # (The list follows the same order as the GNU Coding Standards.)
683 bindir
='${exec_prefix}/bin'
684 sbindir
='${exec_prefix}/sbin'
685 libexecdir
='${exec_prefix}/libexec'
686 datarootdir
='${prefix}/share'
687 datadir
='${datarootdir}'
688 sysconfdir
='${prefix}/etc'
689 sharedstatedir
='${prefix}/com'
690 localstatedir
='${prefix}/var'
691 includedir
='${prefix}/include'
692 oldincludedir
='/usr/include'
693 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
694 infodir
='${datarootdir}/info'
699 libdir
='${exec_prefix}/lib'
700 localedir
='${datarootdir}/locale'
701 mandir
='${datarootdir}/man'
707 # If the previous option needs an argument, assign it.
708 if test -n "$ac_prev"; then
709 eval $ac_prev=\
$ac_option
715 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
719 # Accept the important Cygnus configure options, so we can diagnose typos.
721 case $ac_dashdash$ac_option in
725 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
727 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
730 -build |
--build |
--buil |
--bui |
--bu)
731 ac_prev
=build_alias
;;
732 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
733 build_alias
=$ac_optarg ;;
735 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
736 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
737 ac_prev
=cache_file
;;
738 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
739 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
740 cache_file
=$ac_optarg ;;
743 cache_file
=config.cache
;;
745 -datadir |
--datadir |
--datadi |
--datad)
747 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
748 datadir
=$ac_optarg ;;
750 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
751 |
--dataroo |
--dataro |
--datar)
752 ac_prev
=datarootdir
;;
753 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
754 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
755 datarootdir
=$ac_optarg ;;
757 -disable-* |
--disable-*)
758 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
759 # Reject names that are not valid shell variable names.
760 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
761 as_fn_error
"invalid feature name: $ac_useropt"
762 ac_useropt_orig
=$ac_useropt
763 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
764 case $ac_user_opts in
768 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
769 ac_unrecognized_sep
=', ';;
771 eval enable_
$ac_useropt=no
;;
773 -docdir |
--docdir |
--docdi |
--doc |
--do)
775 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
778 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
780 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
783 -enable-* |
--enable-*)
784 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
785 # Reject names that are not valid shell variable names.
786 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
787 as_fn_error
"invalid feature name: $ac_useropt"
788 ac_useropt_orig
=$ac_useropt
789 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
790 case $ac_user_opts in
794 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
795 ac_unrecognized_sep
=', ';;
797 eval enable_
$ac_useropt=\
$ac_optarg ;;
799 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
800 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
801 |
--exec |
--exe |
--ex)
802 ac_prev
=exec_prefix
;;
803 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
804 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
805 |
--exec=* |
--exe=* |
--ex=*)
806 exec_prefix
=$ac_optarg ;;
808 -gas |
--gas |
--ga |
--g)
809 # Obsolete; use --with-gas.
812 -help |
--help |
--hel |
--he |
-h)
814 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
815 ac_init_help
=recursive
;;
816 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
817 ac_init_help
=short
;;
819 -host |
--host |
--hos |
--ho)
820 ac_prev
=host_alias
;;
821 -host=* |
--host=* |
--hos=* |
--ho=*)
822 host_alias
=$ac_optarg ;;
824 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
826 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
828 htmldir
=$ac_optarg ;;
830 -includedir |
--includedir |
--includedi |
--included |
--include \
831 |
--includ |
--inclu |
--incl |
--inc)
832 ac_prev
=includedir
;;
833 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
834 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
835 includedir
=$ac_optarg ;;
837 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
839 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
840 infodir
=$ac_optarg ;;
842 -libdir |
--libdir |
--libdi |
--libd)
844 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
847 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
848 |
--libexe |
--libex |
--libe)
849 ac_prev
=libexecdir
;;
850 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
851 |
--libexe=* |
--libex=* |
--libe=*)
852 libexecdir
=$ac_optarg ;;
854 -localedir |
--localedir |
--localedi |
--localed |
--locale)
856 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
857 localedir
=$ac_optarg ;;
859 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
860 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
861 ac_prev
=localstatedir
;;
862 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
863 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
864 localstatedir
=$ac_optarg ;;
866 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
868 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
872 # Obsolete; use --without-fp.
875 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
876 |
--no-cr |
--no-c |
-n)
879 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
880 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
883 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
884 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
885 |
--oldin |
--oldi |
--old |
--ol |
--o)
886 ac_prev
=oldincludedir
;;
887 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
888 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
889 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
890 oldincludedir
=$ac_optarg ;;
892 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
894 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
897 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
898 |
--program-pre |
--program-pr |
--program-p)
899 ac_prev
=program_prefix
;;
900 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
901 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
902 program_prefix
=$ac_optarg ;;
904 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
905 |
--program-suf |
--program-su |
--program-s)
906 ac_prev
=program_suffix
;;
907 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
908 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
909 program_suffix
=$ac_optarg ;;
911 -program-transform-name |
--program-transform-name \
912 |
--program-transform-nam |
--program-transform-na \
913 |
--program-transform-n |
--program-transform- \
914 |
--program-transform |
--program-transfor \
915 |
--program-transfo |
--program-transf \
916 |
--program-trans |
--program-tran \
917 |
--progr-tra |
--program-tr |
--program-t)
918 ac_prev
=program_transform_name
;;
919 -program-transform-name=* |
--program-transform-name=* \
920 |
--program-transform-nam=* |
--program-transform-na=* \
921 |
--program-transform-n=* |
--program-transform-=* \
922 |
--program-transform=* |
--program-transfor=* \
923 |
--program-transfo=* |
--program-transf=* \
924 |
--program-trans=* |
--program-tran=* \
925 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
926 program_transform_name
=$ac_optarg ;;
928 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
930 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
933 -psdir |
--psdir |
--psdi |
--psd |
--ps)
935 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
938 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
939 |
-silent |
--silent |
--silen |
--sile |
--sil)
942 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
944 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
946 sbindir
=$ac_optarg ;;
948 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
949 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
950 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
952 ac_prev
=sharedstatedir
;;
953 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
954 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
955 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
957 sharedstatedir
=$ac_optarg ;;
959 -site |
--site |
--sit)
961 -site=* |
--site=* |
--sit=*)
964 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
966 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
969 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
970 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
971 ac_prev
=sysconfdir
;;
972 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
973 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
974 sysconfdir
=$ac_optarg ;;
976 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
977 ac_prev
=target_alias
;;
978 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
979 target_alias
=$ac_optarg ;;
981 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
984 -version |
--version |
--versio |
--versi |
--vers |
-V)
988 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
991 as_fn_error
"invalid package name: $ac_useropt"
992 ac_useropt_orig
=$ac_useropt
993 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
998 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
999 ac_unrecognized_sep
=', ';;
1001 eval with_
$ac_useropt=\
$ac_optarg ;;
1003 -without-* |
--without-*)
1004 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1007 as_fn_error
"invalid package name: $ac_useropt"
1008 ac_useropt_orig
=$ac_useropt
1009 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1014 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1015 ac_unrecognized_sep
=', ';;
1017 eval with_
$ac_useropt=no
;;
1020 # Obsolete; use --with-x.
1023 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1024 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1025 ac_prev
=x_includes
;;
1026 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1027 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1028 x_includes
=$ac_optarg ;;
1030 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1031 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1032 ac_prev
=x_libraries
;;
1033 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1034 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1035 x_libraries
=$ac_optarg ;;
1037 -*) as_fn_error
"unrecognized option: \`$ac_option'
1038 Try \`$0 --help' for more information."
1042 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1043 # Reject names that are not valid shell variable names.
1044 case $ac_envvar in #(
1045 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1046 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1048 eval $ac_envvar=\
$ac_optarg
1049 export $ac_envvar ;;
1052 # FIXME: should be removed in autoconf 3.0.
1053 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1054 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1055 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1056 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1062 if test -n "$ac_prev"; then
1063 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1064 as_fn_error
"missing argument to $ac_option"
1067 if test -n "$ac_unrecognized_opts"; then
1068 case $enable_option_checking in
1070 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1071 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1075 # Check all directory arguments for consistency.
1076 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1077 datadir sysconfdir sharedstatedir localstatedir includedir \
1078 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1079 libdir localedir mandir
1081 eval ac_val
=\$
$ac_var
1082 # Remove trailing slashes.
1085 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1086 eval $ac_var=\
$ac_val;;
1088 # Be sure to have absolute directory names.
1090 [\\/$
]* | ?
:[\\/]* ) continue;;
1091 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1093 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1096 # There might be people who depend on the old broken behavior: `$host'
1097 # used to hold the argument of --host etc.
1098 # FIXME: To remove some day.
1101 target
=$target_alias
1103 # FIXME: To remove some day.
1104 if test "x$host_alias" != x
; then
1105 if test "x$build_alias" = x
; then
1106 cross_compiling
=maybe
1107 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1108 If a cross compiler is detected then cross compile mode will be used." >&2
1109 elif test "x$build_alias" != "x$host_alias"; then
1115 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1117 test "$silent" = yes && exec 6>/dev
/null
1120 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1121 ac_ls_di
=`ls -di .` &&
1122 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1123 as_fn_error
"working directory cannot be determined"
1124 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1125 as_fn_error
"pwd does not report name of working directory"
1128 # Find the source files, if location was not specified.
1129 if test -z "$srcdir"; then
1130 ac_srcdir_defaulted
=yes
1131 # Try the directory containing this script, then the parent directory.
1132 ac_confdir
=`$as_dirname -- "$as_myself" ||
1133 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1134 X"$as_myself" : 'X\(//\)[^/]' \| \
1135 X"$as_myself" : 'X\(//\)$' \| \
1136 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1137 $as_echo X"$as_myself" |
1138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1156 if test ! -r "$srcdir/$ac_unique_file"; then
1160 ac_srcdir_defaulted
=no
1162 if test ! -r "$srcdir/$ac_unique_file"; then
1163 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1164 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1166 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1168 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1170 # When building in place, set srcdir=.
1171 if test "$ac_abs_confdir" = "$ac_pwd"; then
1174 # Remove unnecessary trailing slashes from srcdir.
1175 # Double slashes in file names in object file debugging info
1176 # mess up M-x gdb in Emacs.
1178 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1180 for ac_var
in $ac_precious_vars; do
1181 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1182 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1183 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1184 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1188 # Report the --help message.
1190 if test "$ac_init_help" = "long"; then
1191 # Omit some internal or obsolete options to make the list less imposing.
1192 # This message is too long to be a string in the A/UX 3.1 sh.
1194 \`configure' configures RISC-V ISA Simulator ? to adapt to many kinds of systems.
1196 Usage: $0 [OPTION]... [VAR=VALUE]...
1198 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1199 VAR=VALUE. See below for descriptions of some of the useful variables.
1201 Defaults for the options are specified in brackets.
1204 -h, --help display this help and exit
1205 --help=short display options specific to this package
1206 --help=recursive display the short help of all the included packages
1207 -V, --version display version information and exit
1208 -q, --quiet, --silent do not print \`checking...' messages
1209 --cache-file=FILE cache test results in FILE [disabled]
1210 -C, --config-cache alias for \`--cache-file=config.cache'
1211 -n, --no-create do not create output files
1212 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1214 Installation directories:
1215 --prefix=PREFIX install architecture-independent files in PREFIX
1216 [$ac_default_prefix]
1217 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1220 By default, \`make install' will install all the files in
1221 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1222 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1223 for instance \`--prefix=\$HOME'.
1225 For better control, use the options below.
1227 Fine tuning of the installation directories:
1228 --bindir=DIR user executables [EPREFIX/bin]
1229 --sbindir=DIR system admin executables [EPREFIX/sbin]
1230 --libexecdir=DIR program executables [EPREFIX/libexec]
1231 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1232 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1233 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1234 --libdir=DIR object code libraries [EPREFIX/lib]
1235 --includedir=DIR C header files [PREFIX/include]
1236 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1237 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1238 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1239 --infodir=DIR info documentation [DATAROOTDIR/info]
1240 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1241 --mandir=DIR man documentation [DATAROOTDIR/man]
1242 --docdir=DIR documentation root [DATAROOTDIR/doc/riscv-sim-isa]
1243 --htmldir=DIR html documentation [DOCDIR]
1244 --dvidir=DIR dvi documentation [DOCDIR]
1245 --pdfdir=DIR pdf documentation [DOCDIR]
1246 --psdir=DIR ps documentation [DOCDIR]
1252 --build=BUILD configure
for building on BUILD
[guessed
]
1253 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1257 if test -n "$ac_init_help"; then
1258 case $ac_init_help in
1259 short | recursive
) echo "Configuration of RISC-V ISA Simulator ?:";;
1264 --disable-option-checking ignore unrecognized
--enable/--with options
1265 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1266 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1267 --enable-stow Enable stow-based
install
1268 --enable-optional-subprojects
1269 Enable all optional subprojects
1271 Some influential environment variables
:
1272 CC C compiler
command
1273 CFLAGS C compiler flags
1274 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1275 nonstandard directory
<lib dir
>
1276 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1277 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1278 you have headers
in a nonstandard directory
<include dir
>
1279 CXX C
++ compiler
command
1280 CXXFLAGS C
++ compiler flags
1281 STOW_ROOT Root
for non-native stow-based installs
1282 STOW_PREFIX Prefix
for stow-based installs
1285 Use these variables to override the choices made by
`configure' or to help
1286 it to find libraries and programs with nonstandard names/locations.
1288 Report bugs to <Andrew Waterman>.
1293 if test "$ac_init_help" = "recursive"; then
1294 # If there are subdirs, report their specific --help.
1295 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1296 test -d "$ac_dir" ||
1297 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1302 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1304 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1305 # A ".." for each directory in $ac_dir_suffix.
1306 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1307 case $ac_top_builddir_sub in
1308 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1309 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1312 ac_abs_top_builddir=$ac_pwd
1313 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1314 # for backward compatibility:
1315 ac_top_builddir=$ac_top_build_prefix
1318 .) # We are building in place.
1320 ac_top_srcdir=$ac_top_builddir_sub
1321 ac_abs_top_srcdir=$ac_pwd ;;
1322 [\\/]* | ?:[\\/]* ) # Absolute name.
1323 ac_srcdir=$srcdir$ac_dir_suffix;
1324 ac_top_srcdir=$srcdir
1325 ac_abs_top_srcdir=$srcdir ;;
1327 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1328 ac_top_srcdir=$ac_top_build_prefix$srcdir
1329 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1331 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1333 cd "$ac_dir" || { ac_status=$?; continue; }
1334 # Check for guested configure.
1335 if test -f "$ac_srcdir/configure.gnu"; then
1337 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1338 elif test -f "$ac_srcdir/configure"; then
1340 $SHELL "$ac_srcdir/configure" --help=recursive
1342 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1344 cd "$ac_pwd" || { ac_status=$?; break; }
1348 test -n "$ac_init_help" && exit $ac_status
1349 if $ac_init_version; then
1351 RISC-V ISA Simulator configure ?
1352 generated by GNU Autoconf 2.64
1354 Copyright (C) 2009 Free Software Foundation, Inc.
1355 This configure script is free software; the Free Software Foundation
1356 gives unlimited permission to copy, distribute and modify it.
1361 ## ------------------------ ##
1362 ## Autoconf initialization. ##
1363 ## ------------------------ ##
1365 # ac_fn_c_try_compile LINENO
1366 # --------------------------
1367 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1368 ac_fn_c_try_compile ()
1370 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1371 rm -f conftest.$ac_objext
1372 if { { ac_try="$ac_compile"
1374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1375 *) ac_try_echo
=$ac_try;;
1377 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1378 $as_echo "$ac_try_echo"; } >&5
1379 (eval "$ac_compile") 2>conftest.err
1381 if test -s conftest.err
; then
1382 grep -v '^ *+' conftest.err
>conftest.er1
1383 cat conftest.er1
>&5
1384 mv -f conftest.er1 conftest.err
1386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1387 test $ac_status = 0; } && {
1388 test -z "$ac_c_werror_flag" ||
1389 test ! -s conftest.err
1390 } && test -s conftest.
$ac_objext; then :
1393 $as_echo "$as_me: failed program was:" >&5
1394 sed 's/^/| /' conftest.
$ac_ext >&5
1398 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1401 } # ac_fn_c_try_compile
1403 # ac_fn_cxx_try_compile LINENO
1404 # ----------------------------
1405 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1406 ac_fn_cxx_try_compile
()
1408 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1409 rm -f conftest.
$ac_objext
1410 if { { ac_try
="$ac_compile"
1412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1413 *) ac_try_echo=$ac_try;;
1415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1416 $as_echo "$ac_try_echo"; } >&5
1417 (eval "$ac_compile") 2>conftest.err
1419 if test -s conftest.err; then
1420 grep -v '^ *+' conftest.err >conftest.er1
1421 cat conftest.er1 >&5
1422 mv -f conftest.er1 conftest.err
1424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1425 test $ac_status = 0; } && {
1426 test -z "$ac_cxx_werror_flag" ||
1427 test ! -s conftest.err
1428 } && test -s conftest.$ac_objext; then :
1431 $as_echo "$as_me: failed program was:" >&5
1432 sed 's/^/| /' conftest.$ac_ext >&5
1436 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1439 } # ac_fn_cxx_try_compile
1441 # ac_fn_c_try_cpp LINENO
1442 # ----------------------
1443 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1447 if { { ac_try="$ac_cpp conftest.$ac_ext"
1449 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1450 *) ac_try_echo
=$ac_try;;
1452 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1453 $as_echo "$ac_try_echo"; } >&5
1454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1456 if test -s conftest.err
; then
1457 grep -v '^ *+' conftest.err
>conftest.er1
1458 cat conftest.er1
>&5
1459 mv -f conftest.er1 conftest.err
1461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1462 test $ac_status = 0; } >/dev
/null
&& {
1463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1464 test ! -s conftest.err
1468 $as_echo "$as_me: failed program was:" >&5
1469 sed 's/^/| /' conftest.
$ac_ext >&5
1473 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1478 # ac_fn_c_try_run LINENO
1479 # ----------------------
1480 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1481 # that executables *can* be run.
1484 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1485 if { { ac_try
="$ac_link"
1487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1488 *) ac_try_echo=$ac_try;;
1490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1491 $as_echo "$ac_try_echo"; } >&5
1492 (eval "$ac_link") 2>&5
1494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1495 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1496 { { case "(($ac_try" in
1497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1498 *) ac_try_echo
=$ac_try;;
1500 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1501 $as_echo "$ac_try_echo"; } >&5
1502 (eval "$ac_try") 2>&5
1504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1505 test $ac_status = 0; }; }; then :
1508 $as_echo "$as_me: program exited with status $ac_status" >&5
1509 $as_echo "$as_me: failed program was:" >&5
1510 sed 's/^/| /' conftest.
$ac_ext >&5
1512 ac_retval
=$ac_status
1514 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1515 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1520 # ac_fn_c_try_link LINENO
1521 # -----------------------
1522 # Try to link conftest.$ac_ext, and return whether this succeeded.
1525 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1526 rm -f conftest.
$ac_objext conftest
$ac_exeext
1527 if { { ac_try
="$ac_link"
1529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1530 *) ac_try_echo=$ac_try;;
1532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1533 $as_echo "$ac_try_echo"; } >&5
1534 (eval "$ac_link") 2>conftest.err
1536 if test -s conftest.err; then
1537 grep -v '^ *+' conftest.err >conftest.er1
1538 cat conftest.er1 >&5
1539 mv -f conftest.er1 conftest.err
1541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1542 test $ac_status = 0; } && {
1543 test -z "$ac_c_werror_flag" ||
1544 test ! -s conftest.err
1545 } && test -s conftest$ac_exeext && {
1546 test "$cross_compiling" = yes ||
1547 $as_test_x conftest$ac_exeext
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1556 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1557 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1558 # interfere with the next link command; also delete a directory that is
1559 # left behind by Apple's compiler. We do this before executing the actions.
1560 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1561 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1564 } # ac_fn_c_try_link
1565 cat >config.log <<_ACEOF
1566 This file contains any messages produced by compilers while
1567 running configure, to aid debugging if configure makes a mistake.
1569 It was created by RISC-V ISA Simulator $as_me ?, which was
1570 generated by GNU Autoconf 2.64. Invocation command line was
1582 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1583 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1584 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1585 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1586 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1588 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1589 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1591 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1592 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1593 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1594 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1595 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1596 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1597 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 test -z "$as_dir" && as_dir=.
1606 $as_echo "PATH: $as_dir"
1622 # Keep a trace of the command line.
1623 # Strip out --no-create and --no-recursion so they do not pile up.
1624 # Strip out --silent because we don't want to record it for future runs.
1625 # Also quote any args containing shell meta-characters.
1626 # Make two passes to allow for proper duplicate-argument suppression.
1630 ac_must_keep_next=false
1636 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638 | -silent | --silent | --silen | --sile | --sil)
1641 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1644 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1646 as_fn_append ac_configure_args1 " '$ac_arg'"
1647 if test $ac_must_keep_next = true; then
1648 ac_must_keep_next=false # Got value, back to normal.
1651 *=* | --config-cache | -C | -disable-* | --disable-* \
1652 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654 | -with-* | --with-* | -without-* | --without-* | --x)
1655 case "$ac_configure_args0 " in
1656 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1659 -* ) ac_must_keep_next=true ;;
1662 as_fn_append ac_configure_args " '$ac_arg'"
1667 { ac_configure_args0=; unset ac_configure_args0;}
1668 { ac_configure_args1=; unset ac_configure_args1;}
1670 # When interrupted or exit'd, cleanup temporary files, and complete
1671 # config.log. We remove comments because anyway the quotes in there
1672 # would cause problems or look ugly.
1673 # WARNING: Use '\'' to represent an apostrophe within the trap.
1674 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1675 trap 'exit_status=$?
1676 # Save into config.log some information that might help in debugging.
1681 ## ---------------- ##
1682 ## Cache variables. ##
1683 ## ---------------- ##
1686 # The following way of writing the cache mishandles newlines in values,
1688 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1689 eval ac_val=\$$ac_var
1693 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1694 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1697 _ | IFS | as_nl) ;; #(
1698 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1699 *) { eval $ac_var=; unset $ac_var;} ;;
1704 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1705 *${as_nl}ac_space=\ *)
1707 "s/'\''/'\''\\\\'\'''\''/g;
1708 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1711 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1719 ## ----------------- ##
1720 ## Output variables. ##
1721 ## ----------------- ##
1724 for ac_var in $ac_subst_vars
1726 eval ac_val=\$$ac_var
1728 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1730 $as_echo "$ac_var='\''$ac_val'\''"
1734 if test -n "$ac_subst_files"; then
1736 ## ------------------- ##
1737 ## File substitutions. ##
1738 ## ------------------- ##
1741 for ac_var in $ac_subst_files
1743 eval ac_val=\$$ac_var
1745 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1747 $as_echo "$ac_var='\''$ac_val'\''"
1752 if test -s confdefs.h; then
1762 test "$ac_signal" != 0 &&
1763 $as_echo "$as_me: caught signal $ac_signal"
1764 $as_echo "$as_me: exit $exit_status"
1766 rm -f core *.core core.conftest.* &&
1767 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1770 for ac_signal in 1 2 13 15; do
1771 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1775 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1776 rm -f -r conftest* confdefs.h
1778 $as_echo "/* confdefs.h */" > confdefs.h
1780 # Predefined preprocessor variables.
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_NAME "$PACKAGE_NAME"
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_STRING "$PACKAGE_STRING"
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_URL "$PACKAGE_URL"
1807 # Let the site file select an alternate cache file if it wants to.
1808 # Prefer an explicitly selected file to automatically selected ones.
1811 if test -n "$CONFIG_SITE"; then
1812 ac_site_file1=$CONFIG_SITE
1813 elif test "x$prefix" != xNONE; then
1814 ac_site_file1=$prefix/share/config.site
1815 ac_site_file2=$prefix/etc/config.site
1817 ac_site_file1=$ac_default_prefix/share/config.site
1818 ac_site_file2=$ac_default_prefix/etc/config.site
1820 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1822 test "x$ac_site_file" = xNONE && continue
1823 if test -r "$ac_site_file"; then
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1825 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1826 sed 's/^/| /' "$ac_site_file" >&5
1831 if test -r "$cache_file"; then
1832 # Some versions of bash will fail to source /dev/null (special
1833 # files actually), so we avoid doing that.
1834 if test -f "$cache_file"; then
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1836 $as_echo "$as_me: loading cache $cache_file" >&6;}
1838 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1839 *) . "./$cache_file";;
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1844 $as_echo "$as_me: creating cache $cache_file" >&6;}
1848 # Check that the precious variables saved in the cache have kept the same
1850 ac_cache_corrupted=false
1851 for ac_var in $ac_precious_vars; do
1852 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1853 eval ac_new_set=\$ac_env_${ac_var}_set
1854 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1855 eval ac_new_val=\$ac_env_${ac_var}_value
1856 case $ac_old_set,$ac_new_set in
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1859 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1860 ac_cache_corrupted=: ;;
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
1863 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1864 ac_cache_corrupted=: ;;
1867 if test "x$ac_old_val" != "x$ac_new_val"; then
1868 # differences in whitespace do not lead to failure.
1869 ac_old_val_w=`echo x
$ac_old_val`
1870 ac_new_val_w=`echo x
$ac_new_val`
1871 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1873 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1874 ac_cache_corrupted=:
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1877 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1878 eval $ac_var=\$ac_old_val
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1881 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1883 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1889 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1890 *) ac_arg=$ac_var=$ac_new_val ;;
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1898 if $ac_cache_corrupted; then
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
1900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1902 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1903 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
1905 ## -------------------- ##
1906 ## Main body of script. ##
1907 ## -------------------- ##
1910 ac_cpp='$CPP $CPPFLAGS'
1911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1918 for ac_dir in scripts "$srcdir"/scripts; do
1919 for ac_t in install-sh install.sh shtool; do
1920 if test -f "$ac_dir/$ac_t"; then
1922 ac_install_sh="$ac_aux_dir/$ac_t -c"
1927 if test -z "$ac_aux_dir"; then
1928 as_fn_error "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
1931 # These three variables are undocumented and unsupported,
1932 # and are intended to be withdrawn in a future Autoconf release.
1933 # They can cause serious problems if a builder's source tree is in a directory
1934 # whose full name contains unusual characters.
1935 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1936 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1937 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1940 # Make sure we can run config.sub.
1941 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1942 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1945 $as_echo_n "checking build system type... " >&6; }
1946 if test "${ac_cv_build+set}" = set; then :
1947 $as_echo_n "(cached) " >&6
1949 ac_build_alias=$build_alias
1950 test "x$ac_build_alias" = x &&
1951 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1952 test "x$ac_build_alias" = x &&
1953 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
1954 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1955 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1959 $as_echo "$ac_cv_build" >&6; }
1960 case $ac_cv_build in
1962 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
1965 ac_save_IFS=$IFS; IFS='-'
1971 # Remember, the first character of IFS is used to create $*,
1972 # except with old shells:
1975 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1979 $as_echo_n "checking host system type... " >&6; }
1980 if test "${ac_cv_host+set}" = set; then :
1981 $as_echo_n "(cached) " >&6
1983 if test "x$host_alias" = x; then
1984 ac_cv_host=$ac_cv_build
1986 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1987 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1992 $as_echo "$ac_cv_host" >&6; }
1995 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
1998 ac_save_IFS=$IFS; IFS='-'
2004 # Remember, the first character of IFS is used to create $*,
2005 # except with old shells:
2008 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2012 #-------------------------------------------------------------------------
2013 # Checks for programs
2014 #-------------------------------------------------------------------------
2017 ac_cpp='$CPP $CPPFLAGS'
2018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2021 if test -n "$ac_tool_prefix"; then
2022 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2023 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2025 $as_echo_n "checking for $ac_word... " >&6; }
2026 if test "${ac_cv_prog_CC+set}" = set; then :
2027 $as_echo_n "(cached) " >&6
2029 if test -n "$CC"; then
2030 ac_cv_prog_CC="$CC" # Let the user override the test.
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 test -z "$as_dir" && as_dir=.
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2039 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2050 if test -n "$CC"; then
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2052 $as_echo "$CC" >&6; }
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2055 $as_echo "no" >&6; }
2060 if test -z "$ac_cv_prog_CC"; then
2062 # Extract the first word of "gcc", so it can be a program name with args.
2063 set dummy gcc; ac_word=$2
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2065 $as_echo_n "checking for $ac_word... " >&6; }
2066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2067 $as_echo_n "(cached) " >&6
2069 if test -n "$ac_ct_CC"; then
2070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 test -z "$as_dir" && as_dir=.
2077 for ac_exec_ext in '' $ac_executable_extensions; do
2078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2079 ac_cv_prog_ac_ct_CC="gcc"
2080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2090 if test -n "$ac_ct_CC"; then
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2092 $as_echo "$ac_ct_CC" >&6; }
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2095 $as_echo "no" >&6; }
2098 if test "x$ac_ct_CC" = x; then
2101 case $cross_compiling:$ac_tool_warned in
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2105 ac_tool_warned=yes ;;
2113 if test -z "$CC"; then
2114 if test -n "$ac_tool_prefix"; then
2115 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2116 set dummy ${ac_tool_prefix}cc; ac_word=$2
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2118 $as_echo_n "checking for $ac_word... " >&6; }
2119 if test "${ac_cv_prog_CC+set}" = set; then :
2120 $as_echo_n "(cached) " >&6
2122 if test -n "$CC"; then
2123 ac_cv_prog_CC="$CC" # Let the user override the test.
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 test -z "$as_dir" && as_dir=.
2130 for ac_exec_ext in '' $ac_executable_extensions; do
2131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2132 ac_cv_prog_CC="${ac_tool_prefix}cc"
2133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2143 if test -n "$CC"; then
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2145 $as_echo "$CC" >&6; }
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2148 $as_echo "no" >&6; }
2154 if test -z "$CC"; then
2155 # Extract the first word of "cc", so it can be a program name with args.
2156 set dummy cc; ac_word=$2
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2158 $as_echo_n "checking for $ac_word... " >&6; }
2159 if test "${ac_cv_prog_CC+set}" = set; then :
2160 $as_echo_n "(cached) " >&6
2162 if test -n "$CC"; then
2163 ac_cv_prog_CC="$CC" # Let the user override the test.
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 test -z "$as_dir" && as_dir=.
2171 for ac_exec_ext in '' $ac_executable_extensions; do
2172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2173 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2174 ac_prog_rejected=yes
2178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2185 if test $ac_prog_rejected = yes; then
2186 # We found a bogon in the path, so make sure we never use it.
2187 set dummy $ac_cv_prog_CC
2189 if test $# != 0; then
2190 # We chose a different compiler from the bogus one.
2191 # However, it has the same basename, so the bogon will be chosen
2192 # first if we set CC to just the basename; use the full file name.
2194 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2200 if test -n "$CC"; then
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2202 $as_echo "$CC" >&6; }
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2205 $as_echo "no" >&6; }
2210 if test -z "$CC"; then
2211 if test -n "$ac_tool_prefix"; then
2212 for ac_prog in cl.exe
2214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2217 $as_echo_n "checking for $ac_word... " >&6; }
2218 if test "${ac_cv_prog_CC+set}" = set; then :
2219 $as_echo_n "(cached) " >&6
2221 if test -n "$CC"; then
2222 ac_cv_prog_CC="$CC" # Let the user override the test.
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 test -z "$as_dir" && as_dir=.
2229 for ac_exec_ext in '' $ac_executable_extensions; do
2230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2231 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2242 if test -n "$CC"; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2244 $as_echo "$CC" >&6; }
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2247 $as_echo "no" >&6; }
2251 test -n "$CC" && break
2254 if test -z "$CC"; then
2256 for ac_prog in cl.exe
2258 # Extract the first word of "$ac_prog", so it can be a program name with args.
2259 set dummy $ac_prog; ac_word=$2
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2261 $as_echo_n "checking for $ac_word... " >&6; }
2262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2263 $as_echo_n "(cached) " >&6
2265 if test -n "$ac_ct_CC"; then
2266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 test -z "$as_dir" && as_dir=.
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2275 ac_cv_prog_ac_ct_CC="$ac_prog"
2276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2286 if test -n "$ac_ct_CC"; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2288 $as_echo "$ac_ct_CC" >&6; }
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2291 $as_echo "no" >&6; }
2295 test -n "$ac_ct_CC" && break
2298 if test "x$ac_ct_CC" = x; then
2301 case $cross_compiling:$ac_tool_warned in
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2305 ac_tool_warned=yes ;;
2314 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2316 as_fn_error "no acceptable C compiler found
in \
$PATH
2317 See \
`config.log' for more details." "$LINENO" 5; }
2319 # Provide some information about the compiler.
2320 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2323 for ac_option in --version -v -V -qversion; do
2324 { { ac_try="$ac_compiler $ac_option >&5"
2326 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2327 *) ac_try_echo
=$ac_try;;
2329 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2330 $as_echo "$ac_try_echo"; } >&5
2331 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2333 if test -s conftest.err
; then
2335 ... rest of stderr output deleted ...
2336 10q' conftest.err
>conftest.er1
2337 cat conftest.er1
>&5
2338 rm -f conftest.er1 conftest.err
2340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2341 test $ac_status = 0; }
2344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2345 /* end confdefs.h. */
2350 FILE *f = fopen ("conftest.out", "w");
2351 return ferror (f) || fclose (f) != 0;
2357 ac_clean_files_save
=$ac_clean_files
2358 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2359 # Try to create an executable without -o first, disregard a.out.
2360 # It will help us diagnose broken compilers, and finding out an intuition
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2363 $as_echo_n "checking for C compiler default output file name... " >&6; }
2364 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2366 # The possible output files:
2367 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2370 for ac_file
in $ac_files
2373 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2374 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2379 if { { ac_try
="$ac_link_default"
2381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2382 *) ac_try_echo=$ac_try;;
2384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2385 $as_echo "$ac_try_echo"; } >&5
2386 (eval "$ac_link_default") 2>&5
2388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2389 test $ac_status = 0; }; then :
2390 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2391 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2392 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2393 # so that the user can short-circuit this test for compilers unknown to
2395 for ac_file in $ac_files ''
2397 test -f "$ac_file" || continue
2399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2402 # We found the default executable, but exeext='' is most
2406 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2408 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2410 # We set ac_cv_exeext here because the later test for it is not
2411 # safe: cross compilers may not add the suffix if given an `-o'
2412 # argument, so we may need to know it at that point already.
2413 # Even if this section looks crufty: it has the advantage of
2420 test "$ac_cv_exeext" = no && ac_cv_exeext=
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2426 $as_echo "$ac_file" >&6; }
2427 if test -z "$ac_file"; then :
2428 $as_echo "$as_me: failed program was:" >&5
2429 sed 's
/^
/|
/' conftest.$ac_ext >&5
2431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2432 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2433 { as_fn_set_status 77
2434 as_fn_error "C compiler cannot create executables
2435 See \`config.log
' for more details." "$LINENO" 5; }; }
2437 ac_exeext=$ac_cv_exeext
2439 # Check that the compiler produces executables we can run. If not, either
2440 # the compiler is broken, or we cross compile.
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2442 $as_echo_n "checking whether the C compiler works... " >&6; }
2443 # If not cross compiling, check that we can run a simple program.
2444 if test "$cross_compiling" != yes; then
2445 if { ac_try='.
/$ac_file'
2446 { { case "(($ac_try" in
2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448 *) ac_try_echo=$ac_try;;
2450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2451 $as_echo "$ac_try_echo"; } >&5
2452 (eval "$ac_try") 2>&5
2454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2455 test $ac_status = 0; }; }; then
2458 if test "$cross_compiling" = maybe; then
2461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2462 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2463 as_fn_error "cannot run C compiled programs.
2464 If you meant to cross compile, use \`--host'.
2465 See \`config.log' for more details.
" "$LINENO" 5; }
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
2470 $as_echo "yes" >&6; }
2472 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2473 ac_clean_files=$ac_clean_files_save
2474 # Check that the compiler produces executables we can run. If not, either
2475 # the compiler is broken, or we cross compile.
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
2477 $as_echo_n "checking whether we are cross compiling...
" >&6; }
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
2479 $as_echo "$cross_compiling" >&6; }
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
2482 $as_echo_n "checking
for suffix of executables...
" >&6; }
2483 if { { ac_try="$ac_link"
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2488 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2489 $as_echo "$ac_try_echo"; } >&5
2490 (eval "$ac_link") 2>&5
2492 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
2493 test $ac_status = 0; }; then :
2494 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2495 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2496 # work properly (i.e., refer to `conftest.exe'), while it won't with
2498 for ac_file in conftest.exe conftest conftest.*; do
2499 test -f "$ac_file" || continue
2501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2502 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2510 as_fn_error "cannot compute suffix of executables: cannot compile and link
2511 See \`config.log' for more details.
" "$LINENO" 5; }
2513 rm -f conftest$ac_cv_exeext
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
2515 $as_echo "$ac_cv_exeext" >&6; }
2517 rm -f conftest.$ac_ext
2518 EXEEXT=$ac_cv_exeext
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
2521 $as_echo_n "checking
for suffix of object files...
" >&6; }
2522 if test "${ac_cv_objext+set}" = set; then :
2523 $as_echo_n "(cached
) " >&6
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2536 rm -f conftest.o conftest.obj
2537 if { { ac_try="$ac_compile"
2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2542 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2543 $as_echo "$ac_try_echo"; } >&5
2544 (eval "$ac_compile") 2>&5
2546 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
2547 test $ac_status = 0; }; then :
2548 for ac_file in conftest.o conftest.obj conftest.*; do
2549 test -f "$ac_file" || continue;
2551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2552 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2557 $as_echo "$as_me: failed program was
:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2562 as_fn_error "cannot compute suffix of object files: cannot compile
2563 See \`config.log' for more details.
" "$LINENO" 5; }
2565 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
2568 $as_echo "$ac_cv_objext" >&6; }
2569 OBJEXT=$ac_cv_objext
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
2572 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
2573 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2574 $as_echo_n "(cached
) " >&6
2576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577 /* end confdefs.h. */
2590 if ac_fn_c_try_compile "$LINENO"; then :
2595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2596 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
2600 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2601 if test $ac_compiler_gnu = yes; then
2606 ac_test_CFLAGS=${CFLAGS+set}
2607 ac_save_CFLAGS=$CFLAGS
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
2609 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
2610 if test "${ac_cv_prog_cc_g+set}" = set; then :
2611 $as_echo_n "(cached
) " >&6
2613 ac_save_c_werror_flag=$ac_c_werror_flag
2614 ac_c_werror_flag=yes
2617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2618 /* end confdefs.h. */
2628 if ac_fn_c_try_compile "$LINENO"; then :
2632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2633 /* end confdefs.h. */
2643 if ac_fn_c_try_compile "$LINENO"; then :
2646 ac_c_werror_flag=$ac_save_c_werror_flag
2648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649 /* end confdefs.h. */
2659 if ac_fn_c_try_compile "$LINENO"; then :
2662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667 ac_c_werror_flag=$ac_save_c_werror_flag
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
2670 $as_echo "$ac_cv_prog_cc_g" >&6; }
2671 if test "$ac_test_CFLAGS" = set; then
2672 CFLAGS=$ac_save_CFLAGS
2673 elif test $ac_cv_prog_cc_g = yes; then
2674 if test "$GCC" = yes; then
2680 if test "$GCC" = yes; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
2687 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
2688 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2689 $as_echo_n "(cached
) " >&6
2691 ac_cv_prog_cc_c89=no
2693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694 /* end confdefs.h. */
2697 #include <sys/types.h>
2698 #include <sys/stat.h>
2699 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2700 struct buf { int x; };
2701 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2702 static char *e (p, i)
2708 static char *f (char * (*g) (char **, int), char **p, ...)
2713 s = g (p, va_arg (v,int));
2718 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2719 function prototypes and stuff, but not '\xHH' hex character constants.
2720 These don't provoke an error unfortunately, instead are silently treated
2721 as 'x'. The following induces an error, until -std is added to get
2722 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2723 array size at least. It's necessary to write '\x00'==0 to get something
2724 that's true only with -std. */
2725 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2727 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2728 inside strings and character constants. */
2730 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2732 int test (int i, double x);
2733 struct s1 {int (*f) (int a);};
2734 struct s2 {int (*f) (double a);};
2735 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2741 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2746 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2747 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2749 CC="$ac_save_CC $ac_arg"
2750 if ac_fn_c_try_compile "$LINENO"; then :
2751 ac_cv_prog_cc_c89=$ac_arg
2753 rm -f core conftest.err conftest.$ac_objext
2754 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
2756 rm -f conftest.$ac_ext
2761 case "x
$ac_cv_prog_cc_c89" in
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
2764 $as_echo "none needed
" >&6; } ;;
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
2767 $as_echo "unsupported
" >&6; } ;;
2769 CC="$CC $ac_cv_prog_cc_c89"
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
2771 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2773 if test "x
$ac_cv_prog_cc_c89" != xno; then :
2778 ac_cpp='$CPP $CPPFLAGS'
2779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784 ac_cpp='$CXXCPP $CPPFLAGS'
2785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2788 if test -z "$CXX"; then
2789 if test -n "$CCC"; then
2792 if test -n "$ac_tool_prefix"; then
2793 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
2798 $as_echo_n "checking
for $ac_word...
" >&6; }
2799 if test "${ac_cv_prog_CXX+set}" = set; then :
2800 $as_echo_n "(cached
) " >&6
2802 if test -n "$CXX"; then
2803 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2813 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
2823 if test -n "$CXX"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX" >&5
2825 $as_echo "$CXX" >&6; }
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
2828 $as_echo "no
" >&6; }
2832 test -n "$CXX" && break
2835 if test -z "$CXX"; then
2837 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2839 # Extract the first word of "$ac_prog", so it can be a program name with args.
2840 set dummy $ac_prog; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
2842 $as_echo_n "checking
for $ac_word...
" >&6; }
2843 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2844 $as_echo_n "(cached
) " >&6
2846 if test -n "$ac_ct_CXX"; then
2847 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856 ac_cv_prog_ac_ct_CXX="$ac_prog"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
2866 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2867 if test -n "$ac_ct_CXX"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_CXX" >&5
2869 $as_echo "$ac_ct_CXX" >&6; }
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
2872 $as_echo "no
" >&6; }
2876 test -n "$ac_ct_CXX" && break
2879 if test "x
$ac_ct_CXX" = x; then
2882 case $cross_compiling:$ac_tool_warned in
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2885 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2886 ac_tool_warned=yes ;;
2894 # Provide some information about the compiler.
2895 $as_echo "$as_me:${as_lineno-$LINENO}: checking
for C
++ compiler version
" >&5
2898 for ac_option in --version -v -V -qversion; do
2899 { { ac_try="$ac_compiler $ac_option >&5"
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2904 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2905 $as_echo "$ac_try_echo"; } >&5
2906 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2908 if test -s conftest.err; then
2910 ... rest of stderr output deleted ...
2911 10q' conftest.err >conftest.er1
2912 cat conftest.er1 >&5
2913 rm -f conftest.er1 conftest.err
2915 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
2916 test $ac_status = 0; }
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C
++ compiler
" >&5
2920 $as_echo_n "checking whether we are using the GNU C
++ compiler...
" >&6; }
2921 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
2922 $as_echo_n "(cached
) " >&6
2924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2925 /* end confdefs.h. */
2938 if ac_fn_cxx_try_compile "$LINENO"; then :
2943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2944 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_cxx_compiler_gnu" >&5
2948 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2949 if test $ac_compiler_gnu = yes; then
2954 ac_test_CXXFLAGS=${CXXFLAGS+set}
2955 ac_save_CXXFLAGS=$CXXFLAGS
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX accepts
-g" >&5
2957 $as_echo_n "checking whether
$CXX accepts
-g...
" >&6; }
2958 if test "${ac_cv_prog_cxx_g+set}" = set; then :
2959 $as_echo_n "(cached
) " >&6
2961 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2962 ac_cxx_werror_flag=yes
2965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2966 /* end confdefs.h. */
2976 if ac_fn_cxx_try_compile "$LINENO"; then :
2977 ac_cv_prog_cxx_g=yes
2980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2981 /* end confdefs.h. */
2991 if ac_fn_cxx_try_compile "$LINENO"; then :
2994 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2997 /* end confdefs.h. */
3007 if ac_fn_cxx_try_compile "$LINENO"; then :
3008 ac_cv_prog_cxx_g=yes
3010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3015 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cxx_g" >&5
3018 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3019 if test "$ac_test_CXXFLAGS" = set; then
3020 CXXFLAGS=$ac_save_CXXFLAGS
3021 elif test $ac_cv_prog_cxx_g = yes; then
3022 if test "$GXX" = yes; then
3028 if test "$GXX" = yes; then
3035 ac_cpp='$CPP $CPPFLAGS'
3036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3040 if test -n "$ac_tool_prefix"; then
3041 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3042 set dummy ${ac_tool_prefix}ar; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3044 $as_echo_n "checking
for $ac_word...
" >&6; }
3045 if test "${ac_cv_prog_AR+set}" = set; then :
3046 $as_echo_n "(cached
) " >&6
3048 if test -n "$AR"; then
3049 ac_cv_prog_AR="$AR" # Let the user override the test.
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058 ac_cv_prog_AR="${ac_tool_prefix}ar"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3069 if test -n "$AR"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
3071 $as_echo "$AR" >&6; }
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3074 $as_echo "no
" >&6; }
3079 if test -z "$ac_cv_prog_AR"; then
3081 # Extract the first word of "ar", so it can be a program name with args.
3082 set dummy ar; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3084 $as_echo_n "checking
for $ac_word...
" >&6; }
3085 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3086 $as_echo_n "(cached
) " >&6
3088 if test -n "$ac_ct_AR"; then
3089 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 ac_cv_prog_ac_ct_AR="ar"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3108 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3109 if test -n "$ac_ct_AR"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
3111 $as_echo "$ac_ct_AR" >&6; }
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3114 $as_echo "no
" >&6; }
3117 if test "x
$ac_ct_AR" = x; then
3120 case $cross_compiling:$ac_tool_warned in
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3123 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3124 ac_tool_warned=yes ;;
3132 if test -n "$ac_tool_prefix"; then
3133 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
3134 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3136 $as_echo_n "checking
for $ac_word...
" >&6; }
3137 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3138 $as_echo_n "(cached
) " >&6
3140 if test -n "$RANLIB"; then
3141 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3150 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
3151 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3160 RANLIB=$ac_cv_prog_RANLIB
3161 if test -n "$RANLIB"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
3163 $as_echo "$RANLIB" >&6; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3166 $as_echo "no
" >&6; }
3171 if test -z "$ac_cv_prog_RANLIB"; then
3172 ac_ct_RANLIB=$RANLIB
3173 # Extract the first word of "ranlib
", so it can be a program name with args.
3174 set dummy ranlib; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3176 $as_echo_n "checking
for $ac_word...
" >&6; }
3177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3178 $as_echo_n "(cached
) " >&6
3180 if test -n "$ac_ct_RANLIB"; then
3181 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3190 ac_cv_prog_ac_ct_RANLIB="ranlib
"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3201 if test -n "$ac_ct_RANLIB"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
3203 $as_echo "$ac_ct_RANLIB" >&6; }
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3206 $as_echo "no
" >&6; }
3209 if test "x
$ac_ct_RANLIB" = x; then
3212 case $cross_compiling:$ac_tool_warned in
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3215 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3216 ac_tool_warned=yes ;;
3218 RANLIB=$ac_ct_RANLIB
3221 RANLIB="$ac_cv_prog_RANLIB"
3225 #-------------------------------------------------------------------------
3226 # MCPPBS specific program checks
3227 #-------------------------------------------------------------------------
3228 # These macros check to see if we can do a stow-based install and also
3229 # check for an isa simulator suitable for running the unit test programs
3232 # Find a good install program. We prefer a C program (faster),
3233 # so one script is as good as another. But avoid the broken or
3234 # incompatible versions:
3235 # SysV /etc/install, /usr/sbin/install
3236 # SunOS /usr/etc/install
3237 # IRIX /sbin/install
3239 # AmigaOS /C/install, which installs bootblocks on floppy discs
3240 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3241 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3242 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
3243 # OS/2's system install, which has a completely different semantic
3244 # ./install, which can be erroneously created by make from ./install.sh.
3245 # Reject install programs that cannot install multiple files.
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a BSD-compatible
install" >&5
3247 $as_echo_n "checking
for a BSD-compatible
install...
" >&6; }
3248 if test -z "$INSTALL"; then
3249 if test "${ac_cv_path_install+set}" = set; then :
3250 $as_echo_n "(cached
) " >&6
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 test -z "$as_dir" && as_dir=.
3257 # Account for people who put trailing slashes in PATH elements.
3258 case $as_dir/ in #((
3259 ./ | .// | /[cC]/* | \
3260 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3261 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3264 # OSF1 and SCO ODT 3.0 have their own names for install.
3265 # Don't use installbsd from OSF since it installs stuff as root
3267 for ac_prog in ginstall scoinst install; do
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3270 if test $ac_prog = install &&
3271 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3272 # AIX install. It has an incompatible calling convention.
3274 elif test $ac_prog = install &&
3275 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3276 # program-specific install script used by HP pwplus--don't use.
3279 rm -rf conftest.one conftest.two conftest.dir
3280 echo one > conftest.one
3281 echo two > conftest.two
3283 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir
" &&
3284 test -s conftest.one && test -s conftest.two &&
3285 test -s conftest.dir/conftest.one &&
3286 test -s conftest.dir/conftest.two
3288 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3301 rm -rf conftest.one conftest.two conftest.dir
3304 if test "${ac_cv_path_install+set}" = set; then
3305 INSTALL=$ac_cv_path_install
3307 # As a last resort, use the slow shell script. Don't cache a
3308 # value for INSTALL within a source directory, because that will
3309 # break other packages using the cache if that directory is
3310 # removed, or if the value is a relative name.
3311 INSTALL=$ac_install_sh
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $INSTALL" >&5
3315 $as_echo "$INSTALL" >&6; }
3317 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3318 # It thinks the first close brace ends the variable substitution.
3319 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3321 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3323 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3327 # Configure command line option
3329 # Check whether --enable-stow was given.
3330 if test "${enable_stow+set}" = set; then :
3331 enableval=$enable_stow; enable_stow="yes"
3339 # Environment variables
3344 # Check for install script
3348 # Deterimine if native build and set prefix appropriately
3350 if test ${enable_stow} = "yes" ; then :
3354 # Extract the first word of "$ac_prog", so it can be a program name with args.
3355 set dummy $ac_prog; ac_word=$2
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3357 $as_echo_n "checking
for $ac_word...
" >&6; }
3358 if test "${ac_cv_prog_stow+set}" = set; then :
3359 $as_echo_n "(cached
) " >&6
3361 if test -n "$stow"; then
3362 ac_cv_prog_stow="$stow" # Let the user override the test.
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 test -z "$as_dir" && as_dir=.
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3371 ac_cv_prog_stow="$ac_prog"
3372 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3381 stow=$ac_cv_prog_stow
3382 if test -n "$stow"; then
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $stow" >&5
3384 $as_echo "$stow" >&6; }
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3387 $as_echo "no
" >&6; }
3391 test -n "$stow" && break
3393 test -n "$stow" || stow="no
"
3395 if test ${stow} = "no
" ; then :
3397 as_fn_error "Cannot use
--enable-stow since stow is not available
" "$LINENO" 5
3401 # Check if native or non-native build
3403 if test "${build}" = "${host}" ; then :
3406 # build == host so this is a native build. Make sure --prefix not
3407 # set and $STOW_PREFIX is set, then set prefix=$STOW_PREFIX.
3409 if test "${prefix}" = "NONE
" && test -n "${STOW_PREFIX}" ; then :
3411 prefix="${STOW_PREFIX}"
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \
$STOW_PREFIX from environment
" >&5
3413 $as_echo "$as_me: Using \
$STOW_PREFIX from environment
" >&6;}
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix
=${prefix}" >&5
3415 $as_echo "$as_me: prefix
=${prefix}" >&6;}
3423 # build != host so this is a non-native build. Make sure --prefix
3424 # not set and $STOW_ROOT is set, then set
3425 # prefix=$STOW_ROOT/${host_alias}.
3427 if test "${prefix}" = "NONE
" && test -n "${STOW_ROOT}" ; then :
3429 prefix="${STOW_ROOT}/${host_alias}"
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \
$STOW_ROOT from environment
" >&5
3431 $as_echo "$as_me: Using \
$STOW_ROOT from environment
" >&6;}
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix
=${prefix}" >&5
3433 $as_echo "$as_me: prefix
=${prefix}" >&6;}
3445 if test "${build}" != "${host}" ; then :
3447 if test -n "$ac_tool_prefix"; then
3448 for ac_prog in isa-run run
3450 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3451 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3453 $as_echo_n "checking
for $ac_word...
" >&6; }
3454 if test "${ac_cv_prog_RUN+set}" = set; then :
3455 $as_echo_n "(cached
) " >&6
3457 if test -n "$RUN"; then
3458 ac_cv_prog_RUN="$RUN" # Let the user override the test.
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 test -z "$as_dir" && as_dir=.
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3467 ac_cv_prog_RUN="$ac_tool_prefix$ac_prog"
3468 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3478 if test -n "$RUN"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUN" >&5
3480 $as_echo "$RUN" >&6; }
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3483 $as_echo "no
" >&6; }
3487 test -n "$RUN" && break
3490 if test -z "$RUN"; then
3492 for ac_prog in isa-run run
3494 # Extract the first word of "$ac_prog", so it can be a program name with args.
3495 set dummy $ac_prog; ac_word=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3497 $as_echo_n "checking
for $ac_word...
" >&6; }
3498 if test "${ac_cv_prog_ac_ct_RUN+set}" = set; then :
3499 $as_echo_n "(cached
) " >&6
3501 if test -n "$ac_ct_RUN"; then
3502 ac_cv_prog_ac_ct_RUN="$ac_ct_RUN" # Let the user override the test.
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 test -z "$as_dir" && as_dir=.
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511 ac_cv_prog_ac_ct_RUN="$ac_prog"
3512 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3521 ac_ct_RUN=$ac_cv_prog_ac_ct_RUN
3522 if test -n "$ac_ct_RUN"; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RUN" >&5
3524 $as_echo "$ac_ct_RUN" >&6; }
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3527 $as_echo "no
" >&6; }
3531 test -n "$ac_ct_RUN" && break
3534 if test "x
$ac_ct_RUN" = x; then
3537 case $cross_compiling:$ac_tool_warned in
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3540 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3541 ac_tool_warned=yes ;;
3547 if test ${RUN} = "no
" ; then :
3549 as_fn_error "Cannot
find simulator
for target
${target_alias}" "$LINENO" 5
3562 #-------------------------------------------------------------------------
3563 # Checks for header files
3564 #-------------------------------------------------------------------------
3568 ac_cpp='$CPP $CPPFLAGS'
3569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3573 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3574 # On Suns, sometimes $CPP names a directory.
3575 if test -n "$CPP" && test -d "$CPP"; then
3578 if test -z "$CPP"; then
3579 if test "${ac_cv_prog_CPP+set}" = set; then :
3580 $as_echo_n "(cached
) " >&6
3582 # Double quotes because CPP needs to be expanded
3583 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3586 for ac_c_preproc_warn_flag in '' yes
3588 # Use a header file that comes with gcc, so configuring glibc
3589 # with a fresh cross-compiler works.
3590 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3591 # <limits.h> exists even on freestanding compilers.
3592 # On the NeXT, cc -E runs the code through the compiler's parser,
3593 # not just through cpp. "Syntax error
" is here to catch this case.
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3597 # include <limits.h>
3599 # include <assert.h>
3603 if ac_fn_c_try_cpp "$LINENO"; then :
3606 # Broken: fails on valid input.
3609 rm -f conftest.err conftest.$ac_ext
3611 # OK, works on sane cases. Now check whether nonexistent headers
3612 # can be detected and how.
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3615 #include <ac_nonexistent.h>
3617 if ac_fn_c_try_cpp "$LINENO"; then :
3618 # Broken: success on invalid input.
3621 # Passes both tests.
3625 rm -f conftest.err conftest.$ac_ext
3628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3629 rm -f conftest.err conftest.$ac_ext
3630 if $ac_preproc_ok; then :
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3643 $as_echo "$CPP" >&6; }
3645 for ac_c_preproc_warn_flag in '' yes
3647 # Use a header file that comes with gcc, so configuring glibc
3648 # with a fresh cross-compiler works.
3649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3650 # <limits.h> exists even on freestanding compilers.
3651 # On the NeXT, cc -E runs the code through the compiler's parser,
3652 # not just through cpp. "Syntax error
" is here to catch this case.
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3656 # include <limits.h>
3658 # include <assert.h>
3662 if ac_fn_c_try_cpp "$LINENO"; then :
3665 # Broken: fails on valid input.
3668 rm -f conftest.err conftest.$ac_ext
3670 # OK, works on sane cases. Now check whether nonexistent headers
3671 # can be detected and how.
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3674 #include <ac_nonexistent.h>
3676 if ac_fn_c_try_cpp "$LINENO"; then :
3677 # Broken: success on invalid input.
3680 # Passes both tests.
3684 rm -f conftest.err conftest.$ac_ext
3687 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3688 rm -f conftest.err conftest.$ac_ext
3689 if $ac_preproc_ok; then :
3692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3695 See \`config.log' for more details.
" "$LINENO" 5; }
3699 ac_cpp='$CPP $CPPFLAGS'
3700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3706 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3707 if test "${ac_cv_path_GREP+set}" = set; then :
3708 $as_echo_n "(cached
) " >&6
3710 if test -z "$GREP"; then
3711 ac_path_GREP_found=false
3712 # Loop through the user's path and test for each of PROGNAME-LIST
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3717 test -z "$as_dir" && as_dir=.
3718 for ac_prog in grep ggrep; do
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3721 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3722 # Check for GNU ac_path_GREP and select it if it is found.
3723 # Check for GNU $ac_path_GREP
3724 case `"$ac_path_GREP" --version 2>&1` in
3726 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3729 $as_echo_n 0123456789 >"conftest.
in"
3732 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3733 mv "conftest.tmp
" "conftest.
in"
3734 cp "conftest.
in" "conftest.
nl"
3735 $as_echo 'GREP' >> "conftest.
nl"
3736 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3737 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3738 as_fn_arith $ac_count + 1 && ac_count=$as_val
3739 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3740 # Best one so far, save it but keep looking for a better one
3741 ac_cv_path_GREP="$ac_path_GREP"
3742 ac_path_GREP_max=$ac_count
3744 # 10*(2^10) chars as input seems more than enough
3745 test $ac_count -gt 10 && break
3747 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3750 $ac_path_GREP_found && break 3
3755 if test -z "$ac_cv_path_GREP"; then
3756 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3759 ac_cv_path_GREP=$GREP
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3764 $as_echo "$ac_cv_path_GREP" >&6; }
3765 GREP="$ac_cv_path_GREP"
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3769 $as_echo_n "checking
for egrep...
" >&6; }
3770 if test "${ac_cv_path_EGREP+set}" = set; then :
3771 $as_echo_n "(cached
) " >&6
3773 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3774 then ac_cv_path_EGREP="$GREP -E"
3776 if test -z "$EGREP"; then
3777 ac_path_EGREP_found=false
3778 # Loop through the user's path and test for each of PROGNAME-LIST
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3783 test -z "$as_dir" && as_dir=.
3784 for ac_prog in egrep; do
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3787 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3788 # Check for GNU ac_path_EGREP and select it if it is found.
3789 # Check for GNU $ac_path_EGREP
3790 case `"$ac_path_EGREP" --version 2>&1` in
3792 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3795 $as_echo_n 0123456789 >"conftest.
in"
3798 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3799 mv "conftest.tmp
" "conftest.
in"
3800 cp "conftest.
in" "conftest.
nl"
3801 $as_echo 'EGREP' >> "conftest.
nl"
3802 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3803 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3804 as_fn_arith $ac_count + 1 && ac_count=$as_val
3805 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3806 # Best one so far, save it but keep looking for a better one
3807 ac_cv_path_EGREP="$ac_path_EGREP"
3808 ac_path_EGREP_max=$ac_count
3810 # 10*(2^10) chars as input seems more than enough
3811 test $ac_count -gt 10 && break
3813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3816 $ac_path_EGREP_found && break 3
3821 if test -z "$ac_cv_path_EGREP"; then
3822 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3825 ac_cv_path_EGREP=$EGREP
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3831 $as_echo "$ac_cv_path_EGREP" >&6; }
3832 EGREP="$ac_cv_path_EGREP"
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3836 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3837 if test "${ac_cv_header_stdc+set}" = set; then :
3838 $as_echo_n "(cached
) " >&6
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3855 if ac_fn_c_try_compile "$LINENO"; then :
3856 ac_cv_header_stdc=yes
3858 ac_cv_header_stdc=no
3860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862 if test $ac_cv_header_stdc = yes; then
3863 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3869 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3870 $EGREP "memchr
" >/dev/null 2>&1; then :
3873 ac_cv_header_stdc=no
3879 if test $ac_cv_header_stdc = yes; then
3880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3886 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3887 $EGREP "free
" >/dev/null 2>&1; then :
3890 ac_cv_header_stdc=no
3896 if test $ac_cv_header_stdc = yes; then
3897 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3898 if test "$cross_compiling" = yes; then :
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3905 #if ((' ' & 0x0FF) == 0x020)
3906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3909 # define ISLOWER(c) \
3910 (('a' <= (c) && (c) <= 'i') \
3911 || ('j' <= (c) && (c) <= 'r') \
3912 || ('s' <= (c) && (c) <= 'z'))
3913 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3916 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3921 for (i = 0; i < 256; i++)
3922 if (XOR (islower (i), ISLOWER (i))
3923 || toupper (i) != TOUPPER (i))
3928 if ac_fn_c_try_run "$LINENO"; then :
3931 ac_cv_header_stdc=no
3933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3934 conftest.$ac_objext conftest.beam conftest.$ac_ext
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3940 $as_echo "$ac_cv_header_stdc" >&6; }
3941 if test $ac_cv_header_stdc = yes; then
3943 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3948 #-------------------------------------------------------------------------
3949 # Default compiler flags
3950 #-------------------------------------------------------------------------
3954 CXXFLAGS
="-Wall -O2"
3957 #-------------------------------------------------------------------------
3958 # MCPPBS subproject list
3959 #-------------------------------------------------------------------------
3960 # Order list so that subprojects only depend on those listed earlier.
3961 # The '*' suffix indicates an optional subproject. The '**' suffix
3962 # indicates an optional subproject which is also the name of a group.
3966 # Add command line argument to enable all optional subprojects
3968 # Check whether --enable-optional-subprojects was given.
3969 if test "${enable_optional_subprojects+set}" = set; then :
3970 enableval
=$enable_optional_subprojects;
3974 # Loop through the subprojects given in the macro argument
3978 # Determine if this is a required or an optional subproject
3982 # Determine if there is a group with the same name
3986 # Create variations of the subproject name suitable for use as a CPP
3987 # enabled define, a shell enabled variable, and a shell function
3999 # Add subproject to our running list
4001 subprojects
="$subprojects riscv"
4003 # Process the subproject appropriately. If enabled add it to the
4004 # $enabled_subprojects running shell variable, set a
4005 # SUBPROJECT_ENABLED C define, and include the appropriate
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : riscv" >&5
4010 $as_echo "$as_me: configuring default subproject : riscv" >&6;}
4011 ac_config_files
="$ac_config_files riscv.mk:riscv/riscv.mk.in"
4013 enable_riscv_sproj
="yes"
4014 subprojects_enabled
="$subprojects_enabled riscv"
4016 $as_echo "#define RISCV_ENABLED /**/" >>confdefs.h
4018 libopc
=`dirname \`which riscv-gcc\
``/..
/`$ac_config_guess`/riscv
/lib
/libopcodes.a
4019 as_ac_File
=`$as_echo "ac_cv_file_$libopc" | $as_tr_sh`
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $libopc" >&5
4021 $as_echo_n "checking for $libopc... " >&6; }
4022 if { as_var
=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
4023 $as_echo_n "(cached) " >&6
4025 test "$cross_compiling" = yes &&
4026 as_fn_error
"cannot check for file existence when cross compiling" "$LINENO" 5
4027 if test -r "$libopc"; then
4028 eval "$as_ac_File=yes"
4030 eval "$as_ac_File=no"
4033 eval ac_res
=\$
$as_ac_File
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4035 $as_echo "$ac_res" >&6; }
4036 eval as_val
=\$
$as_ac_File
4037 if test "x$as_val" = x
""yes; then :
4039 cat >>confdefs.h
<<_ACEOF
4040 #define `$as_echo "HAVE_$libopc" | $as_tr_cpp` 1
4042 have_libopcodes
="yes"
4044 have_libopcodes
="no"
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bfd_init" >&5
4049 $as_echo_n "checking for library containing bfd_init... " >&6; }
4050 if test "${ac_cv_search_bfd_init+set}" = set; then :
4051 $as_echo_n "(cached) " >&6
4053 ac_func_search_save_LIBS
=$LIBS
4054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4057 /* Override any GCC internal prototype to avoid an error.
4058 Use char because int might match the return type of a GCC
4059 builtin and then its argument prototype would still apply. */
4072 for ac_lib
in '' bfd
; do
4073 if test -z "$ac_lib"; then
4074 ac_res
="none required"
4077 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4079 if ac_fn_c_try_link
"$LINENO"; then :
4080 ac_cv_search_bfd_init
=$ac_res
4082 rm -f core conftest.err conftest.
$ac_objext \
4084 if test "${ac_cv_search_bfd_init+set}" = set; then :
4088 if test "${ac_cv_search_bfd_init+set}" = set; then :
4091 ac_cv_search_bfd_init
=no
4094 LIBS
=$ac_func_search_save_LIBS
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bfd_init" >&5
4097 $as_echo "$ac_cv_search_bfd_init" >&6; }
4098 ac_res
=$ac_cv_search_bfd_init
4099 if test "$ac_res" != no
; then :
4100 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4103 have_libopcodes
="no"
4107 if test "$have_libopcodes" = "no"; then :
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find opcodes library" >&5
4110 $as_echo "$as_me: WARNING: Could not find opcodes library" >&2;}
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Build will not include disassembly support" >&5
4112 $as_echo "$as_me: WARNING: Build will not include disassembly support" >&2;}
4116 LIBS
="$libopc $LIBS"
4118 $as_echo "#define RISCV_HAVE_LIBOPCODES /**/" >>confdefs.h
4127 # Determine if this is a required or an optional subproject
4131 # Determine if there is a group with the same name
4135 # Create variations of the subproject name suitable for use as a CPP
4136 # enabled define, a shell enabled variable, and a shell function
4148 # Add subproject to our running list
4150 subprojects
="$subprojects softfloat"
4152 # Process the subproject appropriately. If enabled add it to the
4153 # $enabled_subprojects running shell variable, set a
4154 # SUBPROJECT_ENABLED C define, and include the appropriate
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : softfloat" >&5
4159 $as_echo "$as_me: configuring default subproject : softfloat" >&6;}
4160 ac_config_files
="$ac_config_files softfloat.mk:softfloat/softfloat.mk.in"
4162 enable_softfloat_sproj
="yes"
4163 subprojects_enabled
="$subprojects_enabled softfloat"
4165 $as_echo "#define SOFTFLOAT_ENABLED /**/" >>confdefs.h
4172 # Output make variables
4179 #-------------------------------------------------------------------------
4180 # MCPPBS subproject groups
4181 #-------------------------------------------------------------------------
4182 # If a group has the same name as a subproject then you must add the
4183 # '**' suffix in the subproject list above. The list of subprojects in a
4184 # group should be ordered so that subprojets only depend on those listed
4185 # earlier. Here is an example:
4187 # MCPPBS_GROUP( [group-name], [sproja,sprojb,...] )
4190 #-------------------------------------------------------------------------
4192 #-------------------------------------------------------------------------
4194 ac_config_headers
="$ac_config_headers config.h"
4196 ac_config_files
="$ac_config_files Makefile"
4198 cat >confcache
<<\_ACEOF
4199 # This file is a shell script that caches the results of configure
4200 # tests run on this system so they can be shared between configure
4201 # scripts and configure runs, see configure's option --config-cache.
4202 # It is not useful on other systems. If it contains results you don't
4203 # want to keep, you may remove or edit it.
4205 # config.status only pays attention to the cache file if you give it
4206 # the --recheck option to rerun configure.
4208 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4209 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4214 # The following way of writing the cache mishandles newlines in values,
4215 # but we know of no workaround that is simple, portable, and efficient.
4216 # So, we kill variables containing newlines.
4217 # Ultrix sh set writes to stderr and can't be redirected directly,
4218 # and sets the high bit in the cache file unless we assign to the vars.
4220 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4221 eval ac_val
=\$
$ac_var
4225 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4226 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4229 _ | IFS | as_nl
) ;; #(
4230 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
4231 *) { eval $ac_var=; unset $ac_var;} ;;
4237 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4238 *${as_nl}ac_space
=\
*)
4239 # `set' does not quote correctly, so add quotes: double-quote
4240 # substitution turns \\\\ into \\, and sed turns \\ into \.
4243 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4246 # `set' quotes correctly as required by POSIX, so do not add quotes.
4247 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4256 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4258 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4260 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
4261 if test -w "$cache_file"; then
4262 test "x$cache_file" != "x/dev/null" &&
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4264 $as_echo "$as_me: updating cache $cache_file" >&6;}
4265 cat confcache
>$cache_file
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4268 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4273 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4274 # Let make expand exec_prefix.
4275 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4277 DEFS
=-DHAVE_CONFIG_H
4281 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4282 # 1. Remove the extension, and $U if already installed.
4283 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
4284 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
4285 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4286 # will be set to the directory where LIBOBJS objects are built.
4287 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4288 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
4292 LTLIBOBJS
=$ac_ltlibobjs
4296 : ${CONFIG_STATUS=./config.status}
4298 ac_clean_files_save
=$ac_clean_files
4299 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4301 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4303 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4305 # Generated by $as_me.
4306 # Run this file to recreate the current configuration.
4307 # Compiler output produced by configure, useful for debugging
4308 # configure, is in config.log if it exists.
4314 SHELL=\${CONFIG_SHELL-$SHELL}
4317 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
4318 ## -------------------- ##
4319 ## M4sh Initialization. ##
4320 ## -------------------- ##
4322 # Be more Bourne compatible
4323 DUALCASE
=1; export DUALCASE
# for MKS sh
4324 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
4327 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4328 # is contrary to our usage. Disable this feature.
4329 alias -g '${1+"$@"}'='"$@"'
4330 setopt NO_GLOB_SUBST
4332 case `(set -o) 2>/dev/null` in #(
4344 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4345 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4346 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4347 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4348 # Prefer a ksh shell builtin over an external printf program on Solaris,
4349 # but without wasting forks for bash or zsh.
4350 if test -z "$BASH_VERSION$ZSH_VERSION" \
4351 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4352 as_echo='print
-r --'
4353 as_echo_n='print
-rn --'
4354 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4355 as_echo='printf %s
\n'
4356 as_echo_n='printf %s
'
4358 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4359 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
4360 as_echo_n='/usr
/ucb
/echo -n'
4362 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4363 as_echo_n_body='eval
4367 expr "X$arg" : "X\\(.*\\)$as_nl";
4368 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4370 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
4372 export as_echo_n_body
4373 as_echo_n='sh
-c $as_echo_n_body as_echo
'
4376 as_echo='sh
-c $as_echo_body as_echo
'
4379 # The user is always right.
4380 if test "${PATH_SEPARATOR+set}" != set; then
4382 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4383 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4390 # We need space, tab and new line, in precisely that order. Quoting is
4391 # there to prevent editors from complaining about space-tab.
4392 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4393 # splitting by setting IFS to empty value.)
4396 # Find who we are. Look in the path if we contain no directory separator.
4398 *[\\/]* ) as_myself=$0 ;;
4399 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 test -z "$as_dir" && as_dir=.
4404 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4410 # We did not find ourselves, most probably we were run as `sh COMMAND'
4411 # in which case we are not to be found in the path.
4412 if test "x$as_myself" = x
; then
4415 if test ! -f "$as_myself"; then
4416 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4420 # Unset variables that we do not need and which cause bugs (e.g. in
4421 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4422 # suppresses any "Segmentation fault" message there. '((' could
4423 # trigger a bug in pdksh 5.2.14.
4424 for as_var
in BASH_ENV ENV MAIL MAILPATH
4425 do eval test x\
${$as_var+set} = xset \
4426 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
4439 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
4442 # as_fn_error ERROR [LINENO LOG_FD]
4443 # ---------------------------------
4444 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4445 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4446 # script with status $?, using 1 if that was 0.
4449 as_status
=$?
; test $as_status -eq 0 && as_status
=1
4451 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
4452 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4454 $as_echo "$as_me: error: $1" >&2
4455 as_fn_exit
$as_status
4459 # as_fn_set_status STATUS
4460 # -----------------------
4461 # Set $? to STATUS, without forking.
4465 } # as_fn_set_status
4469 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4479 # Portably unset VAR.
4482 { eval $1=; unset $1;}
4484 as_unset
=as_fn_unset
4485 # as_fn_append VAR VALUE
4486 # ----------------------
4487 # Append the text in VALUE to the end of the definition contained in VAR. Take
4488 # advantage of any shell optimizations that allow amortized linear growth over
4489 # repeated appends, instead of the typical quadratic growth present in naive
4491 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
4492 eval 'as_fn_append ()
4503 # as_fn_arith ARG...
4504 # ------------------
4505 # Perform arithmetic evaluation on the ARGs, and store the result in the
4506 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4507 # must be portable across $(()) and expr.
4508 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
4509 eval 'as_fn_arith ()
4516 as_val
=`expr "$@" || test $? -eq 1`
4521 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
4522 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
4528 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4529 as_basename
=basename
4534 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
4540 as_me
=`$as_basename -- "$0" ||
4541 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4542 X"$0" : 'X\(//\)$' \| \
4543 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4545 sed '/^.*\/\([^/][^/]*\)\/*$/{
4559 # Avoid depending upon Character Ranges.
4560 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4561 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4562 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4563 as_cr_digits
='0123456789'
4564 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4566 ECHO_C
= ECHO_N
= ECHO_T
=
4567 case `echo -n x` in #(((((
4569 case `echo 'xy\c'` in
4570 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
4572 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
4579 rm -f conf$$ conf$$.exe conf$$.
file
4580 if test -d conf$$.dir
; then
4581 rm -f conf$$.dir
/conf$$.
file
4584 mkdir conf$$.dir
2>/dev
/null
4586 if (echo >conf$$.
file) 2>/dev
/null
; then
4587 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4589 # ... but there are two gotchas:
4590 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4591 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4592 # In both cases, we have to default to `cp -p'.
4593 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
4595 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4603 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
4604 rmdir conf$$.dir
2>/dev
/null
4609 # Create "$as_dir" as a directory, including parents if necessary.
4614 -*) as_dir
=.
/$as_dir;;
4616 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
4620 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4621 *) as_qdir
=$as_dir;;
4623 as_dirs
="'$as_qdir' $as_dirs"
4624 as_dir
=`$as_dirname -- "$as_dir" ||
4625 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4626 X"$as_dir" : 'X\(//\)[^/]' \| \
4627 X"$as_dir" : 'X\(//\)$' \| \
4628 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4629 $as_echo X"$as_dir" |
4630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4647 test -d "$as_dir" && break
4649 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
4650 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
4654 if mkdir
-p .
2>/dev
/null
; then
4655 as_mkdir_p
='mkdir -p "$as_dir"'
4657 test -d .
/-p && rmdir .
/-p
4661 if test -x / >/dev
/null
2>&1; then
4664 if ls -dL / >/dev
/null
2>&1; then
4671 if test -d "$1"; then
4677 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4678 ???[sx]*):;;*)false;;esac;fi
4682 as_executable_p
=$as_test_x
4684 # Sed expression to map a string onto a valid CPP name.
4685 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4687 # Sed expression to map a string onto a valid variable name.
4688 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4692 ## ----------------------------------- ##
4693 ## Main body of $CONFIG_STATUS script. ##
4694 ## ----------------------------------- ##
4696 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
4698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4699 # Save the log message, to keep $0 and so on meaningful, and to
4700 # report actual input values of CONFIG_FILES etc. instead of their
4701 # values after options handling.
4703 This file was extended by RISC-V ISA Simulator $as_me ?, which was
4704 generated by GNU Autoconf 2.64. Invocation command line was
4706 CONFIG_FILES = $CONFIG_FILES
4707 CONFIG_HEADERS = $CONFIG_HEADERS
4708 CONFIG_LINKS = $CONFIG_LINKS
4709 CONFIG_COMMANDS = $CONFIG_COMMANDS
4712 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4717 case $ac_config_files in *"
4718 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
4721 case $ac_config_headers in *"
4722 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
4726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4727 # Files that config.status was made for.
4728 config_files="$ac_config_files"
4729 config_headers="$ac_config_headers"
4733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4735 \`$as_me' instantiates files and other configuration actions
4736 from templates according to the current configuration. Unless the files
4737 and actions are specified as TAGs, all are instantiated by default.
4739 Usage: $0 [OPTION]... [TAG]...
4741 -h, --help print this help, then exit
4742 -V, --version print version number and configuration settings, then exit
4743 -q, --quiet, --silent
4744 do not print progress messages
4745 -d, --debug don't remove temporary files
4746 --recheck update $as_me by reconfiguring in the same conditions
4747 --file=FILE[:TEMPLATE]
4748 instantiate the configuration file FILE
4749 --header=FILE[:TEMPLATE]
4750 instantiate the configuration header FILE
4752 Configuration files:
4755 Configuration headers:
4758 Report bugs to <Andrew Waterman>."
4761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4763 RISC-V ISA Simulator config.status ?
4764 configured by $0, generated by GNU Autoconf 2.64,
4765 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4767 Copyright (C) 2009 Free Software Foundation, Inc.
4768 This config.status script is free software; the Free Software Foundation
4769 gives unlimited permission to copy, distribute and modify it."
4774 test -n "\$AWK" || AWK=awk
4777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4778 # The default lists apply if the user does not specify any file.
4784 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
4785 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
4796 # Handling of the options.
4797 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
4799 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
4800 $as_echo "$ac_cs_version"; exit ;;
4801 --debug |
--debu |
--deb |
--de |
--d |
-d )
4803 --file |
--fil |
--fi |
--f )
4806 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4808 as_fn_append CONFIG_FILES
" '$ac_optarg'"
4809 ac_need_defaults
=false
;;
4810 --header |
--heade |
--head |
--hea )
4813 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4815 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
4816 ac_need_defaults
=false
;;
4818 # Conflict between --help and --header
4819 as_fn_error
"ambiguous option: \`$1'
4820 Try \`$0 --help' for more information.";;
4821 --help |
--hel |
-h )
4822 $as_echo "$ac_cs_usage"; exit ;;
4823 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
4824 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
4828 -*) as_fn_error
"unrecognized option: \`$1'
4829 Try \`$0 --help' for more information." ;;
4831 *) as_fn_append ac_config_targets
" $1"
4832 ac_need_defaults
=false
;;
4838 ac_configure_extra_args
=
4840 if $ac_cs_silent; then
4842 ac_configure_extra_args
="$ac_configure_extra_args --silent"
4846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4847 if \$ac_cs_recheck; then
4848 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4850 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4851 CONFIG_SHELL='$SHELL'
4857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4861 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4862 ## Running $as_me. ##
4868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4873 # Handling of arguments.
4874 for ac_config_target
in $ac_config_targets
4876 case $ac_config_target in
4877 "riscv.mk") CONFIG_FILES
="$CONFIG_FILES riscv.mk:riscv/riscv.mk.in" ;;
4878 "softfloat.mk") CONFIG_FILES
="$CONFIG_FILES softfloat.mk:softfloat/softfloat.mk.in" ;;
4879 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
4880 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
4882 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4887 # If the user did not use the arguments to specify the items to instantiate,
4888 # then the envvar interface is used. Set only those that are not.
4889 # We use the long form for the default assignment because of an extremely
4890 # bizarre bug on SunOS 4.1.3.
4891 if $ac_need_defaults; then
4892 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
4893 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
4896 # Have a temporary directory for convenience. Make it in the build tree
4897 # simply because there is no reason against having it here, and in addition,
4898 # creating and moving files from /tmp can sometimes cause problems.
4899 # Hook for its removal unless debugging.
4900 # Note that there is a small window in which the directory will not be cleaned:
4901 # after its creation but before its name has been assigned to `$tmp'.
4905 trap 'exit_status=$?
4906 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4908 trap 'as_fn_exit 1' 1 2 13 15
4910 # Create a (secure) tmp directory for tmp files.
4913 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4914 test -n "$tmp" && test -d "$tmp"
4917 tmp
=.
/conf$$
-$RANDOM
4918 (umask 077 && mkdir
"$tmp")
4919 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
4921 # Set up the scripts for CONFIG_FILES section.
4922 # No need to generate them if there are no CONFIG_FILES.
4923 # This happens for instance with `./config.status config.h'.
4924 if test -n "$CONFIG_FILES"; then
4927 ac_cr
=`echo X | tr X '\015'`
4928 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4929 # But we know of no other shell where ac_cr would be empty at this
4930 # point, so we can use a bashism as a fallback.
4931 if test "x$ac_cr" = x
; then
4932 eval ac_cr
=\$
\'\\r
\'
4934 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4935 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4941 echo 'BEGIN {' >"$tmp/subs1.awk" &&
4946 echo "cat >conf$$subs.awk <<_ACEOF" &&
4947 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4950 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
4951 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
4953 for ac_last_try in false false false false false :; do
4954 . ./conf$$subs.sh ||
4955 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
4957 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
4958 if test $ac_delim_n = $ac_delim_num; then
4960 elif $ac_last_try; then
4961 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
4963 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
4968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4969 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
4973 s/^/S["/; s
/!.
*/"]=/
4983 s/\(.\{148\}\).*/\1/
4985 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
4990 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
4997 s/\(.\{148\}\).*/\1/
4999 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5003 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5008 ' <conf$$subs.awk | sed '
5013 ' >>$CONFIG_STATUS || ac_write_fail=1
5014 rm -f conf$$subs.awk
5015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5017 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
5018 for (key in S) S_is_set[key] = 1
5024 nfields = split(line, field, "@
")
5026 len = length(field[1])
5027 for (i = 2; i < nfields; i++) {
5029 keylen = length(key)
5030 if (S_is_set[key]) {
5032 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5033 len += length(value) + length(field[++i])
5044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5045 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5046 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
5049 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
5050 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
5053 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5054 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
5055 # trailing colons and then remove the whole line if VPATH becomes empty
5056 # (actually we leave an empty line to preserve line numbers).
5057 if test "x
$srcdir" = x.; then
5058 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5062 s/^\([^=]*=[ ]*\):*/\1/
5068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5069 fi # test -n "$CONFIG_FILES"
5071 # Set up the scripts for CONFIG_HEADERS section.
5072 # No need to generate them if there are no CONFIG_HEADERS.
5073 # This happens for instance with `./config.status Makefile'.
5074 if test -n "$CONFIG_HEADERS"; then
5075 cat >"$tmp/defines.
awk" <<\_ACAWK ||
5079 # Transform confdefs.h into an awk script `defines.awk', embedded as
5080 # here-document in config.status, that substitutes the proper values into
5081 # config.h.in to produce config.h.
5083 # Create a delimiter string that does not exist in confdefs.h, to ease
5084 # handling of long lines.
5086 for ac_last_try in false false :; do
5087 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
5088 if test -z "$ac_t"; then
5090 elif $ac_last_try; then
5091 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
5093 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5097 # For the awk script, D is an array of macro values keyed by name,
5098 # likewise P contains macro parameters if any. Preserve backslash
5099 # newline sequences.
5101 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5103 s/.\{148\}/&'"$ac_delim"'/g
5106 s/^[ ]*#[ ]*define[ ][ ]*/ /
5113 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5115 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5119 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5120 D["\
1"]=" \
3\\\\\\n
"\\/p
5122 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5127 s/.\{148\}/&'"$ac_delim"'/g
5132 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5135 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5137 ' <confdefs.h | sed '
5138 s/'"$ac_delim"'/"\\\
5139 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5142 for (key in D) D_is_set[key] = 1
5145 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5147 split(line, arg, " ")
5148 if (arg[1] == "#") {
5152 defundef
= substr
(arg
[1], 2)
5155 split(mac1
, mac2
, "(") #)
5157 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5158 if (D_is_set
[macro
]) {
5159 # Preserve the white space surrounding the "#".
5160 print prefix
"define", macro P
[macro
] D
[macro
]
5163 # Replace #undef with comments. This is necessary, for example,
5164 # in the case of _POSIX_SOURCE, which is predefined and required
5165 # on some systems where configure will not decide to define it.
5166 if (defundef
== "undef") {
5167 print
"/*", prefix defundef
, macro
, "*/"
5175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5176 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
5177 fi # test -n "$CONFIG_HEADERS"
5180 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
5185 :[FHLC
]) ac_mode
=$ac_tag; continue;;
5187 case $ac_mode$ac_tag in
5189 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
5190 :[FH
]-) ac_tag
=-:-;;
5191 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
5208 -) ac_f
="$tmp/stdin";;
5209 *) # Look for the file first in the build tree, then in the source tree
5210 # (if the path is not absolute). The absolute path cannot be DOS-style,
5211 # because $ac_f cannot contain `:'.
5215 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
5217 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
5219 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5220 as_fn_append ac_file_inputs
" '$ac_f'"
5223 # Let's still pretend it is `configure' which instantiates (i.e., don't
5224 # use $as_me), people would be surprised to read:
5225 # /* config.h. Generated by config.status. */
5226 configure_input
='Generated from '`
5227 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5229 if test x
"$ac_file" != x-
; then
5230 configure_input
="$ac_file. $configure_input"
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5232 $as_echo "$as_me: creating $ac_file" >&6;}
5234 # Neutralize special characters interpreted by sed in replacement strings.
5235 case $configure_input in #(
5236 *\
&* |
*\|
* |
*\\* )
5237 ac_sed_conf_input
=`$as_echo "$configure_input" |
5238 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5239 *) ac_sed_conf_input
=$configure_input;;
5243 *:-:* |
*:-) cat >"$tmp/stdin" \
5244 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
5249 ac_dir
=`$as_dirname -- "$ac_file" ||
5250 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5251 X"$ac_file" : 'X\(//\)[^/]' \| \
5252 X"$ac_file" : 'X\(//\)$' \| \
5253 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5254 $as_echo X"$ac_file" |
5255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5272 as_dir
="$ac_dir"; as_fn_mkdir_p
5276 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5278 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5279 # A ".." for each directory in $ac_dir_suffix.
5280 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5281 case $ac_top_builddir_sub in
5282 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5283 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
5286 ac_abs_top_builddir
=$ac_pwd
5287 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
5288 # for backward compatibility:
5289 ac_top_builddir
=$ac_top_build_prefix
5292 .
) # We are building in place.
5294 ac_top_srcdir
=$ac_top_builddir_sub
5295 ac_abs_top_srcdir
=$ac_pwd ;;
5296 [\\/]* | ?
:[\\/]* ) # Absolute name.
5297 ac_srcdir
=$srcdir$ac_dir_suffix;
5298 ac_top_srcdir
=$srcdir
5299 ac_abs_top_srcdir
=$srcdir ;;
5301 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
5302 ac_top_srcdir
=$ac_top_build_prefix$srcdir
5303 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
5305 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
5315 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5316 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
5320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5321 # If the template does not know about datarootdir, expand it.
5322 # FIXME: This hack should be removed a few years after 2.60.
5323 ac_datarootdir_hack
=; ac_datarootdir_seen
=
5334 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5335 *datarootdir
*) ac_datarootdir_seen
=yes;;
5336 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5338 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5341 ac_datarootdir_hack='
5342 s&@datadir@&$datadir&g
5343 s&@docdir@&$docdir&g
5344 s&@infodir@&$infodir&g
5345 s&@localedir@&$localedir&g
5346 s&@mandir@&$mandir&g
5347 s&\\\${datarootdir}&$datarootdir&g' ;;
5351 # Neutralize VPATH when `$srcdir' = `.'.
5352 # Shell code in configure.ac might set extrasub.
5353 # FIXME: do we really want to maintain this feature?
5354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5355 ac_sed_extra="$ac_vpsub
5358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5360 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5361 s|@configure_input@|
$ac_sed_conf_input|
;t t
5362 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
5363 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
5364 s
&@srcdir@
&$ac_srcdir&;t t
5365 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
5366 s
&@top_srcdir@
&$ac_top_srcdir&;t t
5367 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
5368 s
&@builddir@
&$ac_builddir&;t t
5369 s
&@abs_builddir@
&$ac_abs_builddir&;t t
5370 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
5371 s
&@INSTALL@
&$ac_INSTALL&;t t
5372 $ac_datarootdir_hack
5374 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
5375 || as_fn_error "could not create
$ac_file" "$LINENO" 5
5377 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5378 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
5379 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
5381 which seems to be undefined. Please make sure it is defined." >&5
5382 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
5383 which seems to be undefined. Please make sure it is defined." >&2;}
5387 -) cat "$tmp/out" && rm -f "$tmp/out";;
5388 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5390 || as_fn_error "could not create $ac_file" "$LINENO" 5
5396 if test x"$ac_file" != x-; then
5398 $as_echo "/* $configure_input */" \
5399 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5400 } >"$tmp/config.h" \
5401 || as_fn_error "could not create $ac_file" "$LINENO" 5
5402 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5404 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5407 mv "$tmp/config.h" "$ac_file" \
5408 || as_fn_error "could not create $ac_file" "$LINENO" 5
5411 $as_echo "/* $configure_input */" \
5412 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5413 || as_fn_error "could not create -" "$LINENO" 5
5425 ac_clean_files=$ac_clean_files_save
5427 test $ac_write_fail = 0 ||
5428 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
5431 # configure is writing to config.log, and then calls config.status.
5432 # config.status does its own redirection, appending to config.log.
5433 # Unfortunately, on DOS this fails, as config.log is still kept open
5434 # by configure, so config.status won't be able to
write to it
; its
5435 # output is simply discarded. So we exec the FD to /dev/null,
5436 # effectively closing config.log, so it can be properly (re)opened and
5437 # appended to by config.status. When coming back to configure, we
5438 # need to make the FD available again.
5439 if test "$no_create" != yes; then
5441 ac_config_status_args
=
5442 test "$silent" = yes &&
5443 ac_config_status_args
="$ac_config_status_args --quiet"
5445 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5447 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5448 # would make configure fail if this is the last instruction.
5449 $ac_cs_success || as_fn_exit $?
5451 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5453 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}