diff options
Diffstat (limited to 'sqwebmail/configure.ac')
| -rw-r--r-- | sqwebmail/configure.ac | 14 | 
1 files changed, 13 insertions, 1 deletions
| diff --git a/sqwebmail/configure.ac b/sqwebmail/configure.ac index e30a78d..c1be861 100644 --- a/sqwebmail/configure.ac +++ b/sqwebmail/configure.ac @@ -253,7 +253,19 @@ if test "$sqwebmail_with_libcharset" = "yes"; then    AC_DEFINE_UNQUOTED(USE_LIBCHARSET, 1,  	[ Set this to 1 to use libcharset library. ])  else -  AM_LANGINFO_CODESET + +  AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset], +    [AC_LINK_IFELSE( +       [AC_LANG_PROGRAM( +          [[#include <langinfo.h>]], +          [[char* cs = nl_langinfo(CODESET); return !cs;]])], +       [am_cv_langinfo_codeset=yes], +       [am_cv_langinfo_codeset=no]) +    ]) +  if test $am_cv_langinfo_codeset = yes; then +    AC_DEFINE([HAVE_LANGINFO_CODESET], [1], +      [Define if you have <langinfo.h> and nl_langinfo(CODESET).]) +  fi  fi  dnl Other | 
