From b32159300fea63222d8dd9200ed634087704ea74 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Fri, 2 Dec 2011 11:59:20 -0500 Subject: Allow using Glib for UTF8 support --- src/external/glib.m4 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/external/glib.m4 (limited to 'src/external') 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 -- cgit