From c753cfe5491cfb1f1f74ca41444706383ab9f0e3 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Sun, 12 Feb 2012 07:33:05 -0500 Subject: cifs-utils: allow specifying rootsbindir at configure time ...via the $ROOTSBINDIR environment variable, and AC_ARG_VAR macro. The default is to use /sbin for this value, which only currently affects the installation location of mount.cifs. Signed-off-by: Jeff Layton --- configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 1923f28..3027eba 100644 --- a/configure.ac +++ b/configure.ac @@ -9,7 +9,7 @@ AC_CONFIG_MACRO_DIR(aclocal) AM_INIT_AUTOMAKE -# "with" options +# "enable" options AC_ARG_ENABLE(cifsupcall, [AC_HELP_STRING([--enable-cifsupcall], [Create cifs.upcall binary @<:@default=yes@:>@])], @@ -34,6 +34,14 @@ AC_ARG_ENABLE(cifsacl, enable_cifsacl=$enableval, enable_cifsacl="maybe") +# check for ROOTSBINDIR environment var +if test -z $ROOTSBINDIR; then + ROOTSBINDIR="/sbin" + export ROOTSBINDIR +fi + +AC_ARG_VAR(ROOTSBINDIR, [Location where files ordinarily under /sbin should be installed. Note: unaffected by --prefix. @<:@default=/sbin@:>@]) + # Checks for programs. AC_PROG_CC AC_PROG_SED -- cgit v1.2.3