chiark / gitweb /
configure.ac, Makefile.am: More subsetting based on module availability.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 20 Feb 2016 17:17:51 +0000 (17:17 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 30 Apr 2016 17:11:39 +0000 (18:11 +0100)
Also check the mLib and CDB modules.

Makefile.am
configure.ac

index dbfa512..4c9a749 100644 (file)
@@ -50,20 +50,30 @@ endif
 
 ## Services.
 if HAVE_PYTHON
-SUBDIRS                        += svc
+if HAVE_PYMLIB
 SUBDIRS                        += py
+if HAVE_PYCDB
 SUBDIRS                        += peerdb
+SUBDIRS                        += svc
+endif
+endif
 endif
 
 ## Key-management.
+if HAVE_PYTHON
 if HAVE_PYCATACOMB
 SUBDIRS                        += keys
 endif
+endif
 
 ## Graphical monitor.
+if HAVE_PYTHON
+if HAVE_PYMLIB
 if HAVE_PYGTK
 SUBDIRS                        += mon
 endif
+endif
+endif
 
 ## Contributed stuff.
 SUBDIRS                        += contrib
index 004304c..6f11c66 100644 (file)
@@ -181,12 +181,16 @@ dnl Find out whether Python exists at all.
 AM_PATH_PYTHON([2.4], [python=yes], [python=no])
 AM_CONDITIONAL([HAVE_PYTHON], [test $python = yes])
 
-dnl Find out whether we can use Catacomb and GTK.
+dnl Find out whether we can use the various external modules.
 if test $python = yes; then
   AC_PYTHON_MODULE([pygtk])
+  AC_PYTHON_MODULE([cdb])
+  AC_PYTHON_MODULE([mLib])
   AC_PYTHON_MODULE([catacomb])
 fi
 AM_CONDITIONAL([HAVE_PYGTK], [test ${HAVE_PYMOD_PYGTK-no} = yes])
+AM_CONDITIONAL([HAVE_PYCDB], [test ${HAVE_PYMOD_CDB-no} = yes])
+AM_CONDITIONAL([HAVE_PYMLIB], [test ${HAVE_PYMOD_MLIB-no} = yes])
 AM_CONDITIONAL([HAVE_PYCATACOMB], [test ${HAVE_PYMOD_CATACOMB-no} = yes])
 
 dnl--------------------------------------------------------------------------