Peter Kjellerstedt:
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 15 Mar 2004 12:21:52 +0000 (12:21 +0000)
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 15 Mar 2004 12:21:52 +0000 (12:21 +0000)
* Correct the version checks (use path expansion
  rather than regular expressions, and fail if the
  tools are not installed at all).
* Make it possible to specify other names for the
  auto* tools to use (e.g., automake-1.6 instead
  of automake).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10383 f5534014-38df-0310-8fa8-9805f1628bb7

AUTHORS
autogen.sh

diff --git a/AUTHORS b/AUTHORS
index 1445e2a7352194b0d54ac8c2b4bc26b3356c7425..076f460ad22e6dc826f0fd3d5bc89d585e3379af 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -476,6 +476,7 @@ David Frascone <dave[AT]frascone.com> {
 Peter Kjellerstedt <pkj[AT]axis.com> {
        SRVLOC fixes
        ICQ enhancements
+       autogen.sh fixes
 }
 
 Phil Techau <phil_t[AT]altavista.net> {
index e1cf3d06a85e0f3671311947c41b6c2027ddd921..8f4cdb9ae8b2a6011a1087106f3c02e9f382fb59 100755 (executable)
@@ -2,11 +2,15 @@
 #
 # Run this to generate all the initial makefiles.
 #
-# $Id: autogen.sh,v 1.32 2004/03/08 23:37:51 jmayer Exp $
+# $Id: autogen.sh,v 1.33 2004/03/15 12:21:52 jmayer Exp $
 
 DIE=true
 PROJECT="Ethereal"
 
+ACLOCAL=aclocal
+AUTOHEADER=autoheader
+AUTOMAKE=automake
+AUTOCONF=autoconf
 
 # Check for python. There's no "--version" option!
 python -c "print 'Checking for python.'"
@@ -21,10 +25,10 @@ _EOF_
 fi
 
 
-ACVER=`autoconf --version | grep '^autoconf' | sed 's/.*) *//'`
+ACVER=`$AUTOCONF --version | grep '^autoconf' | sed 's/.*) *//'`
 case "$ACVER" in
-0* | 1\.* | 2\.[0-4]* | \
-2\.5[0-1] | 2\.5[0-1][a-z]* )
+'' | 0.* | 1.* | 2.[0-4]* | \
+2.5[0-1] | 2.5[0-1][a-z]* )
   cat >&2 <<_EOF_
 
        You must have autoconf 2.52 or later installed to compile $PROJECT.
@@ -36,9 +40,9 @@ _EOF_
 esac
 
 
-AMVER=`automake --version | grep '^automake' | sed 's/.*) *//'`
+AMVER=`$AUTOMAKE --version | grep '^automake' | sed 's/.*) *//'`
 case "$AMVER" in
-0.* | 1\.[0-5].* )
+'' | 0.* | 1.[0-5]* )
 
   cat >&2 <<_EOF_
 
@@ -69,7 +73,7 @@ else
        LIBTOOLIZE=glibtoolize
 fi
 case "$LTVER" in
-0* | 1\.[0-3]* )
+'' | 0.* | 1.[0-3]* )
 
   cat >&2 <<_EOF_
 
@@ -109,14 +113,14 @@ for dir in . epan wiretap ;  do
     fi
     aclocal_flags=`$topdir/aclocal-flags`
     aclocalinclude="$ACLOCAL_FLAGS $aclocal_flags";
-    echo aclocal $aclocalinclude
-    aclocal $aclocalinclude || exit 1
-    echo autoheader
-    autoheader || exit 1
-    echo automake --add-missing --gnu $am_opt
-    automake --add-missing --gnu $am_opt || exit 1
-    echo autoconf
-    autoconf || exit 1
+    echo $ACLOCAL $aclocalinclude
+    $ACLOCAL $aclocalinclude || exit 1
+    echo $AUTOHEADER
+    $AUTOHEADER || exit 1
+    echo $AUTOMAKE --add-missing --gnu $am_opt
+    $AUTOMAKE --add-missing --gnu $am_opt || exit 1
+    echo $AUTOCONF
+    $AUTOCONF || exit 1
   ) || exit 1
 done