From 027d27842bd0de293988decfd0ccde37e0f10671 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 28 Feb 2018 09:56:59 -0500 Subject: [PATCH] configure.ac: check for the O_DIRECTORY flag in fcntl.h. --- configure.ac | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index c9abffe..c2db54d 100644 --- a/configure.ac +++ b/configure.ac @@ -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 ]]) AC_CHECK_DECLS([O_NOFOLLOW], [], - [AC_MSG_ERROR(missing required O_NOFOLLOW flag in fcntl.h)], - [[#include ]]) - + [AC_MSG_ERROR(missing required O_NOFOLLOW flag in fcntl.h)], + [[#include ]]) LT_INIT AC_OUTPUT -- 2.44.2