.
[gnulib.git] / m4 / jm-macros.m4
index 2c0ef0c..8ce920c 100644 (file)
@@ -1,4 +1,4 @@
-#serial 32   -*- autoconf -*-
+#serial 34   -*- autoconf -*-
 
 dnl Misc type-related macros for fileutils, sh-utils, textutils.
 
@@ -83,6 +83,11 @@ AC_DEFUN(jm_MACROS,
   AC_REPLACE_FUNCS(memchr memcpy memmove memrchr memset)
   AC_CHECK_FUNCS(getpagesize)
 
+  AC_REPLACE_FUNCS(mkstemp)
+  if test $ac_cv_func_mkstemp != yes; then
+    AC_LIBOBJ(tempname)
+  fi
+
   # By default, argmatch should fail calling usage (1).
   AC_DEFINE(ARGMATCH_DIE, [usage (1)],
            [Define to the function xargmatch calls on failures.])
@@ -219,6 +224,7 @@ AC_DEFUN(jm_CHECK_ALL_HEADERS,
     sys/mntent.h \
     sys/mount.h \
     sys/param.h \
+    sys/resource.h \
     sys/socket.h \
     sys/statfs.h \
     sys/statvfs.h \