]> granicus.if.org Git - pdns/commitdiff
Actually check if libcrypto++ is installed
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 23 Jul 2014 09:34:58 +0000 (11:34 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 23 Jul 2014 09:34:58 +0000 (11:34 +0200)
m4/pdns_with_cryptopp.m4
pdns/Makefile.am

index 1e4cbefa410eef65f376457fe7f5b3845f9bb076..10d59e12b71003ab2258de685ad0fbea2e126ede 100644 (file)
@@ -8,8 +8,11 @@ AC_DEFUN([PDNS_WITH_CRYPTOPP],[
   AC_MSG_RESULT([$enable_cryptopp])
   AM_CONDITIONAL([CRYPTOPP], [test "x$enable_cryptopp" != "xno"])
 
-  AS_IF([test "x$enable_cryptopp" != "xno"],
-    [AC_DEFINE([HAVE_CRYPTOPP], [1], [Define to 1 if you have crypto++])]
-  )
+  AS_IF([test "x$enable_cryptopp" != "xno"], [
+    PKG_CHECK_MODULES([CRYPTOPP], [libcrypto++],
+      [AC_DEFINE([HAVE_CRYPTOPP], [1], [Define to 1 if you have crypto++])],
+      [AC_MSG_ERROR([Could not find crypto++])]
+    )
+  ])
 ])
 
index 430fb671f4929b94ab6cd27ce13274ec4f5ba9a7..a1d72363611d09faae7943354421ac7af995a2c4 100644 (file)
@@ -84,7 +84,7 @@ endif
 
 if CRYPTOPP
 pdns_server_SOURCES += cryptoppsigners.cc
-pdns_server_LDADD += -lcryptopp
+pdns_server_LDADD += $(CRYPTOPP_LIBS)
 endif
 
 if SQLITE3