[PATCH] Add check for util/macros version

Pauli Nieminen suokkos at gmail.com
Sun Jul 5 13:55:01 PDT 2009


This makes configure warn user about outdated util/macros package in system.

helps user not to be confused if facing bug #9557
---
 configure.ac |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 8cf69c1..58f7073 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,6 +40,9 @@ AC_DISABLE_STATIC
 AC_PROG_LIBTOOL
 AC_PROG_CC
 
+m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])])
+XORG_MACROS_VERSION(1.1)
+
 if test "x$GCC" = "xyes"; then
 	CPPFLAGS="$CPPFLAGS -Wall"
 fi
@@ -337,6 +340,10 @@ AC_SUBST([DRIVER_NAME])
 
 XORG_MANPAGE_SECTIONS
 XORG_RELEASE_VERSION
+# Check if automatic version was set
+if test "x$PVM" = "x"; then
+	AC_MSG_ERROR([must install xorg-macros 1.1.3 or later before running autoconf/autogen])
+fi
 XORG_CHECK_LINUXDOC
 
 AC_MSG_NOTICE(
-- 
1.6.3.1



More information about the xorg-driver-ati mailing list