summaryrefslogtreecommitdiff
path: root/source4/autogen.sh
blob: a2228a6fd929d977b55ca67a41c7a6a266813818 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#! /bin/sh

# Run this script to build samba from CVS.

## first try the default names
AUTOHEADER="autoheader"
AUTOCONF="autoconf"

if which $AUTOCONF > /dev/null
then
    :
else
    echo "$0: need autoconf 2.53 or later to build samba from CVS" >&2
    exit 1
fi

##
## what version do we need?
##
if [ `$AUTOCONF --version | head -1 | cut -d.  -f 2` -lt 53 ]; then

	## maybe it's installed under a different name (e.g. RedHat 7.3)

	AUTOCONF="autoconf-2.53"
	AUTOHEADER="autoheader-2.53"

fi

echo "$0: running $AUTOHEADER"
$AUTOHEADER || exit 1

echo "$0: running $AUTOCONF"
$AUTOCONF || exit 1

echo "Now run ./configure and then make."
exit 0