]> gitweb.michael.orlitzky.com - apply-default-acl.git/blobdiff - configure.ac
src/libadacl.c: fix a function name inside perror output.
[apply-default-acl.git] / configure.ac
index 2e48d4bfa4fe5f0c909e269f5dbd0ddbb7419d2d..e64224a7a3077f3ddc993315399abfe390915abb 100644 (file)
@@ -1,6 +1,6 @@
 AC_PREREQ([2.68])
-AC_INIT([apply-default-acl], [0.1.0], [michael@orlitzky.com])
-AM_INIT_AUTOMAKE([foreign]) # don't bug me a bout README, NEWS, etc.
+AC_INIT([apply-default-acl], [0.1.4], [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])
 
@@ -22,11 +22,20 @@ AC_CHECK_HEADERS([ sys/libacl.h sys/types.h unistd.h ])
 # can't operate securely; I would rather refuse to be built.
 AC_CHECK_FUNC(openat,
               [],
-             AC_MSG_ERROR(missing required openat function))
+              AC_MSG_ERROR(missing required openat function))
+AC_CHECK_DECLS([O_DIRECTORY],
+               [],
+               [AC_MSG_ERROR(missing required O_DIRECTORY flag in fcntl.h)],
+               [[#include <fcntl.h>]])
 AC_CHECK_DECLS([O_NOFOLLOW],
                [],
-              [AC_MSG_ERROR(missing required O_NOFOLLOW flag in fcntl.h)],
-              [[#include <fcntl.h>]])
+               [AC_MSG_ERROR(missing required O_NOFOLLOW flag in fcntl.h)],
+               [[#include <fcntl.h>]])
+AC_CHECK_DECLS([O_PATH],
+               [],
+               [AC_MSG_ERROR(missing required O_PATH flag in fcntl.h)],
+               [[#define _GNU_SOURCE
+                #include <fcntl.h>]])
 
 LT_INIT
 AC_OUTPUT