diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-12-13 08:36:03 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:49:50 +0100 |
commit | 8530e8429ac7b12f4bde285af2b7933610461253 (patch) | |
tree | 92535c1d1371c043fed334cad5f7d8dcc7eea12d /source4 | |
parent | 026d67675ca86e2e0c8ca412bb2f22698d26c158 (diff) | |
download | samba-8530e8429ac7b12f4bde285af2b7933610461253.tar.gz samba-8530e8429ac7b12f4bde285af2b7933610461253.tar.bz2 samba-8530e8429ac7b12f4bde285af2b7933610461253.zip |
r26422: build: let configure print out if we have working python module support
metze
(This used to be commit dfb9d704d053455d636d4f9d9d49cbfb70ada53e)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/scripting/python/config.m4 | 18 |
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 |