.
[gnulib.git] / m4 / prereq.m4
index 16aa53a..790adaf 100644 (file)
@@ -1,4 +1,4 @@
-#serial 1
+#serial 2
 
 dnl These are the prerequisite macros for files in the lib/
 dnl directories of the fileutils, sh-utils, and textutils packages.
@@ -6,4 +6,17 @@ dnl directories of the fileutils, sh-utils, and textutils packages.
 AC_DEFUN(jm_PREREQ,
 [
   jm_PREREQ_ERROR
+  jm_PREREQ_REGEX
+])
+
+dnl FIXME: maybe put this in a separate file
+AC_DEFUN(jm_PREREQ_REGEX,
+[
+  dnl FIXME: Maybe provide a btowc replacement someday: solaris-2.5.1 lacks it.
+  dnl FIXME: Check for wctype and iswctype, and and add -lw if necessary
+  dnl to get them.
+  AC_CHECK_FUNCS(bzero bcopy isascii btowc)
+  AC_CHECK_HEADERS(alloca.h libintl.h wctype.h wchar.h)
+  AC_HEADER_STDC
+  AC_FUNC_ALLOCA
 ])