]> gitweb.michael.orlitzky.com - apply-default-acl.git/commitdiff
configure.ac: check for the O_DIRECTORY flag in fcntl.h.
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 28 Feb 2018 14:56:59 +0000 (09:56 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 28 Feb 2018 14:59:40 +0000 (09:59 -0500)
configure.ac

index c9abffe2ddf21acb9769e734e58d80ba3bee6a3e..c2db54d0286e9f0d8ea34f75f9c55093dee19251 100644 (file)
@@ -22,11 +22,14 @@ 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>]])
 LT_INIT
 AC_OUTPUT