Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 1 | From 3b5b6079512af8af50d0a43d4c1c218f5ba1b302 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Wed, 18 Mar 2015 00:27:10 +0000 |
| 4 | Subject: [PATCH] sysdeps/gnu/configure.ac: Set libc_cv_rootsbindir only if its |
| 5 | empty |
| 6 | |
| 7 | This ensures that it can be set in build environment |
| 8 | |
| 9 | Upstream-Status: Pending |
| 10 | Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com> |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | --- |
| 13 | sysdeps/gnu/configure | 2 +- |
| 14 | sysdeps/gnu/configure.ac | 2 +- |
| 15 | 2 files changed, 2 insertions(+), 2 deletions(-) |
| 16 | |
| 17 | diff --git a/sysdeps/gnu/configure b/sysdeps/gnu/configure |
| 18 | index c15d1087e8..d30d6e37ae 100644 |
| 19 | --- a/sysdeps/gnu/configure |
| 20 | +++ b/sysdeps/gnu/configure |
| 21 | @@ -32,6 +32,6 @@ case "$prefix" in |
| 22 | else |
| 23 | libc_cv_localstatedir=$localstatedir |
| 24 | fi |
| 25 | - libc_cv_rootsbindir=/sbin |
| 26 | + libc_cv_rootsbindir=${libc_cv_rootsbindir:=/sbin} |
| 27 | ;; |
| 28 | esac |
| 29 | diff --git a/sysdeps/gnu/configure.ac b/sysdeps/gnu/configure.ac |
| 30 | index 634fe4de2a..492112e0fd 100644 |
| 31 | --- a/sysdeps/gnu/configure.ac |
| 32 | +++ b/sysdeps/gnu/configure.ac |
| 33 | @@ -21,6 +21,6 @@ case "$prefix" in |
| 34 | else |
| 35 | libc_cv_localstatedir=$localstatedir |
| 36 | fi |
| 37 | - libc_cv_rootsbindir=/sbin |
| 38 | + libc_cv_rootsbindir=${libc_cv_rootsbindir:=/sbin} |
| 39 | ;; |
| 40 | esac |