diff m4/memmem.m4 @ 5310:26382eb5dbd2

New module 'memmem', from Simon Josefsson.
author Bruno Haible <bruno@clisp.org>
date Mon, 04 Oct 2004 11:25:57 +0000 (2004-10-04)
parents
children 87c42e194f4a
line wrap: on
line diff
new file mode 100644
--- /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], [:])