[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : luke
Repository : xara
Revision   : 723
Date       : Tue Mar 28 11:04:42 BST 2006

Changed paths:
   M /Trunk/XaraLX/configure.in

Make sure that AUTOMAKE >= 1.9.0 is used


Diff:
Index: Trunk/XaraLX/configure.in
===================================================================
--- Trunk/XaraLX/configure.in	(revision 722)
+++ Trunk/XaraLX/configure.in	(revision 723)
@@ -56,6 +56,16 @@
 AC_CHECK_SIZEOF(int)
 AC_CHECK_SIZEOF(short)
 AC_CHECK_SIZEOF(__int64)
+
+# Check that AUTOMAKE is new enough
+AutomakeVersion=`automake --version | awk '{ if($3 ~ /automake)/) print $4}'`
+AC_MSG_CHECKING([Automake ($AutomakeVersion)])
+AutomakeVersion=`echo $AutomakeVersion | $AWK 'BEGIN { FS = "."; } { printf "% d", ($1 * 1000 + $2) * 1000 + $3;}'`
+if test "$AutomakeVersion" -lt 1009000; then
+	AC_MSG_ERROR([Version 1.9.0 or later of AUTOMAKE is needed])
+else
+	AC_MSG_RESULT([Version OK])
+fi
 
 # Test for GCC and version
 GccVersion=0


Xara