summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2013-11-01 14:44:54 -0700
committerAaron Plattner <aplattner@nvidia.com>2013-11-01 16:53:57 -0700
commitd2272731010bd352219eb4ac738224bb5b69a6f9 (patch)
treed2c27cb92fb6ad89e08ca5b2b5be52a6225597bc
parent7f32d04bd4f583b0d4871450560bd2e9bafc3d79 (diff)
Copy autotools boilerplate from http://www.x.org/wiki/NewModuleGuidelines/
I verified that this works with autoconf both 2.60 and 2.69. Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r--configure.ac35
1 files changed, 18 insertions, 17 deletions
diff --git a/configure.ac b/configure.ac
index 2780ac5..cb779da 100644
--- a/configure.ac
+++ b/configure.ac
@@ -22,29 +22,30 @@ dnl
dnl
dnl Process this file with autoconf to create configure.
-AC_PREREQ([2.57])
+AC_PREREQ([2.60])
+AC_INIT([libxshmfence], [1.0],
+ [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libxshmfence])
+AC_CONFIG_SRCDIR([Makefile.am])
+AC_CONFIG_HEADERS([config.h])
-AC_INIT(libxshmfence, 1.0, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], libxshmfence)
-AM_INIT_AUTOMAKE([dist-bzip2 foreign])
+# Initialize Automake
+AM_INIT_AUTOMAKE([foreign dist-bzip2])
AM_MAINTAINER_MODE
-# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG, XORG_WITH_LINT
-m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.2 or later before running autoconf/autogen])])
-XORG_MACROS_VERSION(1.2)
-AM_CONFIG_HEADER(config.h)
-
-# Check for progs
-AC_PROG_CC
+# Initialize libtool
AC_PROG_LIBTOOL
-XORG_CWARNFLAGS
+
+# Require xorg-macros: XORG_DEFAULT_OPTIONS, XORG_WITH_LINT
+m4_ifndef([XORG_MACROS_VERSION],
+ [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])])
+XORG_MACROS_VERSION(1.3)
+XORG_DEFAULT_OPTIONS
dnl Allow checking code with lint, sparse, etc.
XORG_WITH_LINT
LINT_FLAGS="${LINT_FLAGS} ${FONTENC_CFLAGS}"
-
-XORG_RELEASE_VERSION
-XORG_CHANGELOG
-AC_OUTPUT([Makefile
- src/Makefile
- xshmfence.pc])
+AC_CONFIG_FILES([Makefile
+ src/Makefile
+ xshmfence.pc])
+AC_OUTPUT