gnome-python r654 - trunk
- From: gjc svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-python r654 - trunk
- Date: Sat, 31 Jan 2009 22:37:09 +0000 (UTC)
Author: gjc
Date: Sat Jan 31 22:37:09 2009
New Revision: 654
URL: http://svn.gnome.org/viewvc/gnome-python?rev=654&view=rev
Log:
(from Funda Wang) Use distutils to detect the value of Py_ENABLE_SHARED, not grep; closes #569832.
Modified:
trunk/acinclude.m4
Modified: trunk/acinclude.m4
==============================================================================
--- trunk/acinclude.m4 (original)
+++ trunk/acinclude.m4 Sat Jan 31 22:37:09 2009
@@ -94,7 +94,8 @@
dnl Check whether python was compiled as shared library
link_pymodules_libpython=false;
-if egrep "^#define Py_ENABLE_SHARED" "${py_exec_prefix}/include/python${PYTHON_VERSION}/pyconfig.h" > /dev/null ; then
+py_enable_shared=`$PYTHON -c "from distutils.sysconfig import get_config_var; print repr(get_config_var('Py_ENABLE_SHARED'))"`
+if test $py_enable_shared == 1 ; then
if test x`uname -s` != xDarwin; then
PYTHON_LDFLAGS="-no-undefined"
link_pymodules_libpython=true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]