Run gio-querymodules after install/uninstall
authorDan Winship <danw@gnome.org>
Mon, 29 Nov 2010 15:48:45 +0000 (10:48 -0500)
committerDan Winship <danw@gnome.org>
Mon, 29 Nov 2010 15:48:45 +0000 (10:48 -0500)
Makefile.am
configure.ac

index 30f8aea..6e030c1 100644 (file)
@@ -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
index 8f56fd7..bb38138 100644 (file)
@@ -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