diff options
author | Julien Cristau <jcristau@debian.org> | 2010-03-03 23:40:11 +0100 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2010-03-03 23:46:22 +0100 |
commit | 1d6ba7c8c8c7183569f9dc708090f36de8b6bdd6 (patch) | |
tree | d9bc50d8c35b8492c86687fe107e12cf4c31c3a3 | |
parent | dab0c2742c034750e3e9673167eb20812b679818 (diff) |
Janitorial configure.ac/Makefile.am updates
Use XORG_DEFAULT_OPTIONS and update ChangeLog rule to work with newer
git. Also set AM_CFLAGS in Makefile.am instead of setting CFLAGS from
configure.ac.
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 29 | ||||
-rw-r--r-- | src/Makefile.am | 1 |
3 files changed, 7 insertions, 25 deletions
diff --git a/Makefile.am b/Makefile.am index 42f8b54..21ae771 100644 --- a/Makefile.am +++ b/Makefile.am @@ -27,4 +27,4 @@ EXTRA_DIST = ChangeLog .PHONY: ChangeLog ChangeLog: - (GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2) + $(CHANGELOG_CMD) diff --git a/configure.ac b/configure.ac index e32aeea..1377a00 100644 --- a/configure.ac +++ b/configure.ac @@ -26,6 +26,10 @@ AC_INIT([xf86-input-penmount], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], xf86-input-penmount) +# Require xorg-macros version >= 1.3.0 for XORG_DEFAULT_OPTIONS +m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.3 or later before running autoconf/autogen])]) +XORG_MACROS_VERSION(1.3) + AC_CONFIG_SRCDIR([Makefile.am]) AC_CONFIG_AUX_DIR(.) AM_INIT_AUTOMAKE([dist-bzip2]) @@ -41,27 +45,10 @@ AM_CONFIG_HEADER([config.h]) AC_DISABLE_STATIC AC_PROG_LIBTOOL AC_PROG_CC +XORG_DEFAULT_OPTIONS AH_TOP([#include "xorg-server.h"]) -#AC_DEFINE(XFree86LOADER,1,[Stub define for loadable drivers]) -# -#AC_ARG_ENABLE(XINPUT, AS_HELP_STRING([--enable-xinput], -# [Build XInput support (default: yes)]), -# [XINPUT=$enableval],[XINPUT=yes]) -#AM_CONDITIONAL(XINPUT, test "x$XINPUT" = "xyes") -#if test "x$XINPUT" = "xyes" ; then -# AC_DEFINE(XINPUT,1,[Enable XInput support]) -#fi -# -#AC_ARG_ENABLE(XKB, AS_HELP_STRING([--enable-xkb], -# [Build XKB support (default: yes)]), -# [XKB=$enableval],[XKB=yes]) -#AM_CONDITIONAL(XKB, test "x$XKB" = "xyes") -#if test "x$XKB" = "xyes" ; then -# AC_DEFINE(XKB,1,[Enable XKB support]) -#fi - AC_ARG_WITH(xorg-module-dir, AC_HELP_STRING([--with-xorg-module-dir=DIR], [Default xorg module directory [[default=$libdir/xorg/modules]]]), @@ -78,15 +65,9 @@ XORG_DRIVER_CHECK_EXT(XINPUT, inputproto) PKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901] xproto $REQUIRED_MODULES) sdkdir=$(pkg-config --variable=sdkdir xorg-server) -CFLAGS="$CFLAGS $XORG_CFLAGS "' -I$(top_srcdir)/src' -AC_SUBST([CFLAGS]) - # Checks for libraries. # Checks for header files. AC_HEADER_STDC -XORG_MANPAGE_SECTIONS -XORG_RELEASE_VERSION - AC_OUTPUT([Makefile src/Makefile man/Makefile]) diff --git a/src/Makefile.am b/src/Makefile.am index 2042e32..56ecc23 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -18,6 +18,7 @@ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +AM_CFLAGS = $(XORG_CFLAGS) -I$(top_srcdir)/src # this is obnoxious: # -module lets us name the module exactly how we want |