summaryrefslogtreecommitdiffstats
path: root/src/conf_macros.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:49 -0500
commitb32159300fea63222d8dd9200ed634087704ea74 (patch)
tree1df8dd260bc69f2611e53e05cc64b90e5583d576 /src/conf_macros.m4
parentf46b9fd64ef09aae23220c5adb2fe4d3e4adc553 (diff)
downloadsssd_unused-b32159300fea63222d8dd9200ed634087704ea74.zip
sssd_unused-b32159300fea63222d8dd9200ed634087704ea74.tar.gz
sssd_unused-b32159300fea63222d8dd9200ed634087704ea74.tar.xz
Allow using Glib for UTF8 support
Diffstat (limited to 'src/conf_macros.m4')
-rw-r--r--src/conf_macros.m421
1 files changed, 21 insertions, 0 deletions
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4
index bd661ba..45d5484 100644
--- a/src/conf_macros.m4
+++ b/src/conf_macros.m4
@@ -352,3 +352,24 @@ AC_ARG_ENABLE([all-experimental-features],
[build all experimental features])],
[build_all_experimental_features=$enableval],
[build_all_experimental_features=no])
+
+
+AC_DEFUN([WITH_UNICODE_LIB],
+ [ AC_ARG_WITH([unicode-lib],
+ [AC_HELP_STRING([--with-unicode-lib=<library>],
+ [Which library to use for unicode processing (libunistring, glib2) [libunistring]]
+ )
+ ]
+ )
+ unicode_lib="libunistring"
+ if test x"$with_unicode_lib" != x; then
+ unicode_lib=$with_unicode_lib
+ fi
+
+ if test x"$unicode_lib" != x"libunistring" -a x"$unicode_lib" != x"glib2"; then
+ AC_MSG_ERROR([Unsupported unicode library])
+ fi
+
+ AM_CONDITIONAL([WITH_LIBUNISTRING], test x"$unicode_lib" = x"libunistring")
+ AM_CONDITIONAL([WITH_GLIB], test x"$unicode_lib" = x"glib2")
+ ]) \ No newline at end of file