summaryrefslogtreecommitdiffstats
path: root/acinclude.m4.in
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-02 04:08:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-02 04:08:27 +0000
commit5a98346b804bc62a306c1adcf8ba8f41e3e36b73 (patch)
treeeba57a01a2119886ad852b97346fdf9a23a41bfb /acinclude.m4.in
parent7344e1ff5e5ba1ec49603af4afffc50efc0d7087 (diff)
downloadadmin-5a98346b804bc62a306c1adcf8ba8f41e3e36b73.tar.gz
admin-5a98346b804bc62a306c1adcf8ba8f41e3e36b73.zip
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
Diffstat (limited to 'acinclude.m4.in')
-rw-r--r--acinclude.m4.in35
1 files changed, 35 insertions, 0 deletions
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],
[