[hitori] Clean up configure.ac some more



commit bd191ed5bb98f85d2b8ea2763f84e60c337d7426
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sun Oct 17 20:23:32 2010 +0100

    Clean up configure.ac some more

 configure.ac |   36 ++++++++++--------------------------
 1 files changed, 10 insertions(+), 26 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9bb66ed..b538d50 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,42 +14,26 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
 GNOME_COMPILE_WARNINGS([maximum])
 GNOME_MAINTAINER_MODE_DEFINES
 
-dnl ***************************************************************************
-dnl Options
-dnl ***************************************************************************
-
-AC_ARG_ENABLE([debug],
-	AS_HELP_STRING([--enable-debug],[turn on debugging]),
-	[case "${enableval}" in
-		yes) debug=true ;;
-		no)  debug=false ;;
-		*) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
-	esac],[debug=false])
-	AM_CONDITIONAL([DEBUG], [test x$debug = xtrue])
-
-dnl ***************************************************************************
-dnl Internationalisation
-dnl ***************************************************************************
+# Options
+AC_ARG_ENABLE([debug],AS_HELP_STRING([--enable-debug],[Enable debugging]),[debug=$enableval],[debug=no])
+AM_CONDITIONAL([DEBUG],[test "$debug" = "yes"])
 
+# Internationalisation
 GETTEXT_PACKAGE=hitori
-AC_SUBST(GETTEXT_PACKAGE)
-AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
+AC_SUBST([GETTEXT_PACKAGE])
+AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[gettext package name])
 AM_GNU_GETTEXT([external])
 AM_GNU_GETTEXT_VERSION([0.17])
 IT_PROG_INTLTOOL([0.35.0])
 
+# Documentation
 GNOME_DOC_INIT
 
-dnl ***************************************************************************
-dnl Dependencies
-dnl ***************************************************************************
-
+# Dependencies
 AC_CHECK_FUNCS([floor])
+PKG_CHECK_MODULES([GENERAL],[glib-2.0 gtk+-2.0 >= 2.13 gmodule-2.0 cairo >= 1.4])
 
-PKG_CHECK_MODULES(GENERAL, glib-2.0 gtk+-2.0 >= 2.13 gmodule-2.0 cairo >= 1.4)
-AC_SUBST(GENERAL_CFLAGS)
-AC_SUBST(GENERAL_LIBS)
-
+# Output!
 AC_CONFIG_FILES([
 Makefile
 po/Makefile.in



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]