bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] acl: fix compilation test


From: Eric Blake
Subject: [PATCH] acl: fix compilation test
Date: Thu, 26 Aug 2010 15:54:48 -0600

* m4/acl.m4 (gl_FUNC_ALL): Use correct format for
AC_COMPILE_IFELSE.

Signed-off-by: Eric Blake <address@hidden>
---

Thanks again, Bruno, for insisting that I make AC_COMPILE_IFELSE
do some sanity checking.  It caught this bug.

 ChangeLog |    6 ++++++
 m4/acl.m4 |    6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 5b72904..189f4cf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-08-26  Eric Blake  <address@hidden>
+
+       acl: fix compilation test
+       * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
+       AC_COMPILE_IFELSE.
+
 2010-08-26  Bruno Haible  <address@hidden>

        Modernize AC_TRY_RUN invocations.
diff --git a/m4/acl.m4 b/m4/acl.m4
index 03c0f10..25a6237 100644
--- a/m4/acl.m4
+++ b/m4/acl.m4
@@ -1,5 +1,5 @@
 # acl.m4 - check for access control list (ACL) primitives
-# serial 9
+# serial 10

 # Copyright (C) 2002, 2004-2010 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -45,10 +45,10 @@ AC_DEFUN([gl_FUNC_ACL],
              AC_REPLACE_FUNCS([acl_entries])
              AC_CACHE_CHECK([for ACL_FIRST_ENTRY],
                [gl_cv_acl_ACL_FIRST_ENTRY],
-               [AC_COMPILE_IFELSE(
+               [AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
 [[#include <sys/types.h>
 #include <sys/acl.h>
-int type = ACL_FIRST_ENTRY;]],
+int type = ACL_FIRST_ENTRY;]])],
                   [gl_cv_acl_ACL_FIRST_ENTRY=yes],
                   [gl_cv_acl_ACL_FIRST_ENTRY=no])])
              if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
-- 
1.7.2.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]