1#!/bin/sh 2 3case `uname -m` in 4 x86_64) 5 _libarch=lib64 6 ;; 7 *) 8 _libarch=lib 9 ;; 10esac 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 20ccache -h 2>&1 > /dev/null 21if [ $? -eq 0 ]; then 22 CC="ccache gcc" 23else 24 CC="gcc" 25fi 26 27./autogen.sh 28 29CC="$CC" CFLAGS="-Wall -g -D_GNU_SOURCE" ./configure -C \ 30 --prefix=${_prefix} \ 31 --localstatedir=/var \ 32 --with-configdir=${_sysconfdir}/samba \ 33 --with-libdir=${_libarchdir}/samba \ 34 --with-pammodulesdir=/${_libarch}/security \ 35 --with-lockdir=/var/lib/samba \ 36 --with-logfilebase=/var/log/samba \ 37 --with-mandir=${_mandir} \ 38 --with-piddir=/var/run \ 39 --with-privatedir=${_sysconfdir}/samba \ 40 --with-sambabook=${_datadir}/swat/using_samba \ 41 --with-swatdir=${_datadir}/swat \ 42 --disable-cups \ 43 --with-acl-support \ 44 --with-ads \ 45 --with-automount \ 46 --with-fhs \ 47 --with-pam_smbpass \ 48 --with-libsmbclient \ 49 --with-libsmbsharemodes \ 50 --without-smbwrapper \ 51 --with-pam \ 52 --with-quotas \ 53 --with-shared-modules=idmap_rid,idmap_ad,idmap_tdb2,vfs_gpfs \ 54 --with-syslog \ 55 --with-utmp \ 56 --with-cluster-support \ 57 --with-ctdb=/usr/include \ 58 --without-ldb \ 59 --without-dnsupdate \ 60 --with-aio-support \ 61 --disable-merged-build 62 $* 63 64make showlayout 65 66