[v2,2/2] sysdeps/gnu/configure.ac: Set libc_cv_rootsbindir only if its empty

Message ID 20211209203557.1318333-2-raj.khem@gmail.com
State New, archived
Headers
Series [v2,1/2] Replace echo with printf builtin in nscd init script |

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent
dj/TryBot-32bit fail Patch caused testsuite regressions

Commit Message

Khem Raj Dec. 9, 2021, 8:35 p.m. UTC
  This ensures that it can be set in build environment

Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
v2: Improve setting Default variable value for libc_cv_rootsbindir

 sysdeps/gnu/configure    | 2 +-
 sysdeps/gnu/configure.ac | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/sysdeps/gnu/configure b/sysdeps/gnu/configure
index c15d1087e8..d30d6e37ae 100644
--- a/sysdeps/gnu/configure
+++ b/sysdeps/gnu/configure
@@ -32,6 +32,6 @@  case "$prefix" in
   else
     libc_cv_localstatedir=$localstatedir
    fi
-  libc_cv_rootsbindir=/sbin
+  libc_cv_rootsbindir=${libc_cv_rootsbindir:=/sbin}
   ;;
 esac
diff --git a/sysdeps/gnu/configure.ac b/sysdeps/gnu/configure.ac
index 634fe4de2a..492112e0fd 100644
--- a/sysdeps/gnu/configure.ac
+++ b/sysdeps/gnu/configure.ac
@@ -21,6 +21,6 @@  case "$prefix" in
   else
     libc_cv_localstatedir=$localstatedir
    fi
-  libc_cv_rootsbindir=/sbin
+  libc_cv_rootsbindir=${libc_cv_rootsbindir:=/sbin}
   ;;
 esac