3 dnl Misc type-related macros for fileutils, sh-utils, textutils.
7 AC_PREREQ(2.14.1) dnl Minimum Autoconf version required.
9 GNU_PACKAGE="GNU $PACKAGE"
10 AC_DEFINE_UNQUOTED(GNU_PACKAGE, "$GNU_PACKAGE",
11 [The concatenation of the strings \`GNU ', and PACKAGE.])
14 dnl This macro actually runs replacement code. See isc-posix.m4.
15 AC_REQUIRE([AC_ISC_POSIX])dnl
17 jm_INCLUDED_REGEX([lib/regex.c])
19 AC_REQUIRE([jm_ASSERT])
20 AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
21 AC_REQUIRE([jm_STRUCT_UTIMBUF])
22 AC_REQUIRE([jm_STRUCT_DIRENT_D_TYPE])
23 AC_REQUIRE([jm_STRUCT_DIRENT_D_INO])
24 AC_REQUIRE([jm_CHECK_DECLS])
26 AC_REQUIRE([jm_PREREQ])
28 AC_REQUIRE([jm_FUNC_LCHOWN])
29 AC_REQUIRE([jm_FUNC_CHOWN])
30 AC_REQUIRE([jm_FUNC_MKTIME])
31 AC_REQUIRE([jm_FUNC_LSTAT])
32 AC_REQUIRE([jm_FUNC_STAT])
33 AC_REQUIRE([jm_FUNC_REALLOC])
34 AC_REQUIRE([jm_FUNC_MALLOC])
35 AC_REQUIRE([jm_FUNC_READDIR])
36 AC_REQUIRE([jm_FUNC_MEMCMP])
37 AC_REQUIRE([jm_FUNC_GLIBC_UNLOCKED_IO])
38 AC_REQUIRE([jm_FUNC_FNMATCH])
40 AC_REQUIRE([jm_AC_PREREQ_XSTRTOUMAX])
41 AC_REPLACE_FUNCS(strcasecmp strncasecmp)
42 AC_REPLACE_FUNCS(dup2)
44 # By default, argmatch should fail calling usage (1).
45 AC_DEFINE(ARGMATCH_DIE, [usage (1)],
46 [Define to the function xargmatch calls on failures.])
47 AC_DEFINE(ARGMATCH_DIE_DECL, [extern void usage ()],
48 [Define to the declaration of the xargmatch failure function.])
50 dnl Used to define SETVBUF in sys2.h.
51 AC_FUNC_SETVBUF_REVERSED
55 AC_DEFUN(jm_CHECK_ALL_TYPES,
64 AC_CHECK_TYPE(ino_t, unsigned long)
65 AC_CHECK_TYPE(ssize_t, int)
66 AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
67 AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])