summaryrefslogtreecommitdiff
path: root/m4/memmem.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2004-10-04 11:25:57 +0000
committerBruno Haible <bruno@clisp.org>2004-10-04 11:25:57 +0000
commitec03ca352064740b271b27e0be2b562b687b4554 (patch)
treeda053ebccecbb395eda5724aad74d00d3a961a6c /m4/memmem.m4
parent6c84ec765f4d737b28b2016fa273f8db6213b726 (diff)
downloadgnulib-ec03ca352064740b271b27e0be2b562b687b4554.tar.gz
New module 'memmem', from Simon Josefsson.
Diffstat (limited to 'm4/memmem.m4')
-rw-r--r--m4/memmem.m420
1 files changed, 20 insertions, 0 deletions
diff --git a/m4/memmem.m4 b/m4/memmem.m4
new file mode 100644
index 0000000000..2e4a20bc3c
--- /dev/null
+++ b/m4/memmem.m4
@@ -0,0 +1,20 @@
+# memmem.m4 serial 1
+dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
+dnl This file is free software, distributed under the terms of the GNU
+dnl General Public License. As a special exception to the GNU General
+dnl Public License, this file may be distributed as part of a program
+dnl that contains a configuration script generated by Autoconf, under
+dnl the same distribution terms as the rest of that program.
+
+AC_DEFUN([gl_FUNC_MEMMEM],
+[
+ dnl Persuade glibc <string.h> to declare memmem().
+ AC_REQUIRE([AC_GNU_SOURCE])
+
+ AC_REPLACE_FUNCS(memmem)
+ AC_CHECK_DECLS_ONCE(memmem)
+ gl_PREREQ_MEMMEM
+])
+
+# Prerequisites of lib/memmem.c.
+AC_DEFUN([gl_PREREQ_MEMMEM], [:])