update configure.rpm for clustered Samba usage
authorAndrew Tridgell <tridge@samba.org>
Mon, 21 Apr 2008 16:39:56 +0000 (18:39 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 13 Aug 2008 09:54:01 +0000 (11:54 +0200)
(This used to be commit 87c9f7717fc8171644c244fe697cace2968b8f8a)

packaging/RHEL-CTDB/configure.rpm [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index e1a58dd..a0bcf56
@@ -1,34 +1,43 @@
 
+case `uname -m` in
+     x86_64)
+       libdir=/usr/lib64/samba
+       ;;
+     *)
+       libdir=/usr/lib/samba
+       ;;
+esac
+
+
 CFLAGS="-Wall -g -D_GNU_SOURCE" ./configure \
-       --prefix=/usr \
-       --localstatedir=/var \
-       --with-configdir=/etc/samba \
-       --with-libdir=/usr/lib/samba \
-       --with-lockdir=/var/lib/samba \
-       --with-logfilebase=/var/log/samba \
-       --with-mandir=/usr/man \
-       --with-piddir=/var/run \
-       --with-privatedir=/etc/samba \
-       --with-sambabook=/usr/share/swat/using_samba \
-       --with-swatdir=/usr/share/swat \
-       --enable-cups \
-       --with-acl-support \
-       --with-ads \
-       --with-automount \
-       --with-fhs \
-       --with-pam_smbpass \
-       --with-libsmbclient \
-       --with-libsmbsharemodes \
-       --without-smbwrapper \
-       --with-pam \
-       --with-quotas \
-       --with-shared-modules=idmap_rid,idmap_ad \
-       --with-smbmount \
-       --with-syslog \
-       --with-utmp \
-       --with-cluster-support \
-       --with-ctdb=/usr/include \
-       --without-ldb \
-       --with-dnsupdate \
-       --with-aio-support \
+        --prefix=/usr \
+        --localstatedir=/var \
+        --with-configdir=/etc/samba \
+        --with-libdir=$libdir \
+        --with-lockdir=/var/lib/samba \
+        --with-logfilebase=/var/log/samba \
+        --with-mandir=/usr/man \
+        --with-piddir=/var/run \
+        --with-privatedir=/etc/samba \
+        --with-sambabook=/usr/share/swat/using_samba \
+        --with-swatdir=/usr/share/swat \
+        --enable-cups \
+        --with-acl-support \
+        --with-ads \
+        --with-automount \
+        --with-fhs \
+        --with-pam_smbpass \
+        --with-libsmbclient \
+        --with-libsmbsharemodes \
+        --without-smbwrapper \
+        --with-pam \
+        --with-quotas \
+        --with-shared-modules=idmap_rid,idmap_ad,idmap_tdb2 \
+        --with-syslog \
+        --with-utmp \
+        --with-cluster-support \
+        --with-ctdb=/usr/include \
+        --without-ldb \
+        --with-dnsupdate \
+        --with-aio-support \
        $*