From 8681d431516979dcffd1ca7a65d47026d8ad0336 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 18 Sep 2006 16:14:11 -0700 Subject: Add hooks for running code checkers like sparse & lint over the source --- configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index bab898c..3c9dbec 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,3 @@ -dnl $Id$ dnl dnl Copyright 2005 Red Hat, Inc. dnl @@ -30,6 +29,10 @@ AM_MAINTAINER_MODE AM_CONFIG_HEADER(config.h) +# Require xorg-macros version 1.1.0 or newer for XORG_WITH_LINT macro +m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])]) +XORG_MACROS_VERSION(1.1) + # Check for progs AC_PROG_CC AC_PROG_LIBTOOL @@ -44,6 +47,11 @@ XORG_CHECK_MALLOC_ZERO XORG_MANPAGE_SECTIONS XORG_RELEASE_VERSION +dnl Allow checking code with lint, sparse, etc. +XORG_WITH_LINT +XORG_LINT_LIBRARY([Xv]) +LINT_FLAGS="${LINT_FLAGS} ${XV_CFLAGS}" + AC_OUTPUT([Makefile include/Makefile include/X11/Makefile -- cgit v1.2.3