X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;ds=sidebyside;f=packaging%2FRHEL-CTDB%2Fconfigure.rpm;h=0409f50c65f15d40df36694859a94010dfd6dcf2;hb=219505fed72ffc17f78cc903638b9603956ba434;hp=75960402053b6865dfc545f07527aa42b6c334eb;hpb=d21ec4f359b2a2783dd5f721229efc9368753105;p=bbaumbach%2Fsamba-autobuild%2F.git diff --git a/packaging/RHEL-CTDB/configure.rpm b/packaging/RHEL-CTDB/configure.rpm index 75960402053..0409f50c65f 100755 --- a/packaging/RHEL-CTDB/configure.rpm +++ b/packaging/RHEL-CTDB/configure.rpm @@ -1,42 +1,68 @@ +#!/bin/sh case `uname -m` in - x86_64) - libdir=/usr/lib64/samba - ;; - *) - libdir=/usr/lib/samba - ;; + x86_64) + _libarch="/lib64" + ;; + *) + _libarch="/lib" + ;; esac -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 \ +_libarchdir=/usr${_libarch} + +_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 + +shared_modules="idmap_rid,idmap_ad,idmap_tdb2,idmap_rfc2307" + +if test "x$BUILD_GPFS" != "xno"; then + shared_modules="${shared_modules},vfs_gpfs,vfs_tsmsm" +fi + +./autogen.sh + +CC="$CC" CFLAGS="-Wall -g -D_GNU_SOURCE -O3" ./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 \ + --mandir=${_mandir} \ + --with-piddir=/var/run \ + --with-privatedir=${_sysconfdir}/samba \ --disable-cups \ - --with-acl-support \ + --with-acl-support \ --with-ads \ - --with-automount \ - --with-fhs \ - --with-pam_smbpass \ + --with-automount \ + --enable-fhs \ --with-libsmbclient \ - --with-libsmbsharemodes \ - --without-smbwrapper \ + --without-smbwrapper \ --with-pam \ --with-quotas \ - --with-shared-modules=idmap_rid,idmap_ad,idmap_tdb2 \ + --with-shared-modules=${shared_modules} \ --with-syslog \ --with-utmp \ --with-cluster-support \ --with-ctdb=/usr/include \ --without-ldb \ --without-dnsupdate \ - --with-aio-support \ + --disable-external-libtalloc \ + --disable-external-libtdb \ $* + +make showlayout +