summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch
blob: 75adeca188f7f4ab65ceff6e13d90f48b72e70d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From c79222a9a5e3425c55e150edc0b7ac59c573aa2f Mon Sep 17 00:00:00 2001
From: Phil Blundell <pb@pbcl.net>
Date: Mon, 24 Sep 2012 07:24:51 +0100
Subject: [PATCH] util-linux: Ensure that ${sbindir} is respected

util-linux: take ${sbindir} from the environment if it is set there
fix the test, the [ ] syntax was getting eaten by autoconf

Signed-off-by: Phil Blundell <pb@pbcl.net>
Signed-off-by: Saul Wold <sgw@linux.intel.com
Upstream-Status: Inappropriate [configuration]

---
 configure.ac | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 36c24b4..890212f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -102,7 +102,10 @@ AC_SUBST([runstatedir])
 usrbin_execdir='${exec_prefix}/bin'
 AC_SUBST([usrbin_execdir])
 
-usrsbin_execdir='${exec_prefix}/sbin'
+if test -z "$usrsbin_execdir" ;
+then
+   usrsbin_execdir='${exec_prefix}/sbin'
+fi
 AC_SUBST([usrsbin_execdir])
 
 AS_CASE([$libdir],