Small cleanup for crufty guile version check macro

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14856 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming
2006-09-18 15:31:41 +00:00
parent a89f885af4
commit 812bd9a1f0

View File

@@ -14,13 +14,18 @@ if test x${GUILE} = x ; then
AC_PATH_PROG(GUILE, guile, no)
fi
dnl We expect the following variables:
dnl - BUILD_GUILE="yes" if guile-config is available in PATH
dnl - name_build_guile="guile-config" i.e. the name of guile-config
dnl - GUILE="/usr/bin/guile" as detected above.
version_ok=
min_guile_version=ifelse([$1], , 1.3,$1)
max_guile_version=ifelse([$2], , 99.99.99,$2)
AC_MSG_CHECKING(for guile - ${min_guile_version} <= version < ${max_guile_version})
if test x${BUILD_GUILE} != x -a ${BUILD_GUILE} != no ; then
if test "x${BUILD_GUILE}" != x -a "x${BUILD_GUILE}" != xno ; then
guile_version=`${name_build_guile} --version 2>&1`
guile_version="$guile_version.0"
guile_major_version=`echo $guile_version | \