Guile check for at least guile 1.8
This commit is contained in:
parent
d3cddb1355
commit
4de24d1d11
1 changed files with 11 additions and 0 deletions
11
configure.ac
11
configure.ac
|
|
@ -1204,6 +1204,17 @@ else
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test -f "$GUILE" ; then
|
||||||
|
AC_MSG_CHECKING([for guile version])
|
||||||
|
guile_version=`guile -c '(display (effective-version))'`
|
||||||
|
AC_MSG_RESULT([$guile_version])
|
||||||
|
guile -c '(if (>= (string->number (effective-version)) 1.8) (exit 0) (exit 1))'
|
||||||
|
if test $? -ne 0 ; then
|
||||||
|
AC_MSG_WARN(Not Guile >= 1.8, SWIG does not support this version of Guile)
|
||||||
|
GUILE=
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if test -z "$GUILE_CFLAGS" ; then
|
if test -z "$GUILE_CFLAGS" ; then
|
||||||
AC_MSG_CHECKING([for guile compile flags])
|
AC_MSG_CHECKING([for guile compile flags])
|
||||||
GUILE_CFLAGS="`$GUILE_CONFIG compile`" # Note that this can sometimes be empty
|
GUILE_CFLAGS="`$GUILE_CONFIG compile`" # Note that this can sometimes be empty
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue