r26422: build: let configure print out if we have working python module support
authorStefan Metzmacher <metze@samba.org>
Thu, 13 Dec 2007 07:36:03 +0000 (08:36 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 04:49:50 +0000 (05:49 +0100)
metze
(This used to be commit dfb9d704d053455d636d4f9d9d49cbfb70ada53e)

source4/scripting/python/config.m4

index 64a8c70b41d8c9703faeac81a2ebde16ee4680a6..8c4225175ef249a98f85e17d0191384f952ecaff 100644 (file)
@@ -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