naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
87177b
From 03bc25c8afdcb8fb69543ec9a7f5f0d7cb176dd6 Mon Sep 17 00:00:00 2001
87177b
Message-Id: <03bc25c8afdcb8fb69543ec9a7f5f0d7cb176dd6.1637749821.git.aclaudi@redhat.com>
87177b
In-Reply-To: <cef782ca658d695c5ca2d174ba1f89cba6bd84e5.1637749821.git.aclaudi@redhat.com>
87177b
References: <cef782ca658d695c5ca2d174ba1f89cba6bd84e5.1637749821.git.aclaudi@redhat.com>
87177b
From: Andrea Claudi <aclaudi@redhat.com>
87177b
Date: Wed, 24 Nov 2021 11:28:08 +0100
87177b
Subject: [PATCH] configure: support --param=value style
87177b
87177b
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2009355
87177b
Upstream Status: iproute2.git commit 4b8bca5f
87177b
87177b
commit 4b8bca5f9e3e6f210b1036166dc98801e76d8ee5
87177b
Author: Andrea Claudi <aclaudi@redhat.com>
87177b
Date:   Thu Oct 14 10:50:53 2021 +0200
87177b
87177b
    configure: support --param=value style
87177b
87177b
    This commit makes it possible to specify values for configure params
87177b
    using the common autotools configure syntax '--param=value'.
87177b
87177b
    Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
87177b
    Acked-by: Phil Sutter <phil@nwl.cc>
87177b
    Signed-off-by: David Ahern <dsahern@kernel.org>
87177b
---
87177b
 configure | 6 ++++++
87177b
 1 file changed, 6 insertions(+)
87177b
87177b
diff --git a/configure b/configure
87177b
index 26e06eb8..9a2645d9 100755
87177b
--- a/configure
87177b
+++ b/configure
87177b
@@ -504,12 +504,18 @@ else
87177b
 			--include_dir)
87177b
 				shift
87177b
 				INCLUDE="$1" ;;
87177b
+			--include_dir=*)
87177b
+				INCLUDE="${1#*=}" ;;
87177b
 			--libbpf_dir)
87177b
 				shift
87177b
 				LIBBPF_DIR="$1" ;;
87177b
+			--libbpf_dir=*)
87177b
+				LIBBPF_DIR="${1#*=}" ;;
87177b
 			--libbpf_force)
87177b
 				shift
87177b
 				LIBBPF_FORCE="$1" ;;
87177b
+			--libbpf_force=*)
87177b
+				LIBBPF_FORCE="${1#*=}" ;;
87177b
 			-h | --help)
87177b
 				usage 0 ;;
87177b
 			--*)
87177b
-- 
87177b
2.31.1
87177b