]> git.eshelyaron.com Git - emacs.git/commitdiff
* configure.ac: Fix errors from previous checkin (GSettings check).
authorJan Djärv <jan.h.d@swipnet.se>
Mon, 31 Mar 2014 06:08:29 +0000 (08:08 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Mon, 31 Mar 2014 06:08:29 +0000 (08:08 +0200)
Backport from trunk.

ChangeLog
configure.ac

index 5f696779d9b729f3addf291b76e9c9e14cacc1b5..25efcf1e69a71965ebcff61a28800dfe0dd24d68 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-03-31  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * configure.ac: Fix errors from previous checkin (GSettings check).
+       Backport from trunk.
+
 2014-03-30  Daniel Colascione  <dancol@dancol.org>
 
        * configure.ac: Include GFILENOTIFY objects in glib check.  (Bug#17069)
index 971674bb3f216c888f695d15deff1d7215243f77..9074cb2ffe66743a412f4a792090b2e5f5aea7df 100644 (file)
@@ -2432,6 +2432,10 @@ HAVE_GSETTINGS=no
 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
    PKG_CHECK_MODULES(GSETTINGS, gio-2.0 >= 2.26, HAVE_GSETTINGS=yes, HAVE_GSETTINGS=no)
    if test "$HAVE_GSETTINGS" = "yes"; then
+      old_CFLAGS=$CFLAGS
+      CFLAGS="$CFLAGS $GSETTINGS_CFLAGS"
+      old_LIBS=$LIBS
+      LIBS="$LIBS $GSETTINGS_LIBS"
       AC_MSG_CHECKING([whether GSettings is in gio])
       GSETTINGS_COMPILES=no
       AC_LINK_IFELSE(
@@ -2447,11 +2451,13 @@ if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
         [GSETTINGS_COMPILES=yes])
       AC_MSG_RESULT([$GSETTINGS_COMPILES])
 
-      if test "$$GSETTINGS_COMPILES" = "yes"; then
+      if test "$GSETTINGS_COMPILES" = "yes"; then
         AC_DEFINE(HAVE_GSETTINGS, 1, [Define to 1 if using GSettings.])
        SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
        SETTINGS_LIBS="$GSETTINGS_LIBS"
       fi
+      CFLAGS=$old_CFLAGS
+      LIBS=$old_LIBS
    fi
 fi