s3:idmap_ad: use range from idmap_domain in idmap_ad_unixids_to_sids()
[amitay/samba.git] / packaging / RHEL-CTDB / configure.rpm
index a0bcf56654f49a0f1fe99128077565b79157c8ef..61276f83c96e77942bd0c6c67f6b8578ca74d643 100755 (executable)
@@ -1,43 +1,66 @@
+#!/bin/sh
 
 case `uname -m` in
-     x86_64)
-       libdir=/usr/lib64/samba
-       ;;
-     *)
-       libdir=/usr/lib/samba
-       ;;
+       x86_64)
+               _libarch=lib64
+               ;;
+       *)
+               _libarch=lib
+               ;;
 esac
 
+_libarchdir=/usr/${_libarch}
 
-CFLAGS="-Wall -g -D_GNU_SOURCE" ./configure \
-        --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 \
+_prefix=/usr
+_sysconfdir=/etc
+_mandir=/usr/man
+_datadir=/usr/share
+
+# check for ccache
+ccache -h 2>&1 > /dev/null
+if [ $? -eq 0 ]; then
+       CC="ccache gcc"
+else
+       CC="gcc"
+fi
+
+./autogen.sh
+
+CC="$CC" CFLAGS="-Wall -g -D_GNU_SOURCE" ./configure -C \
+       --prefix=${_prefix} \
+       --localstatedir=/var \
+       --with-configdir=${_sysconfdir}/samba \
+       --libdir=${_libarchdir} \
+       --with-modulesdir=${_libarchdir}/samba \
+       --with-pammodulesdir=/${_libarch}/security \
+       --with-lockdir=/var/lib/samba \
+       --with-logfilebase=/var/log/samba \
+       --with-mandir=${_mandir} \
+       --with-piddir=/var/run \
+       --with-privatedir=${_sysconfdir}/samba \
+       --with-sambabook=${_datadir}/swat/using_samba \
+       --with-swatdir=${_datadir}/swat \
+       --disable-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,vfs_gpfs \
+       --with-syslog \
+       --with-utmp \
+       --with-cluster-support \
+       --with-ctdb=/usr/include \
+       --without-ldb \
+       --without-dnsupdate \
+       --with-aio-support \
+       --disable-merged-build
        $*
+
+make showlayout
+