dnl Process this file with autoconf to produce a configure script.
dnl $Id$
-AC_INIT([WebCit], [8.10], [http://www.citadel.org/])
+AC_INIT([WebCit], [8.22], [http://www.citadel.org/])
AC_SUBST(PROG_SUBDIRS)
]
)
+AC_MSG_CHECKING([whether your system likes memcpy + HKEY])
+AC_TRY_COMPILE([
+#define _GNU_SOURCE
+#include <ctype.h>
+#include <errno.h>
+#include <string.h>
+#include <unistd.h>
+#include <string.h>
+#include <stdio.h>
+#include <sys/select.h>
+#include <fcntl.h>
+#include <sys/types.h>
+
+#include "lib/libcitadel.h"
+],
+[
+ char foo[22];
+ memcpy(foo, HKEY("foo"));
+
+],
+ [
+
+ AC_MSG_RESULT([yes])
+ ],
+ [
+ AC_DEFINE(UNDEF_MEMCPY, [], [whether we need to undefine memcpy])
+ AC_MSG_RESULT([no])
+ ]
+)
dnl Checks for the Expat XML parser.
AC_CHECK_HEADER(expat.h,
)
AC_DEFINE_UNQUOTED(SSL_DIR, "$ssl_dir", [were should we put our keys?])
+
+
+
+AC_CHECK_FUNCS(strftime_l uselocale gettext)
+
if test "$ok_nls" != "no"; then
AC_CHECK_PROG(ok_xgettext, xgettext, yes, no)
ok_nls=$ok_xgettext
fi
if test "$ok_nls" != "no"; then
- AC_CHECK_FUNCS(strftime_l uselocale gettext)
+ AC_MSG_RESULT(WebCit will be built with national language support.)
+ AC_DEFINE(ENABLE_NLS, [], [whether we have NLS support])
PROG_SUBDIRS="$PROG_SUBDIRS po/webcit/"
+else
+ AC_MSG_RESULT(WebCit will be built without national language support.)
fi
AC_SUBST(SETUP_LIBS)