Fix warnings when Python dev libs are not installed.
authorJelmer Vernooij <jelmer@samba.org>
Mon, 14 Sep 2009 14:12:48 +0000 (16:12 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Mon, 14 Sep 2009 14:12:48 +0000 (16:12 +0200)
Makefile.settings.in

index 8b28924..1a0a8ab 100644 (file)
@@ -36,8 +36,13 @@ HAVE_PYTHON = @HAVE_PYTHON@
 PYTHON = @PYTHON@
 PYTHON_PREFIX = @PYTHON_PREFIX@
 PYTHON_CONFIG = @PYTHON_CONFIG@
+ifeq ($(PYTHON_CONFIG), )
+PYTHON_CFLAGS = 
+PYTHON_LDFLAGS = 
+else
 PYTHON_CFLAGS = `$(PYTHON_CONFIG) --cflags`
 PYTHON_LDFLAGS = `$(PYTHON_CONFIG) --libs`
+endif
 IRCDTORTURE = @IRCDTORTURE@
 XSLTPROC = @XSLTPROC@
 EXTRA_INSTALL_TARGETS = @EXTRA_INSTALL_TARGETS@