summaryrefslogtreecommitdiffstats
path: root/src/external/glib.m4
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-12-02 11:59:20 -0500
committerStephen Gallagher <sgallagh@redhat.com>2011-12-05 11:50:55 -0500
commit39773c2220e06fee3fdbfa43155fbb909cddd6e0 (patch)
tree4364a2154446ec26dbb884e635bd24ab0daa81df /src/external/glib.m4
parent11f9ae2ef3a4884b5e7750a3d549a58a71abc015 (diff)
downloadsssd_unused-39773c2220e06fee3fdbfa43155fbb909cddd6e0.tar.gz
sssd_unused-39773c2220e06fee3fdbfa43155fbb909cddd6e0.tar.xz
sssd_unused-39773c2220e06fee3fdbfa43155fbb909cddd6e0.zip
Allow using Glib for UTF8 support
Diffstat (limited to 'src/external/glib.m4')
-rw-r--r--src/external/glib.m411
1 files changed, 11 insertions, 0 deletions
diff --git a/src/external/glib.m4 b/src/external/glib.m4
new file mode 100644
index 00000000..8cec7632
--- /dev/null
+++ b/src/external/glib.m4
@@ -0,0 +1,11 @@
+PKG_CHECK_MODULES([GLIB2],[glib-2.0])
+
+if test x$has_glib2 != xno; then
+ SAFE_LIBS="$LIBS"
+ LIBS="$GLIB2_LIBS"
+
+ AC_CHECK_FUNC([g_utf8_validate],
+ AC_DEFINE([HAVE_G_UTF8_VALIDATE], [1],
+ [Define if g_utf8_validate exists]))
+ LIBS="$SAFE_LIBS"
+fi \ No newline at end of file