[gedit-plugins] configure.ac: Update autotools configuration



commit 4dcf610c79669d12127c64067bc8a3aca450c60b
Author: Javier Jardón <jjardon gnome org>
Date:   Sun Mar 27 17:37:42 2011 +0200

    configure.ac: Update autotools configuration
    
    Replace deprecated autoconf macros and use new libtool syntax

 configure.ac |   26 +++++++++++++++-----------
 1 files changed, 15 insertions(+), 11 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 31c9455..c59f932 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,35 +1,39 @@
 dnl Process this file with autoconf to produce a configure script.
 
-AC_PREREQ(2.59)
+AC_PREREQ([2.63])
  
 m4_define(gedit_plugins_major_version,  2)
 m4_define(gedit_plugins_minor_version, 91)
 m4_define(gedit_plugins_micro_version,  2)
 m4_define(gedit_plugins_version, gedit_plugins_major_version.gedit_plugins_minor_version.gedit_plugins_micro_version)
 
-AC_INIT(gedit-plugins, gedit_plugins_version, http://bugzilla.gnome.org/enter_bug.cgi?product=gedit)
+AC_INIT([gedit-plugins],
+        [gedit_plugins_version],
+        [http://bugzilla.gnome.org/enter_bug.cgi?product=gedit],
+        [gedit-plugins])
 
+AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_SRCDIR([plugins])
 AC_CONFIG_MACRO_DIR([m4])
+AC_CONFIG_AUX_DIR([build-aux])
 AC_PREFIX_PROGRAM([gedit])
 
-AM_INIT_AUTOMAKE([1.8 dist-bzip2 no-dist-gzip])
+AM_INIT_AUTOMAKE([1.10 dist-bzip2 no-dist-gzip])
+AM_MAINTAINER_MODE([enable])
 
-AM_MAINTAINER_MODE
 m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
 
-AC_CONFIG_HEADERS([config.h])
-AC_DISABLE_STATIC
-
-AC_PROG_LIBTOOL
-
-AC_ISC_POSIX
+# Check for programs
 AC_PROG_CC
 AC_PROG_INSTALL
 AC_PROG_MAKE_SET
 
 AM_PATH_PYTHON
 
+# Initialize libtool
+LT_PREREQ([2.2])
+LT_INIT([disable-static])
+
 dnl check for win32 platform
 AC_MSG_CHECKING([for some Win32 platform])
 case "$host" in
@@ -255,7 +259,7 @@ AC_SUBST([BUILD_PLUGINS],[$PLUGINS])
 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
 
 AC_ARG_ENABLE(deprecations,
-              [AC_HELP_STRING([--enable-deprecations],
+              [AS_HELP_STRING([--enable-deprecations],
                               [warn about deprecated usages [default=no]])],,
               [enable_deprecations=no])
 



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