diff options
author | Gerald Carter <jerry@samba.org> | 2003-02-10 17:31:25 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-02-10 17:31:25 +0000 |
commit | f869db787b555dc99e30d82493666c8a388f8f81 (patch) | |
tree | b322a286f33f89f8a9c5ccb1ddd0ee97c25e3e64 /source/autogen.sh | |
parent | c1cfc296c2efdb2b5972202146e80f0e3b6a3da4 (diff) | |
download | samba-f869db787b555dc99e30d82493666c8a388f8f81.tar.gz |
autogen - cope with autoconf-2.53/2.13 systems (like RH 7.3)
findsmb - use @PERL@
Diffstat (limited to 'source/autogen.sh')
-rwxr-xr-x | source/autogen.sh | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/source/autogen.sh b/source/autogen.sh index 28d1608287e..a2228a6fd92 100755 --- a/source/autogen.sh +++ b/source/autogen.sh @@ -2,7 +2,11 @@ # Run this script to build samba from CVS. -if which autoconf > /dev/null +## first try the default names +AUTOHEADER="autoheader" +AUTOCONF="autoconf" + +if which $AUTOCONF > /dev/null then : else @@ -10,10 +14,23 @@ else exit 1 fi -echo "$0: running autoheader" -autoheader || exit 1 +## +## 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 "$0: running autoconf" -autoconf || exit 1 echo "Now run ./configure and then make." exit 0 |