[gtksourceview] build: dependencies more at the top of configure.ac



commit 5b6cc3f4501c0d15225eacab0c312021892d1ee7
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Nov 2 17:36:01 2014 +0100

    build: dependencies more at the top of configure.ac
    
    So that the top of configure.ac contains all the important stuff that is
    often changed.
    
    The Libtool versioning is changed only once every six months, but it's
    important to not forget it, so it's still at the top too. (and the algo
    to change the libtool versioning comes actually from the GNU
    documentation, which was copied in the Autotools book).

 configure.ac |   20 +++++++++-----------
 1 files changed, 9 insertions(+), 11 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2f38215..7374193 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,8 +27,6 @@ AC_INIT([gtksourceview],
 #    public release, increment AGE.
 # 4. If any exported functions or data have been removed since the last
 #    public release, set AGE to 0.
-#
-# (From the book Autotools, by John Calcote)
 
 GSV_LT_CURRENT=4
 GSV_LT_REVISION=0
@@ -36,6 +34,15 @@ GSV_LT_AGE=3
 GSV_LT_VERSION="$GSV_LT_CURRENT:$GSV_LT_REVISION:$GSV_LT_AGE"
 AC_SUBST(GSV_LT_VERSION)
 
+# Dependencies
+GLIB_REQUIRED_VERSION=2.38
+GTK_REQUIRED_VERSION=3.15.0
+LIBXML_REQUIRED_VERSION=2.6.0
+GLADE_UI_REQUIRED=3.9
+
+AC_SUBST(GTK_REQUIRED_VERSION)
+AC_SUBST(LIBXML_REQUIRED_VERSION)
+
 AC_CONFIG_SRCDIR([gtksourceview/gtksourcebuffer.h])
 AC_CONFIG_HEADER([config.h])
 AC_CONFIG_MACRO_DIR([m4])
@@ -56,15 +63,6 @@ LT_INIT([disable-static])
 # Check for header files
 AC_CHECK_HEADERS([unistd.h])
 
-# Dependencies
-GLIB_REQUIRED_VERSION=2.38
-GTK_REQUIRED_VERSION=3.15.0
-LIBXML_REQUIRED_VERSION=2.6.0
-GLADE_UI_REQUIRED=3.9
-
-AC_SUBST(GTK_REQUIRED_VERSION)
-AC_SUBST(LIBXML_REQUIRED_VERSION)
-
 # Pull glib-mkenums & co.
 AC_PATH_PROG(GLIB_MKENUMS, glib-mkenums)
 AC_PATH_PROG(GLIB_COMPILE_RESOURCES, glib-compile-resources)


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