Make the client application optional
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 22 Dec 2008 12:18:53 +0000 (13:18 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 22 Dec 2008 12:18:53 +0000 (13:18 +0100)
bootstrap-configure
client/Makefile.am
configure.ac

index 0714169..5a7e4dc 100755 (executable)
@@ -16,4 +16,4 @@ fi
                --mandir=/usr/share/man \
                --localstatedir=/var \
                --sysconfdir=/etc \
-               --disable-fake $*
+               --enable-client $*
index e198c8f..4dc1608 100644 (file)
@@ -1,9 +1,11 @@
 
+if CLIENT
 noinst_PROGRAMS = cm
 
 cm_SOURCES = main.c
 
 cm_LDADD = @DBUS_LIBS@
+endif
 
 AM_CFLAGS = @DBUS_CFLAGS@
 
index fea1130..15acdbc 100644 (file)
@@ -86,6 +86,10 @@ AC_SUBST(POLKIT_CFLAGS)
 AC_SUBST(POLKIT_LIBS)
 AM_CONDITIONAL(POLKIT, test "${polkit_found}" = "yes")
 
+AC_ARG_ENABLE(client, AC_HELP_STRING([--enable-client],
+               [enable command line client]), [enable_client=${enableval}])
+AM_CONDITIONAL(CLIENT, test "${enable_client}" = "yes")
+
 AC_ARG_ENABLE(fake, AC_HELP_STRING([--enable-fake],
                        [enable fake plugin]), [enable_fake=${enableval}])
 AM_CONDITIONAL(FAKE, test "${enable_fake}" = "yes")