From abdee8d991dd929d09a5d22cdf08e77fcbd64e54 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Tue, 14 Aug 2007 19:20:34 +0200 Subject: [PATCH] Make building the daemon optional --- configure.in | 5 +++++ daemon/Makefile.am | 2 ++ doc/man/Makefile.am | 2 ++ 3 files changed, 9 insertions(+) diff --git a/configure.in b/configure.in index bbeca73..6585ddd 100644 --- a/configure.in +++ b/configure.in @@ -90,6 +90,10 @@ DOLDA_PKG([HAS_LIBGAIM], [PKG_CHECK_MODULES(GAIM, gaim, [], [HAS_LIBGAIM=no])], DOLDA_PKG([HAS_LIBPURPLE], [PKG_CHECK_MODULES(PURPLE, purple, [], [HAS_LIBPURPLE=no])], [DOLDA_CHECK_HEADER(plugin.h, [], [HAS_LIBPURPLE=no], $PURPLE_CFLAGS)]) +# Daemon check +DOLDA_ENABLE(daemon, [ --enable-daemon Enable the daemon], yes, []) +AM_CONDITIONAL(DAEMON, test "$enable_daemon" = yes) + # Gtk GUI check DOLDA_ENABLE(gtk2ui, [ --enable-gtk2ui Enable the GTK2 user interface], yes, [HAS_GTK2 HAS_LIBXML]) @@ -260,6 +264,7 @@ autopackage/dcguile.apspec echo echo "Dolda Connect has been configured with the following settings:" echo +echo " Daemon: $enable_daemon" echo " PAM support: $pam_msg" echo " Kerberos 5 support: $krb_msg" echo " GTK2 user interface: $enable_gtk2ui" diff --git a/daemon/Makefile.am b/daemon/Makefile.am index 3ff8bef..1600b31 100644 --- a/daemon/Makefile.am +++ b/daemon/Makefile.am @@ -1,4 +1,6 @@ +if DAEMON bin_PROGRAMS=doldacond +endif doldacond_SOURCES= main.c \ search.c \ search.h \ diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am index 813f5b3..e50bfd3 100644 --- a/doc/man/Makefile.am +++ b/doc/man/Makefile.am @@ -1,4 +1,6 @@ +if DAEMON man_MANS = doldacond.conf.5 doldacond.8 +endif BUILT_SOURCES = doldacond.conf.5 doldacond.conf.5: doldacond.conf.5.in ../../daemon/*.c mkcvman -- 2.11.0