summaryrefslogtreecommitdiff
path: root/m4/memcmp.m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-08-17 17:57:38 +0000
committerJim Meyering <jim@meyering.net>2003-08-17 17:57:38 +0000
commit69d741ae8e8fcd1c18c965bac6e7cf147e96361b (patch)
tree62e073815068d79325944748054095e31aba1134 /m4/memcmp.m4
parent56f3c86407c47dde33e1c558312525a4a671b157 (diff)
downloadcoreutils-69d741ae8e8fcd1c18c965bac6e7cf147e96361b.tar.xz
Sync with gnulib.
Diffstat (limited to 'm4/memcmp.m4')
-rw-r--r--m4/memcmp.m425
1 files changed, 19 insertions, 6 deletions
diff --git a/m4/memcmp.m4 b/m4/memcmp.m4
index 1de340938..4442e47b6 100644
--- a/m4/memcmp.m4
+++ b/m4/memcmp.m4
@@ -1,9 +1,22 @@
-#serial 7
+# memcmp.m4 serial 8
+dnl Copyright (C) 2002 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([jm_FUNC_MEMCMP],
-[AC_REQUIRE([AC_FUNC_MEMCMP])dnl
- if test $ac_cv_func_memcmp_working = no; then
- AC_DEFINE(memcmp, rpl_memcmp,
- [Define to rpl_memcmp if the replacement function should be used.])
- fi
+[
+ AC_REQUIRE([AC_FUNC_MEMCMP])
+ if test $ac_cv_func_memcmp_working = no; then
+ AC_DEFINE(memcmp, rpl_memcmp,
+ [Define to rpl_memcmp if the replacement function should be used.])
+ gl_PREREQ_MEMCMP
+ fi
+])
+
+# Prerequisites of lib/memcmp.c.
+AC_DEFUN([gl_PREREQ_MEMCMP], [
+ AC_CHECK_HEADERS_ONCE(string.h)
])