summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-03-13 14:27:10 +0100
committerStefan Metzmacher <metze@samba.org>2008-03-13 14:28:50 +0100
commit1710eca2594c3b43f7b0651a2f07429dbeb2a35d (patch)
treeb48d1c78cccf8320f6eb81857dc3f6e7f048cc44 /source4/scripting
parent44628c43eefa48a700293fe25b9a65ec76f1c1b2 (diff)
downloadsamba-1710eca2594c3b43f7b0651a2f07429dbeb2a35d.tar.gz
samba-1710eca2594c3b43f7b0651a2f07429dbeb2a35d.tar.bz2
samba-1710eca2594c3b43f7b0651a2f07429dbeb2a35d.zip
configure: when detecting python we should disable pyconfig.h
This fixes the detection on HP-UX where the pyconfig.h contains bogus defines. metze (This used to be commit 9391f6f80461be2b214a881782aecf7df8a4aba3)
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/config.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/scripting/python/config.m4 b/source4/scripting/python/config.m4
index 2142cd9abd..aac98ebc60 100644
--- a/source4/scripting/python/config.m4
+++ b/source4/scripting/python/config.m4
@@ -22,6 +22,8 @@ AC_DEFUN([TRY_LINK_PYTHON],
CFLAGS="$CFLAGS $2"
AC_TRY_LINK([
+ /* we have our own configure tests */
+ #define Py_PYCONFIG_H 1
#include <Python.h>
#include <stdlib.h>
],[