From 3613a51c4a6b2664cb5719413239bbabf889ba95 Mon Sep 17 00:00:00 2001 From: Christian Hofstaedtler Date: Sat, 24 Aug 2013 21:54:25 +0200 Subject: [PATCH] Show built-in features in --version output --- configure.ac | 6 ++++++ pdns/pdns_recursor.cc | 1 + pdns/receiver.cc | 1 + pdns/version.cc | 31 +++++++++++++++++++++++++++++++ pdns/version.hh | 1 + 5 files changed, 40 insertions(+) diff --git a/configure.ac b/configure.ac index 748e412260..4d79cc796d 100644 --- a/configure.ac +++ b/configure.ac @@ -269,6 +269,11 @@ then AC_DEFINE(HAVE_BOTAN18,1,[If we have botan 1.8]) fi +if test "x$enable_cryptopp" = "xyes" +then + AC_DEFINE(HAVE_CRYPTOPP,1,[If we have cryptopp]) +fi + AC_ARG_ENABLE(remotebackend_http, AC_HELP_STRING([--enable-remotebackend-http],[enable HTTP connector for remotebackend]),[enable_remotebackend_http=yes], [enable_remotebackend_http=no]) AC_MSG_CHECKING(whether to enable http connector in remotebackend) AC_MSG_RESULT($enable_remotebackend_http) @@ -327,6 +332,7 @@ AC_ARG_WITH(socketdir, AC_HELP_STRING([--with-socketdir],[where the controlsocke AC_SUBST(moduledirs) AC_SUBST(moduleobjects) AC_SUBST(modulelibs) +AC_DEFINE_UNQUOTED(PDNS_MODULES,"$modules", [Built-in modules]) AC_MSG_CHECKING(whether we will be building the server) AC_ARG_ENABLE(pdns-server, diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index f489004866..146edecb64 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -2115,6 +2115,7 @@ int main(int argc, char **argv) } if(::arg().mustDo("version")) { showProductVersion(); + showBuildConfiguration(); exit(99); } diff --git a/pdns/receiver.cc b/pdns/receiver.cc index b5cb44d65a..bc514a13ec 100644 --- a/pdns/receiver.cc +++ b/pdns/receiver.cc @@ -425,6 +425,7 @@ int main(int argc, char **argv) if(::arg().mustDo("version")) { showProductVersion(); + showBuildConfiguration(); exit(99); } diff --git a/pdns/version.cc b/pdns/version.cc index 3eceba95f5..8cb17a36b5 100644 --- a/pdns/version.cc +++ b/pdns/version.cc @@ -46,6 +46,37 @@ void showProductVersion() "according to the terms of the GPL version 2." << endl; } +void showBuildConfiguration() +{ + theL()<