[glib-networking] Run gio-querymodules after install/uninstall



commit 4e928817b9cc4c03686ab6fc2369b999ff9a868e
Author: Dan Winship <danw gnome org>
Date:   Mon Nov 29 10:48:45 2010 -0500

    Run gio-querymodules after install/uninstall

 Makefile.am  |   10 ++++++++++
 configure.ac |    3 +++
 2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 30f8aea..6e030c1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -12,3 +12,13 @@ endif
 if HAVE_GNUTLS
 SUBDIRS += tls/gnutls
 endif
+
+install-exec-hook:
+	if test -n "$(GIO_QUERYMODULES)" -a -z "$(DESTDIR)"; then \
+		$(GIO_QUERYMODULES) $(GIO_MODULE_DIR) ;           \
+	fi
+
+uninstall-hook:
+	if test -n "$(GIO_QUERYMODULES)" -a -z "$(DESTDIR)"; then \
+		$(GIO_QUERYMODULES) $(GIO_MODULE_DIR) ;           \
+	fi
diff --git a/configure.ac b/configure.ac
index 8f56fd7..bb38138 100644
--- a/configure.ac
+++ b/configure.ac
@@ -42,6 +42,9 @@ AS_IF([test "x$GIO_MODULE_DIR" = "x"],
       [AC_MSG_FAILURE(GIO_MODULE_DIR is missing from gio-2.0.pc)])
 AC_SUBST(GIO_MODULE_DIR)
 
+AC_PATH_PROG(GIO_QUERYMODULES, gio-querymodules)
+AC_SUBST(GIO_QUERYMODULES)
+
 proxy_support=no
 tls_support=no
 



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