-#serial 26
+#serial 28 -*- Autoconf -*-
-dnl These are the prerequisite macros for files in the lib/
-dnl directories of the fileutils, sh-utils, and textutils packages.
+dnl We use jm_ for non Autoconf macros.
+m4_pattern_forbid([^jm_[ABCDEFGHIJKLMNOPQRSTUVXYZ]])dnl
+
+# These are the prerequisite macros for files in the lib/
+# directories of the fileutils, sh-utils, and textutils packages.
AC_DEFUN([jm_PREREQ],
[
jm_PREREQ_XREADLINK
])
+AC_DEFUN([jm_PREREQ_ARGMATCH],
+[
+ AC_REQUIRE([jm_PREREQ_QUOTEARG])
+ AC_REPLACE_FUNCS(strcasecmp strncasecmp)
+])
+
+# Ask for argmatch.[ch], and set it up.
+AC_DEFUN([jm_FUNC_ARGMATCH],
+[
+ AC_REQUIRE([jm_PREREQ_ARGMATCH])
+ AC_LIBOBJ([argmatch])
+ AC_LIBSOURCES([argmatch.c, argmatch.h])
+])
+
AC_DEFUN([jm_PREREQ_ADDEXT],
[
dnl For addext.c.
AM_C_PROTOTYPES
])
-# AC_DEFUN([jm_PREREQ_HASH],
-# [
-# AC_CHECK_HEADERS(stdlib.h)
-# AC_HEADER_STDBOOL
-# AC_REQUIRE([jm_CHECK_DECLS])
-# ])
-
# If you use human.c, you need the following files:
# inttypes.m4 ulonglong.m4
AC_DEFUN([jm_PREREQ_HUMAN],
[
AC_CHECK_FUNCS(isascii iswprint)
jm_FUNC_MBRTOWC
+ jm_FUNC_MEMCMP
AC_CHECK_HEADERS(limits.h stddef.h stdlib.h string.h wchar.h wctype.h)
AC_HEADER_STDC
AC_C_BACKSLASH_A