dnl Process this file with autoconf to produce a configure script.
dnl $Id$
-AC_INIT([WebCit], [8.13], [http://www.citadel.org/])
+AC_INIT([WebCit], [8.20], [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,
wwwdir=$ac_default_prefix
rundir=$ac_default_prefix
editordir=$ac_default_prefix/tiny_mce
+ etcdir=$ac_default_prefix
else
localedir=$prefix
wwwdir=$prefix
datadir=$prefix
rundir=$prefix
editordir=$prefix/tiny_mce
+ etcdir=$prefix
fi
dnl where to put the locale files
)
AC_DEFINE_UNQUOTED(EDITORDIR, "$editordir", [where to find our mail editor])
+dnl Checks where to find our configs
+AC_ARG_WITH(etcdir,
+ [ --with-etcdir directory to read our configs],
+ [ if test "x$withval" != "xno" ; then
+ etcdir=$withval
+ fi
+ ]
+)
+AC_DEFINE_UNQUOTED(ETCDIR, "$etcdir", [where to find our configs])
+ETCDIR=$etcdir
+AC_SUBST(ETCDIR)
+
abs_srcdir="`cd $srcdir && pwd`"
abs_builddir="`pwd`"
if test "$abs_srcdir" != "$abs_builddir"; then