summaryrefslogtreecommitdiffstats
path: root/sqwebmail/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'sqwebmail/configure.ac')
-rw-r--r--sqwebmail/configure.ac19
1 files changed, 16 insertions, 3 deletions
diff --git a/sqwebmail/configure.ac b/sqwebmail/configure.ac
index c38fab4..ef5e64e 100644
--- a/sqwebmail/configure.ac
+++ b/sqwebmail/configure.ac
@@ -1,8 +1,8 @@
dnl
-dnl Copyright 1998 - 2017 Double Precision, Inc. See COPYING for
+dnl Copyright 1998 - 2019 Double Precision, Inc. See COPYING for
dnl distribution information.
-AC_INIT(sqwebmail, 6.0.0, [courier-sqwebmail@lists.sourceforge.net])
+AC_INIT(sqwebmail, 6.0.4, [courier-sqwebmail@lists.sourceforge.net])
>confdefs.h # Kill PACKAGE_ macros
@@ -17,6 +17,7 @@ AC_PROG_MAKE_SET
dnl Checks for programs.
AC_USE_SYSTEM_EXTENSIONS
AC_PROG_CC
+AC_PROG_CC_C99
AC_LIBTOOL_DLOPEN
AM_PROG_LIBTOOL
@@ -253,7 +254,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