diff options
author | dos-reis <gdr@axiomatics.org> | 2007-09-04 12:35:03 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2007-09-04 12:35:03 +0000 |
commit | 59c10e72a5fe09481f1aee69ec9a3f25551a9680 (patch) | |
tree | 025a55b7bbf772c207182fc35d3c0b792c6ba973 /configure.ac.pamphlet | |
parent | 0e51fe489e9172e1256f900e38e5eee4ab66e109 (diff) | |
download | open-axiom-59c10e72a5fe09481f1aee69ec9a3f25551a9680.tar.gz |
* configure.ac.pamphlet: Ignore any existing GCL that is not
either 2.6.7 or 2.6.8.
* configure.ac: Regenerate.
* configure: Likewise.
Diffstat (limited to 'configure.ac.pamphlet')
-rw-r--r-- | configure.ac.pamphlet | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/configure.ac.pamphlet b/configure.ac.pamphlet index ec693209..e8301d74 100644 --- a/configure.ac.pamphlet +++ b/configure.ac.pamphlet @@ -766,18 +766,32 @@ fi Do we need to build our own version of \Tool{GCL}? The answer is yes, if \begin{itemize} \item the option \verb!--with-lisp! is not specified, and -\item no \Tool{GCL} image is available in the build environment. + no \Tool{GCL} image is available in the build environment; or +\item we found a \Tool{GCL} image, but it is too old for OpenAxiom. \end{itemize} -Consequently, we need to check for \Tool{GCL}: +Consequently, we need to check for \Tool{GCL} and its version: <<find lisp>>= -## We need to build our own GCL if none is avalaible +## We need to build our own GCL if none is avalaible, or the existing +## one is too old. if test -z $axiom_lisp; then AC_PATH_PROG([AXIOM_LISP], [gcl]) ## A lisp may not be available AND the GCL source may also ## be missing. Instruct user to either build one or get ## the dependencies from our website. + if test -n "$AXIOM_LISP"; then + AC_MSG_CHECKING([$AXIOM_LISP version]) + v=`$AXIOM_LISP -batch -eval "(format t \"~S\" (lisp-implementation-version))"` + AC_MSG_RESULT([$v]) + case $v in + *2.6.7*|*2.6.8*) ;; # OK + *) + AC_MSG_WARN([$v is not supported by this version of OpenAxiom. $AXIOM_LISP will be ignored.]) + AXIOM_LISP= + ;; + esac + fi if test -z $AXIOM_LISP && test ! -d ${srcdir}/gcl; then - AC_MSG_ERROR([OpenAxiom needs GCL. Either separately build one, or get the dependency tarball from OpenAxiom website.]) + AC_MSG_ERROR([OpenAxiom requires GCL-2.6.7 or GCL-2.6.8. Either separately build one, or get the dependency tarball from OpenAxiom download website.]) fi axiom_lisp=$AXIOM_LISP |