From a17a4821ac20e46aa2289168596535a8ead01db1 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Sat, 29 Jul 2017 20:18:19 +0200 Subject: Fix make distcheck Add all headers to _SOURCES Cleanup update-mime-database (and c.o.) and disable them for distcheck as they leave files after uninstall --- configure.ac | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index fdf8800..2d7c041 100644 --- a/configure.ac +++ b/configure.ac @@ -166,8 +166,20 @@ AS_IF([test x$qt_check = xyes], ]) AM_CONDITIONAL([HAVE_QT],[test "x$have_qt" = "x1"]) + AM_CONDITIONAL([HAVE_GUI],[test "x$have_gtk" = "x1" -o "x$have_qt" = "x1"]) +AC_ARG_ENABLE([update-mimedb], + [AC_HELP_STRING([--disable-update-mimedb], [disable the update-mime-database after install])], + [enable_update_mimedb=$enableval], + [enable_update_mimedb=yes]) +AM_CONDITIONAL([ENABLE_UPDATE_MIMEDB], [test "x$enable_update_mimedb" = "xyes"]) +AS_IF([test "x$have_gtk" = "x1" -o "x$have_qt" = "x1"], + [AC_PATH_PROG([UPDATE_MIME_DATABASE], [update-mime-database], [no]) + AC_PATH_PROG([UPDATE_DESKTOP_DATABASE], [update-desktop-database], [no])]) +AS_IF([test "x$have_gtk" = "x1"], + [AC_PATH_PROG([GTK_UPDATE_ICON_CACHE], [gtk-update-icon-cache], [no])]) + # Finish up AC_CONFIG_HEADERS([src/config.h]) -- cgit v1.2.3-70-g09d2