X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=libcitadel%2Fconfigure.in;fp=libcitadel%2Fconfigure.in;h=76867ee12018c4f487b282ef54a2d8bc8dde0ace;hp=fb45b74a2068e8c7cf02ef82f8a3de93b012c8a2;hb=b2341111a6a40427f8c7991c34d99af8b25ac6e1;hpb=38d1198ddb58242b90bd84ee152742e8b3426cd2 diff --git a/libcitadel/configure.in b/libcitadel/configure.in index fb45b74a2..76867ee12 100755 --- a/libcitadel/configure.in +++ b/libcitadel/configure.in @@ -10,6 +10,7 @@ AC_INIT(libcitadel, 3.8.13, http://uncensored.citadel.org) AC_CONFIG_SRCDIR(Makefile.in) AC_CONFIG_AUX_DIR(conftools) AC_CONFIG_SRCDIR(tests/Makefile.in) +m4_include([m4/local.m4]) dnl dnl Increment LIBREVISION if source code has changed at all @@ -103,6 +104,36 @@ AC_TRY_COMPILE([ ] ) +AC_MSG_CHECKING([whether your system likes memcpy + HKEY]) +AC_TRY_COMPILE([ +#define _GNU_SOURCE +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#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]) + ] +) + AC_CHECK_HEADERS(iconv.h)