[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS gsasl/lib
From: |
gsasl-commit |
Subject: |
CVS gsasl/lib |
Date: |
Tue, 30 Nov 2004 15:34:40 +0100 |
Update of /home/cvs/gsasl/lib
In directory dopio:/tmp/cvs-serv4490
Modified Files:
configure.ac
Log Message:
More idn checks.
--- /home/cvs/gsasl/lib/configure.ac 2004/11/30 14:32:24 1.36
+++ /home/cvs/gsasl/lib/configure.ac 2004/11/30 14:34:40 1.37
@@ -363,8 +363,30 @@
if test "$minilibidn_enabled" = "no"; then
sj_CHECK_HEADERLIB(stringprep.h, idn, stringprep_check_version,,
[minilibidn_enabled=yes
+ AC_MSG_WARN([[Libidn not found. Using the included copy.]])
AM_ICONV
- AC_MSG_WARN([[Libidn not found. Using the included copy.]])])
+ # Check if locale stuff works
+ AC_CACHE_CHECK([if setlocale() and nl_langinfo() works],
+ ac_cv_locale_works, [
+ AC_RUN_IFELSE([AC_LANG_SOURCE([[
+#include <locale.h>
+#include <langinfo.h>
+int main ()
+{
+ char* cs;
+ setlocale(LC_CTYPE, "");
+ cs = nl_langinfo(CODESET);
+ return !cs;
+}
+]])],
+ [ac_cv_locale_works=yes],
+ [ac_cv_locale_works=no],
+ [ac_cv_locale_works=no])
+ ])
+ if test "$ac_cv_locale_works" = "yes"; then
+ AC_DEFINE(LOCALE_WORKS, 1,
+ [Define if setlocale() and nl_langinfo() works.])
+ fi])
fi
AC_MSG_CHECKING([whether to use the included libidn])
AC_MSG_RESULT($minilibidn_enabled)
- CVS gsasl/lib, (continued)
- CVS gsasl/lib, gsasl-commit, 2004/11/29
- CVS gsasl/lib, gsasl-commit, 2004/11/29
- CVS gsasl/lib, gsasl-commit, 2004/11/29
- CVS gsasl/lib, gsasl-commit, 2004/11/29
- CVS gsasl/lib, gsasl-commit, 2004/11/29
- CVS gsasl/lib, gsasl-commit, 2004/11/29
- CVS gsasl/lib, gsasl-commit, 2004/11/29
- CVS gsasl/lib, gsasl-commit, 2004/11/29
- CVS gsasl/lib, gsasl-commit, 2004/11/30
- CVS gsasl/lib, gsasl-commit, 2004/11/30
- CVS gsasl/lib,
gsasl-commit <=
- CVS gsasl/lib, gsasl-commit, 2004/11/30