mirror of
https://github.com/bspeice/libcvautomation
synced 2024-12-04 13:58:11 -05:00
Fix building without python support
This commit is contained in:
parent
c6c8cf35be
commit
ff11051c34
@ -114,7 +114,6 @@ if test "$with_python" != "no"; then
|
|||||||
AM_PATH_PYTHON([2.4])
|
AM_PATH_PYTHON([2.4])
|
||||||
m4_include([m4/m4_ax_python_devel.m4])
|
m4_include([m4/m4_ax_python_devel.m4])
|
||||||
AX_PYTHON_DEVEL([>= '2.4'])
|
AX_PYTHON_DEVEL([>= '2.4'])
|
||||||
AC_CONFIG_FILES([python/Makefile])
|
|
||||||
fi
|
fi
|
||||||
if test "$Python" == "missing"; then
|
if test "$Python" == "missing"; then
|
||||||
echo "Could not find a suitable Python program. Disabling building python support..."
|
echo "Could not find a suitable Python program. Disabling building python support..."
|
||||||
@ -127,6 +126,11 @@ fi
|
|||||||
|
|
||||||
AM_CONDITIONAL(BUILD_PYTHON, [test "$with_python" != "no"]) #true unless --without-python
|
AM_CONDITIONAL(BUILD_PYTHON, [test "$with_python" != "no"]) #true unless --without-python
|
||||||
|
|
||||||
|
if test "$with_python" != "no"; then
|
||||||
|
#Only generate the config if both python and swig are available
|
||||||
|
AC_CONFIG_FILES([python/Makefile])
|
||||||
|
fi
|
||||||
|
|
||||||
# Checks for library functions.
|
# Checks for library functions.
|
||||||
AC_FUNC_MALLOC
|
AC_FUNC_MALLOC
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user