From: Eric Blake Date: Thu, 26 Aug 2010 21:53:33 +0000 (-0600) Subject: acl: fix compilation test X-Git-Tag: v0.1~3907 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=2901094a21129406fae6755b8039c772774cab99;p=gnulib.git acl: fix compilation test Detected by pending patch to upcoming autoconf 2.68. * m4/acl.m4 (gl_FUNC_ALL): Use correct format for AC_COMPILE_IFELSE. Signed-off-by: Eric Blake --- diff --git a/ChangeLog b/ChangeLog index 5b729040d..5ae682380 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-08-26 Eric Blake + + acl: fix compilation test + * m4/acl.m4 (gl_FUNC_ALL): Use correct format for + AC_COMPILE_IFELSE. + 2010-08-26 Bruno Haible Modernize AC_TRY_RUN invocations. diff --git a/m4/acl.m4 b/m4/acl.m4 index 03c0f107c..6033d06e4 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 #include -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 @@ -58,10 +58,10 @@ int type = ACL_FIRST_ENTRY;]], dnl On MacOS X, other types of ACLs are supported. AC_CACHE_CHECK([for ACL_TYPE_EXTENDED], [gl_cv_acl_ACL_TYPE_EXTENDED], - [AC_COMPILE_IFELSE( + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM( [[#include #include -int type = ACL_TYPE_EXTENDED;]], +int type = ACL_TYPE_EXTENDED;]])], [gl_cv_acl_ACL_TYPE_EXTENDED=yes], [gl_cv_acl_ACL_TYPE_EXTENDED=no])]) if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then