diff options
author | Tim Potter <tpot@samba.org> | 2002-11-05 02:00:36 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-11-05 02:00:36 +0000 |
commit | b0c440824d1780c62dde2caa2bd58756aaf78b16 (patch) | |
tree | d15f90e4034bd7449b1fc92faedf1464ba323be0 /source3/Makefile.in | |
parent | fd59cd42833c0bce9460d40ba6437eb04d48405c (diff) | |
download | samba-b0c440824d1780c62dde2caa2bd58756aaf78b16.tar.gz samba-b0c440824d1780c62dde2caa2bd58756aaf78b16.tar.bz2 samba-b0c440824d1780c62dde2caa2bd58756aaf78b16.zip |
Fix mysterious error message when running 'make python_{ext,install}'
without configuring with python.
(This used to be commit 01a89690a2e9d234188704c04e58b5dfa2e7d1f3)
Diffstat (limited to 'source3/Makefile.in')
-rw-r--r-- | source3/Makefile.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in index 6a7f21b311..89d15a2bb9 100644 --- a/source3/Makefile.in +++ b/source3/Makefile.in @@ -894,11 +894,17 @@ python_common_proto: $(PY_COMMON_PROTO_OBJ) python_ext: $(PYTHON_OBJS) + @if test -z "$(PYTHON)"; then \ + echo Use the option --with-python to configure python; \ + exit 1; fi PYTHON_OBJS="$(PYTHON_OBJS)" PYTHON_CFLAGS="$(CFLAGS) $(CPPFLAGS) $(FLAGS)" \ - LIBS="$(LIBS)" \ +x1 LIBS="$(LIBS)" \ $(PYTHON) python/setup.py build python_install: $(PYTHON_OBJS) + @if test -z "$(PYTHON)"; then \ + echo Use the option --with-python to configure python; \ + exit 1; fi PYTHON_OBJS="$(PYTHON_OBJS)" PYTHON_CFLAGS="$(CFLAGS) $(CPPFLAGS)" \ LIBS="$(LIBS)" \ $(PYTHON) python/setup.py install |