r13997: Prefix $prefix by default even to rootsbindir as we else run in trouble
authorLars Müller <lmuelle@samba.org>
Tue, 7 Mar 2006 23:04:08 +0000 (23:04 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:11:04 +0000 (11:11 -0500)
if we use ./configure --prefix=dir && make install

Vendors might use ./configure --with-rootsbindir=/sbin && make
DESTDIR=/var/tmp/samba/ install if they use a buildroot.

Thanks to Björn Jacke for pointing me at the stderr output of the build
farm.
(This used to be commit 75c95d149a22eba4a5afedcec7ba5e2a28cccf01)

source3/configure.in

index 564b0352541aaf51e5b3da6282570c6573636547..967a4ae2fd98671f5bc2f775d0f2dcec39636959 100644 (file)
@@ -22,7 +22,7 @@ fi
 # ones...
 AC_PREFIX_DEFAULT(/usr/local/samba)
 
-rootsbindir="/sbin"
+rootsbindir="\${prefix}/sbin"
 lockdir="\${VARDIR}/locks"
 piddir="\${VARDIR}/locks"
 mandir="\${prefix}/man"
@@ -66,7 +66,7 @@ AC_ARG_WITH(privatedir,
 #################################################
 # set root sbin directory location
 AC_ARG_WITH(rootsbindir,
-[  --with-rootsbindir=DIR  Which directory to use for root sbin (/sbin)],
+[  --with-rootsbindir=DIR  Which directory to use for root sbin ($ac_default_prefix/sbin)],
 [ case "$withval" in
   yes|no)
   #