mirror of
https://github.com/samba-team/samba.git
synced 2025-01-17 02:05:21 +03:00
Add --with-python=PYTHONNAME configure option, so that the libraries
get linked for the appropriate version. (This used to be commit 2ea647bbfaba5a4ee7cb232ae1a21acbd2a9b5c6)
This commit is contained in:
parent
b15ffb766a
commit
01e7afadd6
@ -18,6 +18,7 @@ LDFLAGS=@LDFLAGS@
|
||||
LDSHFLAGS=@LDSHFLAGS@ @LDFLAGS@ @CFLAGS@
|
||||
AWK=@AWK@
|
||||
DYNEXP=@DYNEXP@
|
||||
PYTHON=@PYTHON@
|
||||
|
||||
TERMLDFLAGS=@TERMLDFLAGS@
|
||||
TERMLIBS=@TERMLIBS@
|
||||
@ -881,9 +882,8 @@ python_common_proto:
|
||||
$(PY_COMMON_PROTO_OBJ)
|
||||
|
||||
python_ext: $(PYTHON_OBJS)
|
||||
@echo python python/setup.py build
|
||||
@PYTHON_OBJS="$(PYTHON_OBJS)" PYTHON_CFLAGS="$(CFLAGS) $(CPPFLAGS)" \
|
||||
python python/setup.py build
|
||||
PYTHON_OBJS="$(PYTHON_OBJS)" PYTHON_CFLAGS="$(CFLAGS) $(CPPFLAGS)" \
|
||||
$(PYTHON) python/setup.py build
|
||||
|
||||
# revert to the previously installed version
|
||||
revert:
|
||||
|
1637
source3/configure
vendored
1637
source3/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -2806,6 +2806,19 @@ fi
|
||||
AC_SUBST(BUILD_POPT)
|
||||
AC_SUBST(FLAGS1)
|
||||
|
||||
#################################################
|
||||
# Check if the user wants Python
|
||||
|
||||
# At the moment, you can use this to set which Python binary to link
|
||||
# against. (Libraries built for Python2.2 can't be used by 2.1,
|
||||
# though they can coexist in different directories.) In the future
|
||||
# this might make the Python stuff be built by default.
|
||||
|
||||
AC_ARG_WITH(python,
|
||||
[ --with-python=PYTHONNAME build Python libraries],
|
||||
[ PYTHON=${withval-python} ])
|
||||
AC_SUBST(PYTHON)
|
||||
|
||||
#################################################
|
||||
# do extra things if we are running insure
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user