Fix building without python support

Release_2.0_Bugfix
Bradlee Speice 2012-08-28 16:07:44 -04:00
parent c6c8cf35be
commit ff11051c34
1 changed files with 5 additions and 1 deletions

View File

@ -114,7 +114,6 @@ if test "$with_python" != "no"; then
AM_PATH_PYTHON([2.4])
m4_include([m4/m4_ax_python_devel.m4])
AX_PYTHON_DEVEL([>= '2.4'])
AC_CONFIG_FILES([python/Makefile])
fi
if test "$Python" == "missing"; then
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
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.
AC_FUNC_MALLOC