s4:echo RPC - make this one "signed-safe"
[ira/wip.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 ./autogen.sh
28
29 CC="$CC" CFLAGS="-Wall -g -D_GNU_SOURCE" ./configure -C \
30         --prefix=${_prefix} \
31         --localstatedir=/var \
32         --with-configdir=${_sysconfdir}/samba \
33         --libdir=${_libarchdir} \
34         --with-modulesdir=${_libarchdir}/samba \
35         --with-pammodulesdir=/${_libarch}/security \
36         --with-lockdir=/var/lib/samba \
37         --with-logfilebase=/var/log/samba \
38         --with-mandir=${_mandir} \
39         --with-piddir=/var/run \
40         --with-privatedir=${_sysconfdir}/samba \
41         --with-sambabook=${_datadir}/swat/using_samba \
42         --with-swatdir=${_datadir}/swat \
43         --disable-cups \
44         --with-acl-support \
45         --with-ads \
46         --with-automount \
47         --with-fhs \
48         --with-pam_smbpass \
49         --with-libsmbclient \
50         --with-libsmbsharemodes \
51         --without-smbwrapper \
52         --with-pam \
53         --with-quotas \
54         --with-shared-modules=idmap_rid,idmap_ad,idmap_tdb2,vfs_gpfs \
55         --with-syslog \
56         --with-utmp \
57         --with-cluster-support \
58         --with-ctdb=/usr/include \
59         --without-ldb \
60         --without-dnsupdate \
61         --with-aio-support \
62         --disable-merged-build
63         $*
64
65 make showlayout
66