changeset 92271:0a068dfe0b06

(HAVE_GTK): Print a warning if gtk version is < 2.10.
author Jan Djärv <jan.h.d@swipnet.se>
date Wed, 27 Feb 2008 18:31:59 +0000
parents 0b5aac835c1f
children b8ee9505a9c9
files configure.in
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Wed Feb 27 18:20:25 2008 +0000
+++ b/configure.in	Wed Feb 27 18:31:59 2008 +0000
@@ -1666,6 +1666,15 @@
     HAVE_GTK=yes
     AC_DEFINE(HAVE_GTK, 1, [Define to 1 if using GTK.])
     USE_X_TOOLKIT=none
+    if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
+      :
+    else
+      AC_MSG_WARN([[Your version of Gtk+ will have problems with
+       closing open displays.  This is no problem if you just use
+       one display, but if you use more than one and close one of them
+       Emacs may crash.]])
+      sleep 3
+    fi
   fi
 
 fi