mirror of
https://github.com/samba-team/samba.git
synced 2025-07-02 20:59:09 +03:00
committed by
Stefan Metzmacher
parent
3950e76a2f
commit
c14de3fd89
@ -3,6 +3,7 @@ AC_ARG_VAR([PYTHON_VERSION],[The installed Python
|
||||
will be appended to the Python interpreter
|
||||
canonical name.])
|
||||
|
||||
AC_PATH_PROG(SWIG,swig,no)
|
||||
AC_PATH_PROG([PYTHON],[python[$PYTHON_VERSION]])
|
||||
if test -z "$PYTHON"; then
|
||||
working_python=no
|
||||
@ -115,10 +116,9 @@ AC_SUBST(PYTHON_EXTRA_LDFLAGS)
|
||||
|
||||
SMB_EXT_LIB(LIBPYTHON, [$PYTHON_LDFLAGS], [$PYTHON_CPPFLAGS])
|
||||
|
||||
if test x$working_python = xyes
|
||||
if test x$working_python = xyes && test x$SWIG != xno
|
||||
then
|
||||
SMB_ENABLE(LIBPYTHON,YES)
|
||||
else
|
||||
SMB_ENABLE(LIBPYTHON,NO)
|
||||
fi
|
||||
|
||||
|
@ -20,7 +20,7 @@ swig: pythonmods
|
||||
.SUFFIXES: _wrap.c .i
|
||||
|
||||
.i_wrap.c:
|
||||
swig -Wall -I$(srcdir)/scripting/swig -python $<
|
||||
$(SWIG) -Wall -I$(srcdir)/scripting/swig -python $<
|
||||
|
||||
clean::
|
||||
@echo "Removing SWIG output files"
|
||||
|
Reference in New Issue
Block a user