From 8530e8429ac7b12f4bde285af2b7933610461253 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 13 Dec 2007 08:36:03 +0100 Subject: r26422: build: let configure print out if we have working python module support metze (This used to be commit dfb9d704d053455d636d4f9d9d49cbfb70ada53e) --- source4/scripting/python/config.m4 | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'source4') 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 -#include ], -[Py_InitModule(NULL, NULL);], - [SMB_ENABLE(LIBPYTHON,YES)], - [SMB_ENABLE(LIBPYTHON,NO)]) + #include + #include + ],[ + 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 -- cgit