--- a/configure
+++ b/configure
@@ -368,7 +368,7 @@ check_tirpc()
 
 check_mnl()
 {
-	if ${PKG_CONFIG} libmnl --exists; then
+	if [ "${HAVE_MNL}" = "y" ] && ${PKG_CONFIG} libmnl --exists; then
 		echo "HAVE_MNL:=y" >>$CONFIG
 		echo "yes"
 
