diff options
| author | Sam Varshavchik | 2019-11-16 16:29:26 -0500 | 
|---|---|---|
| committer | Sam Varshavchik | 2019-11-16 16:29:26 -0500 | 
| commit | d76c85009084abcf64af7282b3c0b2202bafb07f (patch) | |
| tree | e0f99a85f8fa28dc2cac9b0750b813ca3bc434cc /sqwebmail/configure.ac | |
| parent | c8115514b4830a668ce726b2fcb8ab4a3d438ec9 (diff) | |
| download | courier-libs-d76c85009084abcf64af7282b3c0b2202bafb07f.tar.bz2 | |
gettext update.
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 | 
