[glade3] * m4/python.m4: Applying patch to allow better builds on win32, patch by Dieter Verfaillie, bug



commit d5e9d6110e53d752a80fbde43b05dba6252f25d0
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Fri Dec 31 14:05:40 2010 +0900

    	* m4/python.m4: Applying patch to allow better builds on win32, patch by Dieter Verfaillie,
    	  bug 634978.

 ChangeLog    |    3 +++
 m4/python.m4 |    8 +++++---
 2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 74132c1..a16b5be 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,9 @@
 	  object's value as a consequence of dupping (backend uses this to write properties with custom
 	  values and does not expect that).
 
+	* m4/python.m4: Applying patch to allow better builds on win32, patch by Dieter Verfaillie, 
+	  bug 634978.
+
 2010-12-30  Christian Persch <chpe gnome org>
 
 	* plugins/gtk+/glade-attributes.c: Use locale-independent strtod &
diff --git a/m4/python.m4 b/m4/python.m4
index 7684df9..cb38b05 100644
--- a/m4/python.m4
+++ b/m4/python.m4
@@ -45,9 +45,11 @@ AC_MSG_CHECKING(for headers required to compile python extensions)
 dnl deduce PYTHON_INCLUDES
 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
-PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
-if test "$py_prefix" != "$py_exec_prefix"; then
-  PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
+if test "x$PYTHON_INCLUDES" == x; then
+  PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
+  if test "$py_prefix" != "$py_exec_prefix"; then
+    PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
+  fi
 fi
 AC_SUBST(PYTHON_INCLUDES)
 dnl check if the headers exist:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]