From 0ff5c0a34efbeaf33c509af9d33c9f2092ce1559 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sun, 5 Oct 2014 11:50:02 +0200 Subject: [PATCH] Use an automake variable for server building Since automake knows all possible values of this variable up front, it can determine what goes into DIST_SUBDIRS automagically. --- Makefile.am | 10 +++++++--- configure.ac | 7 +------ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Makefile.am b/Makefile.am index fb6e263788..1d25c4c5b0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,10 @@ -SUBDIRS=modules codedocs @programdescend@ -DIST_SUBDIRS=modules codedocs pdns -EXTRA_DIST=README INSTALL NOTICE debian pdns.spec \ +SUBDIRS = modules codedocs + +if WITH_PDNS_SERVER + SUBDIRS += pdns +endif + +EXTRA_DIST=README INSTALL NOTICE debian pdns.spec \ codedocs/doxygen.conf contrib/powerdns.solaris.init.d \ contrib/systemd-pdns.service contrib/systemd-pdns-recursor.service \ bootstrap build-scripts/semistaticg++ pdns/docs/dnstcpbench.1 \ diff --git a/configure.ac b/configure.ac index 8240225e54..eddc99a49a 100644 --- a/configure.ac +++ b/configure.ac @@ -236,12 +236,7 @@ AC_ARG_ENABLE([pdns-server], [enable_pdns_server=yes] ) AC_MSG_RESULT([$enable_pdns_server]) - -AS_IF([test "x$enable_pdns_server" = "xyes"], - [programdescend=pdns] -) - -AC_SUBST(programdescend) +AM_CONDITIONAL([WITH_PDNS_SERVER],[test "x$enable_pdns_server" != "xno"]) AC_ARG_ENABLE([gcc-skip-locking], [AS_HELP_STRING([--enable-gcc-skip-locking],[if we should forcefully skip gcc locking @<:@default=no@:>@])], -- 2.47.2