]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - pdns/version.cc
Show built-in features in --version output
[thirdparty/pdns.git] / pdns / version.cc
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;