svn commit: samba r26422 - in
branches/SAMBA_4_0/source/scripting/python: .
metze at samba.org
metze at samba.org
Thu Dec 13 08:36:03 GMT 2007
Author: metze
Date: 2007-12-13 08:36:03 +0000 (Thu, 13 Dec 2007)
New Revision: 26422
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=26422
Log:
build: let configure print out if we have working python module support
metze
Modified:
branches/SAMBA_4_0/source/scripting/python/config.m4
Changeset:
Modified: branches/SAMBA_4_0/source/scripting/python/config.m4
===================================================================
--- branches/SAMBA_4_0/source/scripting/python/config.m4 2007-12-13 08:34:51 UTC (rev 26421)
+++ branches/SAMBA_4_0/source/scripting/python/config.m4 2007-12-13 08:36:03 UTC (rev 26422)
@@ -120,6 +120,7 @@
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 @@
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
More information about the samba-cvs
mailing list