diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2011-12-02 11:59:20 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-12-05 13:49:58 -0500 |
commit | d488258da8c9d419af6d8ac4f88732b6494455c4 (patch) | |
tree | a3000643d499856820d0e5fd198d0a98fb817e7a /src/conf_macros.m4 | |
parent | 46dfa69060f22a443d4ad9d2bf34441ff1adf2d3 (diff) | |
download | sssd-d488258da8c9d419af6d8ac4f88732b6494455c4.tar.gz sssd-d488258da8c9d419af6d8ac4f88732b6494455c4.tar.xz sssd-d488258da8c9d419af6d8ac4f88732b6494455c4.zip |
Allow using Glib for UTF8 support
Diffstat (limited to 'src/conf_macros.m4')
-rw-r--r-- | src/conf_macros.m4 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4 index 2a109b5f8..81d945eda 100644 --- a/src/conf_macros.m4 +++ b/src/conf_macros.m4 @@ -280,3 +280,23 @@ AC_DEFUN([WITH_NOLOGIN_SHELL], fi AC_DEFINE_UNQUOTED(NOLOGIN_SHELL, "$nologin_shell", [The shell used to deny access to users]) ]) + +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") + ]) |