mirror of https://codeberg.org/cage/tinmop/
- added switch to disable compiler check at build time.
This commit is contained in:
parent
edd1aba2fe
commit
85d26f9146
|
@ -719,6 +719,7 @@ with_gnu_ld
|
||||||
enable_rpath
|
enable_rpath
|
||||||
with_libiconv_prefix
|
with_libiconv_prefix
|
||||||
with_libintl_prefix
|
with_libintl_prefix
|
||||||
|
enable_check_sbcl_version
|
||||||
'
|
'
|
||||||
ac_precious_vars='build_alias
|
ac_precious_vars='build_alias
|
||||||
host_alias
|
host_alias
|
||||||
|
@ -1366,6 +1367,8 @@ Optional Features:
|
||||||
--disable-dependency-tracking
|
--disable-dependency-tracking
|
||||||
speeds up one-time build
|
speeds up one-time build
|
||||||
--disable-rpath do not hardcode runtime library paths
|
--disable-rpath do not hardcode runtime library paths
|
||||||
|
--disable-check-sbcl-version
|
||||||
|
Disable checks for minimum supported SBCL version
|
||||||
|
|
||||||
Optional Packages:
|
Optional Packages:
|
||||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||||
|
@ -6566,11 +6569,28 @@ fi
|
||||||
|
|
||||||
SBCL_MIN_VERSION="1.5.9";
|
SBCL_MIN_VERSION="1.5.9";
|
||||||
SBCL_VERSION=`${LISP_COMPILER} --version | ${GAWK} -- '// {print $2}'`
|
SBCL_VERSION=`${LISP_COMPILER} --version | ${GAWK} -- '// {print $2}'`
|
||||||
SBCL_VERSION_OK=`echo "$SBCL_VERSION $SBCL_MIN_VERSION" | awk -f compare_version.awk`
|
|
||||||
|
|
||||||
if test "$SBCL_VERSION_OK" = "1" ; then
|
CHECK_COMPILER_VERSION_P="yes"
|
||||||
as_fn_error $? "Lisp compiler too old, $SBCL_MIN_VERSION is the oldest supported." "$LINENO" 5
|
|
||||||
exit 1;
|
# Check whether --enable-check-sbcl-version was given.
|
||||||
|
if test "${enable_check_sbcl_version+set}" = set; then :
|
||||||
|
enableval=$enable_check_sbcl_version;
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if test "$enable_check_sbcl_version" = "yes" || test "$enable_check_sbcl_version" = "" ; then
|
||||||
|
SBCL_VERSION_OK=`echo "$SBCL_VERSION $SBCL_MIN_VERSION" | awk -f compare_version.awk`
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler is too old" >&5
|
||||||
|
$as_echo_n "checking if the compiler is too old... " >&6; }
|
||||||
|
|
||||||
|
if test "$SBCL_VERSION_OK" = "1" ; then
|
||||||
|
as_fn_error $? "Lisp compiler too old, $SBCL_MIN_VERSION is the oldest supported." "$LINENO" 5
|
||||||
|
exit 1;
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: version is not too old" >&5
|
||||||
|
$as_echo "version is not too old" >&6; }
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ac_config_files="$ac_config_files Makefile quick_quicklisp.sh po/Makefile.in src/config.lisp.in"
|
ac_config_files="$ac_config_files Makefile quick_quicklisp.sh po/Makefile.in src/config.lisp.in"
|
||||||
|
|
19
configure.ac
19
configure.ac
|
@ -78,11 +78,22 @@ AC_PROG_MKDIR_P
|
||||||
dnl check sbcl version
|
dnl check sbcl version
|
||||||
SBCL_MIN_VERSION="1.5.9";
|
SBCL_MIN_VERSION="1.5.9";
|
||||||
SBCL_VERSION=`${LISP_COMPILER} --version | ${GAWK} -- '// {print $2}'`
|
SBCL_VERSION=`${LISP_COMPILER} --version | ${GAWK} -- '// {print $2}'`
|
||||||
SBCL_VERSION_OK=`echo "$SBCL_VERSION $SBCL_MIN_VERSION" | awk -f compare_version.awk`
|
|
||||||
|
|
||||||
if test "$SBCL_VERSION_OK" = "1" ; then
|
CHECK_COMPILER_VERSION_P="yes"
|
||||||
AC_MSG_ERROR([Lisp compiler too old, $SBCL_MIN_VERSION is the oldest supported.])
|
|
||||||
exit 1;
|
AC_ARG_ENABLE([check-sbcl-version], [AS_HELP_STRING([--disable-check-sbcl-version], [Disable checks for minimum supported SBCL version])], [], [])
|
||||||
|
|
||||||
|
if test "$enable_check_sbcl_version" = "yes" || test "$enable_check_sbcl_version" = "" ; then
|
||||||
|
SBCL_VERSION_OK=`echo "$SBCL_VERSION $SBCL_MIN_VERSION" | awk -f compare_version.awk`
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([if the compiler is too old])
|
||||||
|
|
||||||
|
if test "$SBCL_VERSION_OK" = "1" ; then
|
||||||
|
AC_MSG_ERROR([Lisp compiler too old, $SBCL_MIN_VERSION is the oldest supported.])
|
||||||
|
exit 1;
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT([version is not too old])
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile quick_quicklisp.sh po/Makefile.in src/config.lisp.in])
|
AC_CONFIG_FILES([Makefile quick_quicklisp.sh po/Makefile.in src/config.lisp.in])
|
||||||
|
|
Loading…
Reference in New Issue