From 3e53607dbd509124ffd106f25bb3210a6a2d0c41 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Mon, 23 Apr 2007 06:18:23 +0000 Subject: [PATCH] Use the new forms of AC_INIT and AM_INIT_AUTOMAKE. Do not bother defining the package and version variables, we do that ourself. Add the datadir to the CPPFLAGS. --- stepmania/configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stepmania/configure.ac b/stepmania/configure.ac index 65c728cb32..1d881ae70c 100644 --- a/stepmania/configure.ac +++ b/stepmania/configure.ac @@ -1,11 +1,10 @@ -# only tested with autoconf 2.57 -AC_PREREQ(2.60) -AC_INIT +AC_PREREQ(2.59) +AC_INIT(StepMania, CVS, [stepmania-devs@lists.sf.net], StepMania) AC_CONFIG_SRCDIR([src/StepMania.cpp]) AC_CONFIG_AUX_DIR(autoconf) AC_CANONICAL_TARGET -AM_INIT_AUTOMAKE(StepMania, 3.001) +AM_INIT_AUTOMAKE([no-define]) AC_CONFIG_HEADERS([src/config.h]) AM_MAINTAINER_MODE @@ -22,6 +21,7 @@ AM_PROG_CC_C_O test "$DEFAULT_CFLAGS" = "yes" && CFLAGS="-Wall -W -Wno-unused -Wno-switch" test "$DEFAULT_CXXFLAGS" = "yes" && CXXFLAGS="-Wall -W -Wno-unused -Wno-switch" test "$DEFAULT_LDFLAGS" = "yes" && LDFLAGS="" +CPPFLAGS="$CPPFLAGS -DDATADIR=\"${datadir}\"" compile=release AC_ARG_WITH(debug, AS_HELP_STRING([--with-debug],[Enable debug mode]), with_debug=$withval, with_debug=no)