diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-08-06 12:04:05 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-08-06 12:04:05 +0300 |
commit | aab16a0274277360816419a91cafcc837e00dd6d (patch) | |
tree | c77ccf37ee8658a0a32a00c22e5e25cb850c2e06 /python/Makefile.am | |
parent | 91dc76dab02f6b88eb52dd86136bade7abc767f4 (diff) | |
download | librpm-tizen-aab16a0274277360816419a91cafcc837e00dd6d.tar.gz librpm-tizen-aab16a0274277360816419a91cafcc837e00dd6d.tar.bz2 librpm-tizen-aab16a0274277360816419a91cafcc837e00dd6d.zip |
Allow building without python-devel.
The patch below adds a check for presence of Python.h to configure.ac
and applies automake-conditionals to switch off building rpm's python
bindings if Python.h can't be found.
Patch from Ralf Corsepius.
Diffstat (limited to 'python/Makefile.am')
-rw-r--r-- | python/Makefile.am | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/Makefile.am b/python/Makefile.am index a143b2b82..b6b647bd2 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -2,11 +2,10 @@ LINT = splint +if PYTHON pylibdir = @WITH_PYTHON_LIB@ pyincdir = @WITH_PYTHON_INCLUDE@ -SUBDIRS = - EXTRA_DIST = system.h rpmdebug-py.c rpm/__init__.py AM_CPPFLAGS = -I. \ @@ -61,3 +60,5 @@ splint_srcs = \ .PHONY: lint lint: $(LINT) $(DEFS) $(AM_CPPFLAGS) $(splint_srcs) + +endif |