configure.ac: fix ldns test

When running ./configure --with-ldns, if ldns-config cannot be found, we
add -Iyes/include to CPPFLAGS and -Lyes/lib to LDFLAGS. Fix that.
This commit is contained in:
Ruben Kerkhof 2020-01-20 13:58:11 +01:00 committed by Darren Tucker
parent 6089abf715
commit 0c428c0e99

View File

@ -1533,8 +1533,6 @@ AC_ARG_WITH(ldns,
if test "x$withval" = "xyes" ; then
AC_PATH_TOOL([LDNSCONFIG], [ldns-config], [no])
if test "x$LDNSCONFIG" = "xno"; then
CPPFLAGS="$CPPFLAGS -I${withval}/include"
LDFLAGS="$LDFLAGS -L${withval}/lib"
LIBS="-lldns $LIBS"
ldns=yes
else