From patchwork Tue Apr 26 19:27:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giuseppe Longo X-Patchwork-Id: 615118 X-Patchwork-Delegate: kadlec@blackhole.kfki.hu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3qvY5x5f3Mz9s5g for ; Wed, 27 Apr 2016 05:28:05 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=k9UMVhqf; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752255AbcDZT2E (ORCPT ); Tue, 26 Apr 2016 15:28:04 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:35301 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751772AbcDZT2D (ORCPT ); Tue, 26 Apr 2016 15:28:03 -0400 Received: by mail-wm0-f68.google.com with SMTP id e201so7006005wme.2 for ; Tue, 26 Apr 2016 12:28:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=oQrkHqQ3TRT40m9veANWBMGhucHfzCjsrnL1NZlFtZs=; b=k9UMVhqfiVkGt3c2BrRTrHFMOaSFFtZvULm7ZJ1EOaGTOeY7t9Yp7zzpGNzdWBNgyS ijF80hSqkeLdTIzQBRR6TOwLjOC9AUAlDnpbqGWCV/h9QfaEEUB9lDwAal0mfNWGypEC KJbrDNlhTjFHCZ0e857AmJBSSVUluMoUpblJJrZKZfYo+tAprQitFUCFweRppeFf019W uDbRjYou5LtINqb2rHQfjuPZ19M9Yk7vDmoLCctnnQEEUeBzRcKK2WxGQ9cw+iQNHGcz OW+OHh0wJoedUxGY12wXKuZ4/U5XjgREh5f/NWydNvBaQ56GkluwQXw03zuqJca0Hwv7 XjpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=oQrkHqQ3TRT40m9veANWBMGhucHfzCjsrnL1NZlFtZs=; b=EA8clHWfIRz88fY/K9VLZ02k0vkj08MAoqYCgw21pfbv0EuNqgBah9+X/Hr038Vsev 050BO8uw83PIIG9MLzIT6n4gdPRdyxQqyeV/GSm5ajc76mAwFtDlyJq2bynMtwyCKZ3F wHh+gvtVdIlUmCx+Ujtox0TOwvGSgesBXyR3wyKHBC69e0BD+QoIIxu7IlakVOMpcL/5 2xtSdZDu6PTgzrVDqpUTFSesYpRotgJbGqUxOSKP55K4Gr3OWwO1DK8MGWInf4hSOJuJ ZtnX3P9GlXIK8bUet+ya1oMrTeyhbfh9WZQpKtqxp1YWkn6bJUa/VHlAAJCVmpmStJPX vttA== X-Gm-Message-State: AOPr4FU0fSw7F4bcyTt9gUenbYxg/df2+sk4JP3Hf1O6TZAj7OdfS87MfTGEc1z5wrlASQ== X-Received: by 10.28.31.73 with SMTP id f70mr5897866wmf.77.1461698881666; Tue, 26 Apr 2016 12:28:01 -0700 (PDT) Received: from tiger.lan ([151.45.23.157]) by smtp.gmail.com with ESMTPSA id c16sm4629255wme.16.2016.04.26.12.28.00 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 26 Apr 2016 12:28:00 -0700 (PDT) From: Giuseppe Longo X-Google-Original-From: Giuseppe Longo To: netfilter-devel@vger.kernel.org Cc: Giuseppe Longo Subject: [iptables PATCH] configure: make libmnl and libnftnl hard requirements Date: Tue, 26 Apr 2016 21:27:58 +0200 Message-Id: <1461698878-4459-1-git-send-email-giuseppe@glongo.it> X-Mailer: git-send-email 2.5.0 Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org From: Giuseppe Longo Iptables building is broken if either libmnl orlibnftnl is not installed on the system. Configure script actually checks if libmnl and libnftnl are installed, but doesn't exit if they are not. Signed-off-by: Giuseppe Longo --- configure.ac | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/configure.ac b/configure.ac index 12bffa9..b170add 100644 --- a/configure.ac +++ b/configure.ac @@ -122,8 +122,26 @@ AM_CONDITIONAL([HAVE_LIBNFNETLINK], [test "$nfnetlink" = 1]) if test "x$enable_nftables" = "xyes"; then PKG_CHECK_MODULES([libmnl], [libmnl >= 1.0], [mnl=1], [mnl=0]) + if test "$mnl" = 0; + then + echo "*** Error: No suitable libmnl found. ***" + echo " Please install the 'libmnl' package" + echo " Or consider --disable-nftables to skip" + echo " iptables-compat over nftables support." + exit 1 + fi + PKG_CHECK_MODULES([libnftnl], [libnftnl >= 1.0.5], [nftables=1], [nftables=0]) + if test "$nftables" = 0; + then + echo "*** Error: no suitable libnftnl found. ***" + echo " Please install the 'libnftnl' package" + echo " Or consider --disable-nftables to skip" + echo " iptables-compat over nftables support." + exit 1 + fi + AM_PROG_LEX AC_PROG_YACC