summaryrefslogtreecommitdiff
path: root/lib/replace/libreplace.m4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-01-02 10:01:11 +1100
committerAndrew Tridgell <tridge@samba.org>2010-01-02 10:08:12 +1100
commitfef3c910da421e890925e5e61275fc457da87f6e (patch)
tree3884c2b98c9ccf3b13b11f2c156769014c1e5527 /lib/replace/libreplace.m4
parent00b39c70f57882a453a8d2e6b0f1f37fd39a2d2a (diff)
downloadsamba-fef3c910da421e890925e5e61275fc457da87f6e.tar.gz
samba-fef3c910da421e890925e5e61275fc457da87f6e.tar.bz2
samba-fef3c910da421e890925e5e61275fc457da87f6e.zip
libreplace: some systems don't have memmem()
added rep_memmem() and a testsuite
Diffstat (limited to 'lib/replace/libreplace.m4')
-rw-r--r--lib/replace/libreplace.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/replace/libreplace.m4 b/lib/replace/libreplace.m4
index af8587938d..1353c1f7d2 100644
--- a/lib/replace/libreplace.m4
+++ b/lib/replace/libreplace.m4
@@ -228,6 +228,8 @@ AC_HAVE_DECL(environ, [#include <unistd.h>])
AC_CHECK_FUNCS(strnlen)
AC_CHECK_FUNCS(strtoull __strtoull strtouq strtoll __strtoll strtoq)
+AC_CHECK_FUNCS(memmem)
+
# this test disabled as we don't actually need __VA_ARGS__ yet
AC_TRY_CPP([
#define eprintf(...) fprintf(stderr, __VA_ARGS__)