about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-04-27 22:49:20 +0100
committerJames Booth <boothj5@gmail.com>2016-04-27 22:49:20 +0100
commit94f0550c510159e0bb1b35cdf835bbc445370730 (patch)
tree3542b82c40c8f002c15b4af9e39aba9126edfbbb
parentd4789ac375d29457aff3e8c009edb9311de8ed13 (diff)
downloadprofani-tty-94f0550c510159e0bb1b35cdf835bbc445370730.tar.gz
Allow --disable-icons
-rw-r--r--configure.ac14
1 files changed, 7 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac
index 0057c3e5..5fe0dbcf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -64,7 +64,7 @@ AC_ARG_WITH([xscreensaver],
 AC_ARG_WITH([themes],
     [AS_HELP_STRING([--with-themes[[=PATH]]], [install themes (default yes)])])
 AC_ARG_ENABLE([icons],
-    [AS_HELP_STRING([--enable-icons], [enable icons])])
+    [AS_HELP_STRING([--enable-icons], [enable GTK tray icons])])
 
 ### plugins
 
@@ -166,12 +166,12 @@ PKG_CHECK_MODULES([glib], [glib-2.0 >= 2.26], [],
 PKG_CHECK_MODULES([curl], [libcurl], [],
     [AC_MSG_ERROR([libcurl is required for profanity])])
 
-# Checks GTK+ 2.0
-PKG_CHECK_MODULES([GTK], [gtk+-2.0 >= 2.24.10],
-                  [AC_DEFINE([HAVE_GTK], [1], [libgtk module])],
-                  [AS_IF([test "x$enable_icons" = xyes],
-                         [AC_MSG_ERROR([gtk+-2.0 or higher is required for icons])],
-                         [AC_MSG_NOTICE([gtk+-2.0 not found, icons not enabled])])])
+AS_IF([test "x$enable_icons" != xno],
+    [PKG_CHECK_MODULES([GTK], [gtk+-2.0 >= 2.24.10],
+        [AC_DEFINE([HAVE_GTK], [1], [libgtk module])],
+        [AS_IF([test "x$enable_icons" = xyes],
+            [AC_MSG_ERROR([gtk+-2.0 or higher is required for icons])],
+            [AC_MSG_NOTICE([gtk+-2.0 not found, icons not enabled])])])])
 
 AS_IF([test "x$PLATFORM" != xosx],
     [AC_CHECK_LIB([readline], [main], [],