]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Show built-in features in --version output 972/head
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Sat, 24 Aug 2013 19:54:25 +0000 (21:54 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Sat, 24 Aug 2013 19:57:11 +0000 (21:57 +0200)
configure.ac
pdns/pdns_recursor.cc
pdns/receiver.cc
pdns/version.cc
pdns/version.hh

index 748e4122602a643d4160dbf918e45cd4dec2a3e8..4d79cc796d82848e6332a4971a450d66df2ae0a6 100644 (file)
@@ -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,
index f48900486680691018fe0b8dbaf801a2c5fcbf11..146edecb6486f2b7f7db23e90cc11027846cbb75 100644 (file)
@@ -2115,6 +2115,7 @@ int main(int argc, char **argv)
     }
     if(::arg().mustDo("version")) {
       showProductVersion();
+      showBuildConfiguration();
       exit(99);
     }
 
index b5cb44d65ae7c867065aba9785a43adea5df035e..bc514a13ecf32ef3e4ec8958fcdd28aae66ee2f1 100644 (file)
@@ -425,6 +425,7 @@ int main(int argc, char **argv)
     
     if(::arg().mustDo("version")) {
       showProductVersion();
+      showBuildConfiguration();
       exit(99);
     }
 
index 3eceba95f599286fd1acc2981f1d66df3f467b4c..8cb17a36b5d195b9c8e4e7c4988c9b84598528a0 100644 (file)
@@ -46,6 +46,37 @@ void showProductVersion()
     "according to the terms of the GPL version 2." << endl;
 }
 
+void showBuildConfiguration()
+{
+  theL()<<Logger::Warning<<"Features: "<<
+#ifdef HAVE_BOTAN110
+    "botan1.10 " <<
+#endif
+#ifdef HAVE_BOTAN18
+    "botan1.8" <<
+#endif
+#ifdef HAVE_CRYPTOPP
+    "cryptopp " <<
+#endif
+#ifdef HAVE_LIBDL
+    "libdl " <<
+#endif
+#ifdef HAVE_LUA
+    "lua " <<
+#endif
+#ifdef REMOTEBACKEND_HTTP
+    "remotebackend-http" <<
+#endif
+#ifdef VERBOSELOG
+    "verboselog" <<
+#endif
+    endl;
+#ifdef PDNS_MODULES
+  // Auth only
+  theL()<<Logger::Warning<<"Built-in modules: "<<PDNS_MODULES<<endl;
+#endif
+}
+
 string fullVersionString()
 {
   ostringstream s;
index 09058558da0f5765ce1b2e484b3fb236dd254a27..7e8f3fac287513d93273c4f57ebbbee33fc0e4b3 100644 (file)
@@ -22,6 +22,7 @@
 
 string compilerVersion();
 void showProductVersion();
+void showBuildConfiguration();
 string fullVersionString();
 void versionSetProduct(string product);