]> gitweb.michael.orlitzky.com - apply-default-acl.git/blobdiff - configure.ac
run-tests.sh: add tests for "./" and "../" as arguments, too.
[apply-default-acl.git] / configure.ac
index 54d03f7b3dc6975198311e98e4fc3d668810c779..c16c0d78f1228e6d600080d19f4eec0177bd4c50 100644 (file)
@@ -1,5 +1,5 @@
 AC_PREREQ([2.68])
-AC_INIT([apply-default-acl], [0.3.0], [michael@orlitzky.com])
+AC_INIT([apply-default-acl], [0.4.0], [michael@orlitzky.com])
 AM_INIT_AUTOMAKE([-Wall foreign no-dist-gzip dist-xz])
 AC_CONFIG_FILES([Makefile src/Makefile])
 AC_CONFIG_SRCDIR([src/apply-default-acl.c])
@@ -20,7 +20,6 @@ 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)
@@ -44,5 +43,11 @@ AC_CHECK_DECLS([O_PATH],
                [[#define _GNU_SOURCE
                 #include <fcntl.h>]])
 
+# And check for the GNU/BSD extension asprintf(), which lets us avoid
+# praying to the PATH_MAX gods while constructing long paths.
+AC_CHECK_FUNC(asprintf,
+              [],
+              AC_MSG_ERROR(missing required asprintf function))
+
 LT_INIT
 AC_OUTPUT