summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhasufell <julian.ospald@googlemail.com>2013-03-31 16:35:02 +0200
committerhasufell <julian.ospald@googlemail.com>2013-03-31 16:35:02 +0200
commit212adf63ce136182524ee425293957345743cede (patch)
tree72151ad6627131df2316cab613342bc097261346
parentf317076cb23745d3b03d09bde817fb66bdf81a26 (diff)
CONFIGURE: fix configure when gtk+ is not installed
AM_PATH_GTK_2_0 would be an undefined macro then
-rw-r--r--configure.ac18
1 files changed, 10 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac
index f4ceb031..62cb9292 100644
--- a/configure.ac
+++ b/configure.ac
@@ -199,14 +199,16 @@ dnl *********************************************************************
 dnl ** GTK **************************************************************
 dnl *********************************************************************
 
-AM_PATH_GTK_2_0(2.10.0, havegtk=yes, havegtk=no)
-
-if test "$havegtk" = no; then
-	gtkfe=no
-	echo
-	echo Cannot find GTK\! Not building GTK FrontEnd.
-	echo
-fi
+# we might get undefined macro without this test
+if test "$gtkfe" = yes ; then
+	AM_PATH_GTK_2_0(2.10.0, havegtk=yes, havegtk=no)
+
+	if test "$havegtk" = no; then
+		gtkfe=no
+		echo
+		echo Cannot find GTK\! Not building GTK FrontEnd.
+		echo
+	fi
 
 if test "$gtkfe" != yes; then
 	gnome=no