From: Gunnar Beutner Date: Sat, 16 Feb 2013 13:26:45 +0000 (+0100) Subject: Build fix: --disable-python didn't work. X-Git-Tag: v0.0.2~385 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76dcb2dc3362338b6110ef6663f0e0e6944fdd1d;p=icinga2 Build fix: --disable-python didn't work. --- diff --git a/icinga-app/Makefile.am b/icinga-app/Makefile.am index 25a87a6d7..3963c5a3a 100644 --- a/icinga-app/Makefile.am +++ b/icinga-app/Makefile.am @@ -29,7 +29,6 @@ icinga2_LDADD = \ ${top_builddir}/lib/base/libbase.la \ ${top_builddir}/lib/config/libconfig.la \ -dlopen ${top_builddir}/lib/icinga/libicinga.la \ - -dlopen ${top_builddir}/lib/python/libpython.la \ -dlopen ${top_builddir}/components/checker/checker.la \ -dlopen ${top_builddir}/components/replication/replication.la \ -dlopen ${top_builddir}/components/compat/compat.la \ @@ -37,3 +36,8 @@ icinga2_LDADD = \ -dlopen ${top_builddir}/components/delegation/delegation.la \ -dlopen ${top_builddir}/components/demo/demo.la \ -dlopen ${top_builddir}/components/notification/notification.la + +if PYTHON_USE +icinga2_LDADD += \ + -dlopen ${top_builddir}/lib/python/libpython.la +endif