[gjs] build: Use two-argument form of AC_SUBST



commit 1922d229d9a18736df8c6f2a61f2763cfe340617
Author: Philip Chimento <philip chimento gmail com>
Date:   Wed Sep 28 18:48:24 2016 -0700

    build: Use two-argument form of AC_SUBST
    
    Slightly more readable code.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=772027

 configure.ac |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 0660395..2be893c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,8 +17,7 @@ AC_CONFIG_HEADERS([config.h])
 
 AC_DEFINE([GJS_VERSION], pkg_int_version, [The gjs version as an integer])
 
-GETTEXT_PACKAGE=gjs
-AC_SUBST([GETTEXT_PACKAGE])
+AC_SUBST([GETTEXT_PACKAGE], [gjs])
 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [The name of the gettext domain])
 
 AM_MAINTAINER_MODE([enable])
@@ -203,8 +202,7 @@ AS_IF([test "x$with_dbus_tests" != "xno"], [
 ])
 AM_CONDITIONAL([DBUS_TESTS], [test "x$with_dbus_tests" != "xno"])
 
-gjsjsdir="\${datadir}/gjs-1.0"
-AC_SUBST([gjsjsdir])
+AC_SUBST([gjsjsdir], [\${datadir}/gjs-1.0])
 
 dnl automake 1.11/1.12 defines this but does not substitute it
 AC_SUBST([pkglibexecdir], ["${libexecdir}/${PACKAGE}"])


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