summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/config.m418
1 files changed, 13 insertions, 5 deletions
diff --git a/source4/scripting/python/config.m4 b/source4/scripting/python/config.m4
index 64a8c70b41..8c4225175e 100644
--- a/source4/scripting/python/config.m4
+++ b/source4/scripting/python/config.m4
@@ -120,6 +120,7 @@ AC_SUBST(PYTHON_EXTRA_LDFLAGS)
SMB_EXT_LIB(LIBPYTHON, [$PYTHON_LDFLAGS], [$PYTHON_CPPFLAGS])
+AC_MSG_CHECKING(working python module support)
if test x$working_python = xyes
then
ac_save_LIBS="$LIBS"
@@ -128,14 +129,21 @@ then
CFLAGS="$CFLAGS $PYTHON_CPPFLAGS"
AC_TRY_LINK([
-#include <Python.h>
-#include <stdlib.h>],
-[Py_InitModule(NULL, NULL);],
- [SMB_ENABLE(LIBPYTHON,YES)],
- [SMB_ENABLE(LIBPYTHON,NO)])
+ #include <Python.h>
+ #include <stdlib.h>
+ ],[
+ Py_InitModule(NULL, NULL);
+ ],[
+ SMB_ENABLE(LIBPYTHON,YES)
+ AC_MSG_RESULT([yes])
+ ],[
+ SMB_ENABLE(LIBPYTHON,NO)
+ AC_MSG_RESULT([no])
+ ])
LIBS="$ac_save_LIBS"
CFLAGS="$ac_save_CFLAGS"
else
SMB_ENABLE(LIBPYTHON,NO)
+ AC_MSG_RESULT([no])
fi