autogen - cope with autoconf-2.53/2.13 systems (like RH 7.3)
authorGerald Carter <jerry@samba.org>
Mon, 10 Feb 2003 17:30:20 +0000 (17:30 +0000)
committerGerald Carter <jerry@samba.org>
Mon, 10 Feb 2003 17:30:20 +0000 (17:30 +0000)
findsmb - use @PERL@
(This used to be commit 15853857299c0de37b9cb736bb99928526924608)

source3/autogen.sh
source3/script/findsmb.in

index 28d1608287ec48330af6183e2324f714672debdd..a2228a6fd929d977b55ca67a41c7a6a266813818 100755 (executable)
@@ -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
index 42c1dd706c9caa29844d28ae6b9e4ac574bd2f14..6276bd3f3921bed6a45e75cdb324b166330a8f0a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!@PERL@
 #
 # Prints info on all smb responding machines on a subnet.
 # This script needs to be run on a machine without nmbd running and be