]> gitweb.michael.orlitzky.com - apply-default-acl.git/blobdiff - configure.ac
autotools: replace my busted header checks with something that works.
[apply-default-acl.git] / configure.ac
index bd51920beaf244eb0576a45bdd235cc47254ff7e..54d03f7b3dc6975198311e98e4fc3d668810c779 100644 (file)
@@ -1,8 +1,9 @@
 AC_PREREQ([2.68])
 AC_INIT([apply-default-acl], [0.3.0], [michael@orlitzky.com])
 AM_INIT_AUTOMAKE([-Wall foreign no-dist-gzip dist-xz])
-AC_CONFIG_SRCDIR([src/apply-default-acl.c])
 AC_CONFIG_FILES([Makefile src/Makefile])
+AC_CONFIG_SRCDIR([src/apply-default-acl.c])
+AC_CONFIG_MACRO_DIRS([m4])
 
 # Checks for programs.
 AC_PROG_CC
@@ -15,8 +16,14 @@ AC_HEADER_STDBOOL # stdbool.h
 AC_HEADER_STDC    # stdlib.h string.h (implied: errno.h limits.h stdio.h)
 
 # Check for header files not covered by the predefined macros above.
-AC_CHECK_HEADERS([ acl/libacl.h fcntl.h getopt.h libgen.h limits.h ])
-AC_CHECK_HEADERS([ linux/xattr.h sys/acl.h unistd.h ])
+AC_HEADER_REQUIRE(acl/libacl.h)
+AC_HEADER_REQUIRE(fcntl.h)
+AC_HEADER_REQUIRE(getopt.h)
+AC_HEADER_REQUIRE(libgen.h)
+AC_HEADER_REQUIRE(limits.h)
+AC_HEADER_REQUIRE(linux/xattr.h)
+AC_HEADER_REQUIRE(sys/acl.h)
+AC_HEADER_REQUIRE(unistd.h)
 
 # We need openat() with O_NOFOLLOW from POSIX-2008. Without them, we
 # can't operate securely; I would rather refuse to be built.