]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
report built-in PolarSSL version 1818/head
authorKees Monshouwer <mind04@monshouwer.org>
Mon, 13 Oct 2014 23:12:28 +0000 (01:12 +0200)
committermind04 <mind04@monshouwer.org>
Mon, 13 Oct 2014 23:12:28 +0000 (01:12 +0200)
m4/pdns_with_system_polarssl.m4
pdns/version.cc

index 846ac7c2f5166c58a6974d05712e8c1da063305b..2f612516c99dc99029b71cf3417015bda60d0e31 100644 (file)
@@ -35,6 +35,7 @@ AC_DEFUN([PDNS_WITH_SYSTEM_POLARSSL],[
     POLARSSL_CFLAGS=
     POLARSSL_LIBS=-lpolarssl
     POLARSSL_SUBDIR=
+    AC_DEFINE([POLARSSL_SYSTEM], [1], [Defined if system PolarSSL is used])
     ],[
     AS_IF([test "x$with_system_polarssl" = "xyes"],[
       AC_MSG_ERROR([use of system polarssl requested but not found])]
index 67bcf0d0adadf4c0d17f5f244092a6a467c0954b..167eb3be623f01e942de5fa913968a230e2d91c6 100644 (file)
@@ -23,6 +23,7 @@
 #include "logger.hh"
 #include "version.hh"
 #include "version_generated.h"
+#include <polarssl/version.h>
 
 static ProductType productType;
 
@@ -99,6 +100,9 @@ void showBuildConfiguration()
   // Auth only
   theL()<<Logger::Warning<<"Built-in modules: "<<PDNS_MODULES<<endl;
 #endif
+#ifndef POLARSSL_SYSTEM
+  theL()<<Logger::Warning<<"Built-in PolarSSL: "<<POLARSSL_VERSION_STRING<<endl;
+#endif
 }
 
 string fullVersionString()