[asterisk-commits] russell: trunk r97643 - /trunk/configure.ac

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 9 16:51:16 CST 2008


Author: russell
Date: Wed Jan  9 16:51:15 2008
New Revision: 97643

URL: http://svn.digium.com/view/asterisk?view=rev&rev=97643
Log:
re-add check for gtk1, which is used for pbx_gtkconsole
(related to issue #11706)

Modified:
    trunk/configure.ac

Modified: trunk/configure.ac
URL: http://svn.digium.com/view/asterisk/trunk/configure.ac?view=diff&rev=97643&r1=97642&r2=97643
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Wed Jan  9 16:51:15 2008
@@ -1225,8 +1225,17 @@
 AST_EXT_LIB_CHECK([X11], [X11], [XOpenDisplay], [X11/Xlib.h],,, [standard_path])
 AST_EXT_LIB_CHECK([X11], [X11], [XOpenDisplay], [X11/Xlib.h],, [-I/usr/X11R6/include], [X11R6])
 
-# we don't use gtk right now...
-AST_EXT_TOOL_CHECK([GTK], [gtk])
+PBX_GTK=0
+AC_CHECK_TOOL(GTKCONFIG, gtk-config, No)
+if test ! "x${GTKCONFIG}" = xNo; then
+   GTK_INCLUDE=$(${GTKCONFIG} --cflags gthread)
+   GTK_LIB=$(${GTKCONFIG} --libs gthread)
+   PBX_GTK=1
+   AC_DEFINE([HAVE_GTK], 1, [Define if your system has the GTK libraries.])
+fi
+AC_SUBST(PBX_GTK)
+AC_SUBST(GTK_INCLUDE)
+AC_SUBST(GTK_LIB)
 
 PBX_GTK2=0
 AC_CHECK_TOOL(PKGCONFIG, pkg-config, No)




More information about the asterisk-commits mailing list