From 0f4ceaa2006309d25d343054f0fe83ae3517916c Mon Sep 17 00:00:00 2001 From: Vincent Castellano Date: Sat, 2 May 2015 04:48:31 -0700 Subject: [PATCH] Adding missing changes to configure.ac --- configure.ac | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index e6f1b95..f0786f3 100644 --- a/configure.ac +++ b/configure.ac @@ -94,17 +94,19 @@ AC_ARG_ENABLE(liblua,[--enable-liblua/--disable-liblua], AC_MSG_ERROR([No lua found. Try --disable-liblua]) ]) ]) - AC_ARG_ENABLE(python,[--enable-python/--disable-python], [ + AX_PYTHON() dnl python checks (you can change the required python version bellow) AM_PATH_PYTHON(2.7.0) PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'` - PYTHON_LIBS="-lpython$PYTHON_VERSION" - PYTHON_CFLAGS="-I$PY_PREFIX/include/python$PYTHON_VERSION" AC_SUBST([PYTHON_LIBS]) AC_SUBST([PYTHON_CFLAGS]) - ]) + EXTRA_LIBS="${EXTRA_LIBS} -l${PYTHON_LIB}" + CPPFLAGS="${CPPFLAGS} -I${PYTHON_INCLUDE_DIR}" + + AC_DEFINE(USE_PYTHON,1,[use python]) + ]) #check for custom prog name AC_ARG_WITH(progname,[--with-progname=],