tevent: the content of event is ignored by EPOLL_CTL_DEL
[Samba.git] / examples / VFS / autogen.sh
blob8c6c909f5b6e3b6246958ffd1f2790b2ed351aa9
1 #!/bin/sh
3 # Run this script to build samba from SVN.
5 ## insert all possible names (only works with
6 ## autoconf 2.x
7 TESTAUTOHEADER="autoheader autoheader-2.53 autoheader2.50 autoheader259 autoheader253"
8 TESTAUTOCONF="autoconf autoconf-2.53 autoconf2.50 autoconf259 autoconf253"
11 AUTOHEADERFOUND="0"
12 AUTOCONFFOUND="0"
16 ## Look for autoheader
18 for i in $TESTAUTOHEADER; do
19 if which $i > /dev/null 2>&1; then
20 if [ `$i --version | head -n 1 | cut -d. -f 2 | tr -d [:alpha:]` -ge 53 ]; then
21 AUTOHEADER=$i
22 AUTOHEADERFOUND="1"
23 break
26 done
28 ##
29 ## Look for autoconf
32 for i in $TESTAUTOCONF; do
33 if which $i > /dev/null 2>&1; then
34 if [ `$i --version | head -n 1 | cut -d. -f 2 | tr -d [:alpha:]` -ge 53 ]; then
35 AUTOCONF=$i
36 AUTOCONFFOUND="1"
37 break
40 done
43 ##
44 ## do we have it?
46 if [ "$AUTOCONFFOUND" = "0" -o "$AUTOHEADERFOUND" = "0" ]; then
47 echo "$0: need autoconf 2.53 or later to build samba from SVN" >&2
48 exit 1
51 rm -rf autom4te*.cache
53 echo "$0: running $AUTOHEADER"
54 $AUTOHEADER || exit 1
56 echo "$0: running $AUTOCONF"
57 $AUTOCONF || exit 1
59 rm -rf autom4te*.cache
61 echo "Now run ./configure and then make."
62 exit 0