Fix building without python support

This commit is contained in:
Bradlee Speice 2012-08-28 16:07:44 -04:00
parent c6c8cf35be
commit ff11051c34

View File

@ -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