0001-01-01 02:30:17 +02:30
#!/bin/sh
0001-01-01 02:30:17 +02:30
# Run this script to build samba from CVS.
0001-01-01 02:30:17 +02:30
## insert all possible names (only works with
## autoconf 2.x
TESTAUTOHEADER = "autoheader autoheader-2.53"
TESTAUTOCONF = "autoconf autoconf-2.53"
AUTOHEADERFOUND = "0"
AUTOCONFFOUND = "0"
0001-01-01 02:30:17 +02:30
0001-01-01 02:30:17 +02:30
##
## Look for autoheader
0001-01-01 02:30:17 +02:30
##
0001-01-01 02:30:17 +02:30
for i in $TESTAUTOHEADER ; do
0001-01-01 02:30:17 +02:30
if which $i > /dev/null 2>& 1; then
0001-01-01 02:30:17 +02:30
if [ ` $i --version | head -n 1 | cut -d. -f 2` -ge 53 ] ; then
0001-01-01 02:30:17 +02:30
AUTOHEADER = $i
AUTOHEADERFOUND = "1"
break
fi
fi
done
##
## Look for autoconf
0001-01-01 02:30:17 +02:30
##
0001-01-01 02:30:17 +02:30
for i in $TESTAUTOCONF ; do
0001-01-01 02:30:17 +02:30
if which $i > /dev/null 2>& 1; then
0001-01-01 02:30:17 +02:30
if [ ` $i --version | head -n 1 | cut -d. -f 2` -ge 53 ] ; then
0001-01-01 02:30:17 +02:30
AUTOCONF = $i
AUTOCONFFOUND = "1"
break
fi
fi
done
0001-01-01 02:30:17 +02:30
0001-01-01 02:30:17 +02:30
##
## do we have it?
##
0001-01-01 02:30:17 +02:30
if [ " $AUTOCONFFOUND " = "0" -o " $AUTOHEADERFOUND " = "0" ] ; then
0001-01-01 02:30:17 +02:30
echo " $0 : need autoconf 2.53 or later to build samba from CVS " >& 2
exit 1
0001-01-01 02:30:17 +02:30
fi
0001-01-01 02:30:17 +02:30
0001-01-01 02:30:17 +02:30
echo " $0 : running $AUTOHEADER "
$AUTOHEADER || exit 1
echo " $0 : running $AUTOCONF "
$AUTOCONF || exit 1
0001-01-01 02:30:17 +02:30
0001-01-01 02:30:17 +02:30
echo " $0 : running script/mkversion.sh "
./script/mkversion.sh || exit 1
rm -rf autom4te.cache autom4te-2.53.cache
0001-01-01 02:30:17 +02:30
echo "Now run ./configure and then make."
exit 0
0001-01-01 02:30:17 +02:30