freebsd-ports/dns/powerdns-recursor/files/patch-m4_pdns__check__libcrypto.m4
Dima Panov e34e3ec755 dns/powerdns-recursor: unbreak build with lua54
Switch to autoreconf to avoid heavy multilina patching of configure script

PR:		253078
Submitted by:	fluffy
Approved by:	maintainer
MFH:		2021Q1
2021-02-06 02:09:27 +00:00

15 lines
708 B
Text

--- m4/pdns_check_libcrypto.m4.orig 2020-11-16 16:30:04 UTC
+++ m4/pdns_check_libcrypto.m4
@@ -75,8 +75,10 @@ AC_DEFUN([PDNS_CHECK_LIBCRYPTO], [
for ssldir in $ssldirs; do
AC_MSG_CHECKING([for openssl/crypto.h in $ssldir])
if test -f "$ssldir/include/openssl/crypto.h"; then
- LIBCRYPTO_INCLUDES="-I$ssldir/include"
- LIBCRYPTO_LDFLAGS="-L$ssldir/lib"
+ if test $ssldir != /usr; then
+ LIBCRYPTO_INCLUDES="-I$ssldir/include"
+ LIBCRYPTO_LDFLAGS="-L$ssldir/lib"
+ fi
LIBCRYPTO_LIBS="-lcrypto"
found=true
AC_MSG_RESULT([yes])