From 94a18fa1f8141837bdab32e545da7a7aed1cc396 Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Thu, 24 Jan 2008 15:24:40 +0100 Subject: [PATCH] Don't build reg_dumper if we don't have pciaccess 0.10.0 The pci_device_map_range() function was added in libpciaccess 0.10.0, and is used by the reg_dumper tool. Don't try to build it if we have an older libpciaccess. Also make sure that util-macros >= 1.1.3 is available when running autoconf, because it's required for the PACKAGE_VERSION_* macros. --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 334a1f49..e707a1a9 100644 --- a/configure.ac +++ b/configure.ac @@ -117,7 +117,7 @@ CFLAGS="$save_CFLAGS" if test x$XSERVER_LIBPCIACCESS = xyes; then PKG_CHECK_MODULES([PCIACCESS], [pciaccess >= 0.10.0]) else - PKG_CHECK_MODULES([PCIACCESS], [pciaccess >= 0.5.0], + PKG_CHECK_MODULES([PCIACCESS], [pciaccess >= 0.10.0], have_libpciaccess=yes, have_libpciaccess=no) fi @@ -216,6 +216,8 @@ AC_SUBST([moduledir]) DRIVER_NAME=intel AC_SUBST([DRIVER_NAME]) +m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1.3 or later before running autoconf/autogen])]) +XORG_MACROS_VERSION(1.1.3) XORG_MANPAGE_SECTIONS XORG_RELEASE_VERSION