From 5a98346b804bc62a306c1adcf8ba8f41e3e36b73 Mon Sep 17 00:00:00 2001
From: tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>
Date: Sun, 2 Oct 2011 04:08:27 +0000
Subject: Add gtk/glibc checks to global acinclude.m4.in file

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common/admin@1256728 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
---
 acinclude.m4.in | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

(limited to 'acinclude.m4.in')

diff --git a/acinclude.m4.in b/acinclude.m4.in
index a172a25..d596095 100644
--- a/acinclude.m4.in
+++ b/acinclude.m4.in
@@ -6501,6 +6501,41 @@ AC_DEFUN([AM_KDE_MIN_VERSION],
 	AC_LANG_RESTORE
 ])
 
+AC_DEFUN([AC_GLIB_2],
+[
+
+AC_MSG_CHECKING([for glib == 2.0])
+
+GLIB2_LIBS=`$PKG_CONFIG --libs glib-2.0`
+GLIB2_CFLAGS="`$PKG_CONFIG --cflags glib-2.0`"
+if test -z "$GLIB2_LIBS"; then
+        AC_MSG_RESULT(no);
+        DO_NOT_COMPILE="$DO_NOT_COMPILE mozilla"
+else
+        AC_MSG_RESULT([cflags $GLIB2_CFLAGS]);
+        AC_SUBST(GLIB2_CFLAGS)
+        AC_SUBST(GLIB2_LIBS)
+fi
+
+])
+
+AC_DEFUN([AC_GTK_2],
+[
+
+AC_MSG_CHECKING([for gtk == 2.0])
+
+GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
+GTK2_CFLAGS="`$PKG_CONFIG --cflags gtk+-2.0`"
+if test -z "$GTK2_LIBS"; then
+        AC_MSG_RESULT(no);
+        DO_NOT_COMPILE="$DO_NOT_COMPILE mozilla"
+else
+        AC_MSG_RESULT([cflags $GTK2_CFLAGS]);
+        AC_SUBST(GTK2_CFLAGS)
+        AC_SUBST(GTK2_LIBS)
+fi
+
+])
 
 AC_DEFUN([AC_LIBOFX],
 [
-- 
cgit v1.2.1