[gnome-screenshot] Clean configure.ac



commit 735f337b2d5860f7d2340f1c732f9c6922e20b54
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Fri Jun 17 16:31:12 2016 -0500

    Clean configure.ac
    
    We already require Automake 1.11, which supports AM_SILENT_RULES, no
    need to check for it.
    
    We don't use $target anywhere, and we're not part of a compiler
    toolchain, so no need for AC_CANONICAL_TARGET.
    
    We call PKG_CHECK_MODULES unconditionally, so no need for
    PKG_PROG_PKG_CONFIG.
    
    We use intltool, which conflicts with glib-gettext, so we should not be
    using AM_GLIB_GNU_GETTEXT.
    
    We don't use C++, so we should not be using AC_PROG_CXX.
    
    We don't care about INTERACTIVE Systems Corporation Unix, so we don't
    need AC_ISC_POSIX.
    
    We don't check STDC_HEADERS and we don't care about pre-C89 systems, so
    we don't need AC_HEADER_STDC.
    
    We don't care about anything older than Debian stable, which has
    Automake 1.14, so require that and drop AM_PROG_CC_C_O, which is now
    covered by AC_PROG_CC.
    
    AC_CACHE_SAVE is a matter of preference, but doesn't seem useful here;
    we're not checking for much anything

 configure.ac |   16 +---------------
 1 files changed, 1 insertions(+), 15 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index a94e3bc..59e375f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,29 +5,15 @@ AC_INIT([gnome-screenshot],[3.18.0],[],[gnome-screenshot])
 AC_CONFIG_HEADERS(config.h)
 AC_CONFIG_MACRO_DIR([m4])
 
-m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
-
-AC_CANONICAL_TARGET
-
-AM_INIT_AUTOMAKE([1.11 dist-xz no-dist-gzip foreign])
+AM_INIT_AUTOMAKE([1.14 dist-xz no-dist-gzip foreign])
 AM_SILENT_RULES([yes])
 
 GETTEXT_PACKAGE=AC_PACKAGE_NAME
 AC_SUBST(GETTEXT_PACKAGE)
 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The name of the gettext domain])
 IT_PROG_INTLTOOL(0.40.0)
-PKG_PROG_PKG_CONFIG([0.22])
-
-AM_GLIB_GNU_GETTEXT
 
 AC_PROG_CC
-AM_PROG_CC_C_O
-AC_PROG_CXX
-AC_ISC_POSIX
-AC_HEADER_STDC
-
-## don't rerun to this point if we abort
-AC_CACHE_SAVE
 
 GLIB_GSETTINGS
 


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