diff options
author | David Robillard <d@drobilla.net> | 2008-02-17 01:42:50 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-02-17 01:42:50 +0000 |
commit | 8528011e19f061258f1723645d7202305b529f0e (patch) | |
tree | 6cd67c50642e64f6aac453dd39706d1210f53327 /configure.ac | |
parent | 454fa2352be82f42f7131924dafa50e7fcf7d219 (diff) | |
download | lilv-8528011e19f061258f1723645d7202305b529f0e.tar.gz lilv-8528011e19f061258f1723645d7202305b529f0e.tar.bz2 lilv-8528011e19f061258f1723645d7202305b529f0e.zip |
Update Swig/Python bindings.
git-svn-id: http://svn.drobilla.net/lad/slv2@1145 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index dced69b..79ac998 100644 --- a/configure.ac +++ b/configure.ac @@ -96,15 +96,24 @@ if test "$strict" = "yes"; then fi # SWIG bindings -bindings="no" +bindings="yes" AC_ARG_ENABLE(bindings, - [AS_HELP_STRING(--enable-bindings, [Build language bindings via SWIG (false)])], + [AS_HELP_STRING(--enable-bindings, [Build language bindings via SWIG (true if available)])], [bindings="$enableval"]) if test "$bindings" = "yes"; then - AC_CHECK_PROGS(SWIG, swig) + AC_CHECK_PROGS(SWIG, "swig swig-1.3") + if test "$SWIG" = ""; then + AC_MSG_WARN("SWIG not found, language bindings disabled") + fi fi AM_CONDITIONAL(WITH_SWIG, [test "$bindings" = "yes"]) +python="no" +if test "$bindings" = "yes"; then + AC_PYTHON_DEVEL([>= '2.3.0']) +fi +AM_CONDITIONAL(WITH_PYTHON, [test ! "$PYTHON_VERSION" = "yes"]) + # Check for Redland build_redland="no" AC_CHECK_PROG(REDLAND_CONFIG, redland-config, redland-config) |