projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
.
[gnulib.git]
/
m4
/
prereq.m4
diff --git
a/m4/prereq.m4
b/m4/prereq.m4
index
bd18e37
..
e6979b4
100644
(file)
--- a/
m4/prereq.m4
+++ b/
m4/prereq.m4
@@
-1,4
+1,4
@@
-#serial 1
4
+#serial 1
8
dnl These are the prerequisite macros for files in the lib/
dnl directories of the fileutils, sh-utils, and textutils packages.
dnl These are the prerequisite macros for files in the lib/
dnl directories of the fileutils, sh-utils, and textutils packages.
@@
-10,12
+10,14
@@
AC_DEFUN(jm_PREREQ,
jm_PREREQ_DIRNAME
jm_PREREQ_ERROR
jm_PREREQ_GETPAGESIZE
jm_PREREQ_DIRNAME
jm_PREREQ_ERROR
jm_PREREQ_GETPAGESIZE
+ jm_PREREQ_HASH
jm_PREREQ_HUMAN
jm_PREREQ_MBSWIDTH
jm_PREREQ_MEMCHR
jm_PREREQ_QUOTEARG
jm_PREREQ_READUTMP
jm_PREREQ_REGEX
jm_PREREQ_HUMAN
jm_PREREQ_MBSWIDTH
jm_PREREQ_MEMCHR
jm_PREREQ_QUOTEARG
jm_PREREQ_READUTMP
jm_PREREQ_REGEX
+ jm_PREREQ_TEMPNAME # called by mkstemp
])
AC_DEFUN(jm_PREREQ_ADDEXT,
])
AC_DEFUN(jm_PREREQ_ADDEXT,
@@
-53,6
+55,12
@@
AC_DEFUN(jm_PREREQ_GETPAGESIZE,
AC_CHECK_HEADERS(OS.h unistd.h)
])
AC_CHECK_HEADERS(OS.h unistd.h)
])
+AC_DEFUN(jm_PREREQ_HASH,
+[
+ AC_CHECK_HEADERS(stdlib.h stdbool.h)
+ AC_REQUIRE([jm_CHECK_DECLS])
+])
+
# If you use human.c, you need the following files:
# uintmax_t.m4 inttypes_h.m4 ulonglong.m4
AC_DEFUN(jm_PREREQ_HUMAN,
# If you use human.c, you need the following files:
# uintmax_t.m4 inttypes_h.m4 ulonglong.m4
AC_DEFUN(jm_PREREQ_HUMAN,
@@
-70,8
+78,9
@@
AC_DEFUN(jm_PREREQ_MEMCHR,
AC_DEFUN(jm_PREREQ_QUOTEARG,
[
AC_DEFUN(jm_PREREQ_QUOTEARG,
[
- AC_CHECK_FUNCS(isascii iswprint mbrtowc)
- AC_CHECK_HEADERS(limits.h stdlib.h string.h wchar.h wctype.h)
+ AC_CHECK_FUNCS(isascii iswprint)
+ jm_FUNC_MBRTOWC
+ AC_CHECK_HEADERS(limits.h stddef.h stdlib.h string.h wchar.h wctype.h)
AC_HEADER_STDC
AC_C_BACKSLASH_A
AC_MBSTATE_T
AC_HEADER_STDC
AC_C_BACKSLASH_A
AC_MBSTATE_T
@@
-114,3
+123,11
@@
AC_DEFUN(jm_PREREQ_REGEX,
AC_HEADER_STDC
AC_FUNC_ALLOCA
])
AC_HEADER_STDC
AC_FUNC_ALLOCA
])
+
+AC_DEFUN(jm_PREREQ_TEMPNAME,
+[
+ AC_HEADER_STDC
+ AC_HEADER_STAT
+ AC_CHECK_HEADERS(fcntl.h sys/time.h stdint.h unistd.h)
+ AC_CHECK_FUNCS(__secure_getenv gettimeofday)
+])