s3: leases: libsmbsharemodes no longer works with SMB2 leases inside our locking...
[samba.git] / packaging / RHEL-CTDB / configure.rpm
1 #!/bin/sh
2
3 case `uname -m` in
4         x86_64)
5                 _libarch="/lib64"
6                 ;;
7         *)
8                 _libarch="/lib"
9                 ;;
10 esac
11
12 _libarchdir=/usr${_libarch}
13
14 _prefix=/usr
15 _sysconfdir=/etc
16 _mandir=/usr/man
17 _datadir=/usr/share
18
19 # check for ccache
20 ccache -h 2>&1 > /dev/null
21 if [ $? -eq 0 ]; then
22         CC="ccache gcc"
23 else
24         CC="gcc"
25 fi
26
27 shared_modules="idmap_rid,idmap_ad,idmap_tdb2,idmap_rfc2307"
28
29 if test "x$BUILD_GPFS" != "xno"; then
30         shared_modules="${shared_modules},vfs_gpfs,vfs_tsmsm"
31 fi
32
33 ./autogen.sh
34
35 CC="$CC" CFLAGS="-Wall -g -D_GNU_SOURCE -O3" ./configure -C \
36         --prefix=${_prefix} \
37         --localstatedir=/var \
38         --with-configdir=${_sysconfdir}/samba \
39         --libdir=${_libarchdir} \
40         --with-modulesdir=${_libarchdir}/samba \
41         --with-pammodulesdir=${_libarch}/security \
42         --with-lockdir=/var/lib/samba \
43         --with-logfilebase=/var/log/samba \
44         --mandir=${_mandir} \
45         --with-piddir=/var/run \
46         --with-privatedir=${_sysconfdir}/samba \
47         --with-sambabook=${_datadir}/swat/using_samba \
48         --with-swatdir=${_datadir}/swat \
49         --disable-cups \
50         --with-acl-support \
51         --with-ads \
52         --with-automount \
53         --enable-fhs \
54         --with-pam_smbpass \
55         --with-libsmbclient \
56         --without-smbwrapper \
57         --with-pam \
58         --with-quotas \
59         --with-shared-modules=${shared_modules} \
60         --with-syslog \
61         --with-utmp \
62         --with-cluster-support \
63         --with-ctdb=/usr/include \
64         --without-ldb \
65         --without-dnsupdate \
66         --with-aio-support \
67         --disable-external-libtalloc \
68         --disable-external-libtdb \
69         $*
70
71 make showlayout
72