From 8e86e380dc76be2e49f23c9bf7f28eda076875c7 Mon Sep 17 00:00:00 2001 From: Daniel Colascione Date: Sun, 30 Mar 2014 16:59:19 -0700 Subject: [PATCH] * configure.ac: Include GFILENOTIFY objects in glib check (backport from trunk) Fixes: debbugs:17069 --- ChangeLog | 4 ++++ configure.ac | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index e5e69669293..5f696779d9b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-03-30 Daniel Colascione + + * configure.ac: Include GFILENOTIFY objects in glib check. (Bug#17069) + 2014-03-30 Jan Djärv * configure.ac: Add check that GSettings is in libgio (Bug#17118). diff --git a/configure.ac b/configure.ac index 44199c1fb50..971674bb3f2 100644 --- a/configure.ac +++ b/configure.ac @@ -3851,6 +3851,10 @@ AC_CHECK_FUNCS(snprintf) dnl Check this late. It depends on what other libraries (lrsvg, Gtk+ etc) dnl Emacs uses. XGSELOBJ= +OLDCFLAGS="$CFLAGS" +OLDLIBS="$LIBS" +CFLAGS="$CFLAGS $GFILENOTIFY_CFLAGS" +LIBS="$LIBS $GFILENOTIFY_LIBS" AC_MSG_CHECKING([whether GLib is linked in]) AC_LINK_IFELSE([AC_LANG_PROGRAM( [[#include @@ -3865,6 +3869,8 @@ if test "${links_glib}" = "yes"; then XGSELOBJ=xgselect.o fi fi +CFLAGS="$OLDCFLAGS" +LIBS="$OLDLIBS" AC_SUBST(XGSELOBJ) dnl Adapted from Haible's version. -- 2.39.2