From: Kees Monshouwer Date: Fri, 25 Jul 2014 12:46:39 +0000 (+0200) Subject: also detect cryptopp X-Git-Tag: auth-3.4.0-rc1~20^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac6a3f6c2eec05727a03966047c23ebc0caef4fa;p=thirdparty%2Fpdns.git also detect cryptopp --- diff --git a/m4/pdns_with_cryptopp.m4 b/m4/pdns_with_cryptopp.m4 index 10d59e12b7..fc3f0907f0 100644 --- a/m4/pdns_with_cryptopp.m4 +++ b/m4/pdns_with_cryptopp.m4 @@ -9,10 +9,14 @@ AC_DEFUN([PDNS_WITH_CRYPTOPP],[ AM_CONDITIONAL([CRYPTOPP], [test "x$enable_cryptopp" != "xno"]) 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++])] - ) + PKG_CHECK_MODULES([CRYPTOPP], [libcrypto++], [ + AC_DEFINE([HAVE_CRYPTOPP], [1], [Define to 1 if you have crypto++]) + ],[ + PKG_CHECK_MODULES([CRYPTOPP], [cryptopp], + [AC_DEFINE([HAVE_CRYPTOPP], [1], [Define to 1 if you have cryptopp]) + ],[ + AC_MSG_ERROR([Could not find crypto++]) + ]) + ]) ]) ]) -