[evolution/evolution-3-12] Bug 733295 - configure.ac: Also check for	adwaita-icon-theme
- From: Milan Crha <mcrha src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [evolution/evolution-3-12] Bug 733295 - configure.ac: Also check for	adwaita-icon-theme
 
- Date: Thu, 17 Jul 2014 13:45:50 +0000 (UTC)
 
commit e9fc76338021f3bb156096fe4975932cfd97fde0
Author: Frédéric Péters <fpeters 0d be>
Date:   Thu Jul 17 15:44:33 2014 +0200
    Bug 733295 - configure.ac: Also check for adwaita-icon-theme
 configure.ac |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 689b073..23c5a91 100644
--- a/configure.ac
+++ b/configure.ac
@@ -507,7 +507,21 @@ AC_CHECK_FUNCS(mkdtemp)
 dnl **************************************************
 dnl Gnome Icon Theme
 dnl **************************************************
-PKG_CHECK_MODULES([GIT], [gnome-icon-theme >= gnome_icon_theme_minimum_version])
+AC_MSG_CHECKING(for icon theme)
+PKG_CHECK_EXISTS([gnome-icon-theme >= gnome_icon_theme_minimum_version],
+                have_icon_theme=yes, have_icon_theme=no)
+if test "x$have_icon_theme" != "xyes"; then
+       PKG_CHECK_EXISTS([adwaita-icon-theme],
+                have_icon_theme=yes, have_icon_theme=no)
+fi
+
+if test "x$have_icon_theme" != "xyes"; then
+   AC_MSG_RESULT(no)
+   AC_MSG_FAILURE([You need to have gnome-icon-theme or adwaita-icon-theme installed.])
+else
+   AC_MSG_RESULT(yes)
+fi
+
 
 dnl **************************************************
 dnl Accessibility support
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]