mirror of
https://github.com/samba-team/samba.git
synced 2025-12-09 00:23:50 +03:00
r26576: Allow the static module loading code to be used for the Python modules.
Simplify the way module initialization functions are handled.
This commit is contained in:
committed by
Stefan Metzmacher
parent
03270c5ffd
commit
ba8be2dfc0
@@ -24,7 +24,7 @@ fi
|
||||
PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
|
||||
PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags`
|
||||
|
||||
SMB_EXT_LIB(LIBPYTHON, [$PYTHON_LDFLAGS], [$PYTHON_CFLAGS])
|
||||
SMB_EXT_LIB(EXT_LIB_PYTHON, [$PYTHON_LDFLAGS], [$PYTHON_CFLAGS])
|
||||
|
||||
AC_MSG_CHECKING(working python module support)
|
||||
if test x$working_python = xyes
|
||||
@@ -40,10 +40,12 @@ then
|
||||
],[
|
||||
Py_InitModule(NULL, NULL);
|
||||
],[
|
||||
SMB_ENABLE(LIBPYTHON,YES)
|
||||
SMB_ENABLE(EXT_LIB_PYTHON,YES)
|
||||
SMB_ENABLE(smbpython,YES)
|
||||
SMB_ENABLE(LIBPYTHON,YES)
|
||||
AC_MSG_RESULT([yes])
|
||||
],[
|
||||
SMB_ENABLE(EXT_LIB_PYTHON,NO)
|
||||
SMB_ENABLE(LIBPYTHON,NO)
|
||||
SMB_ENABLE(smbpython,NO)
|
||||
AC_MSG_RESULT([no])
|
||||
@@ -52,7 +54,8 @@ then
|
||||
LIBS="$ac_save_LIBS"
|
||||
CFLAGS="$ac_save_CFLAGS"
|
||||
else
|
||||
SMB_ENABLE(LIBPYTHON,NO)
|
||||
SMB_ENABLE(EXT_LIB_PYTHON,NO)
|
||||
SMB_ENABLE(LIBPYTHONyy,NO)
|
||||
SMB_ENABLE(smbpython,NO)
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user