Commit 182b3d01 authored by Scott Tsai's avatar Scott Tsai Committed by Johan Dahlin

reviewed by: Johan Dahlin

2008-01-11  Scott Tsai  <scottt.tw@gmail.com>

	reviewed by: Johan Dahlin

	* m4/python.m4 (py_exec_prefix): Allowing the PYTHON_LIB_LOC and 
	PYTHON_LIBS configure variables to be overriden.


svn path=/trunk/; revision=49
parent ea9d1ad6
2008-01-11 Scott Tsai <scottt.tw@gmail.com>
reviewed by: Johan Dahlin
* m4/python.m4 (py_exec_prefix): Allowing the PYTHON_LIB_LOC and
PYTHON_LIBS configure variables to be overriden.
2008-01-11 Jonathan Rogers <jonner@teegra.net>
reviewed by: Johan Dahlin
......
......@@ -69,8 +69,12 @@ AC_DEFUN([AM_CHECK_PYTHON_LIBS],
AC_MSG_CHECKING(for libraries required to embed python)
dnl deduce PYTHON_LIBS
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
PYTHON_LIB_LOC="${py_prefix}/lib"
if test "x$PYTHON_LIBS" == x; then
PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
fi
if test "x$PYTHON_LIB_LOC" == x; then
PYTHON_LIB_LOC="${py_prefix}/lib"
fi
AC_SUBST(PYTHON_LIBS)
AC_SUBST(PYTHON_LIB_LOC)
dnl check if the headers exist:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment