From 94da78b0847a6c49b4980a83e53f2b731db2039e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 11 Oct 2024 08:17:01 +0200 Subject: [PATCH] configure.ac: remove incorrect 4th argument to `AC_CHECK_FUNCS` (#2334) Remove the incorrect 4th argument from `AC_CHECK_FUNCS` calls. The macro uses only three arguments, so it was ignored anyway. Furthermore, in at least once instance it was wrong -- due to a typo in `attr/xatr.h` header name. --- configure.ac | 43 ++++++++----------------------------------- 1 file changed, 8 insertions(+), 35 deletions(-) diff --git a/configure.ac b/configure.ac index 1d7c8da57..a2c4b7bf0 100644 --- a/configure.ac +++ b/configure.ac @@ -924,9 +924,7 @@ if test "x$enable_xattr" != "xno"; then listxattr \ setxattr, [ac_cv_archive_xattr_darwin=yes], - [ac_cv_archive_xattr_darwin=no], - [#include -]) + [ac_cv_archive_xattr_darwin=no]) ] ) elif test "x$ac_cv_header_sys_extattr_h" = "xyes" \ @@ -942,10 +940,7 @@ if test "x$enable_xattr" != "xno"; then extattr_set_fd \ extattr_set_link, [ac_cv_archive_xattr_freebsd=yes], - [ac_cv_archive_xattr_freebsd=no], - [#include -#include -]) + [ac_cv_archive_xattr_freebsd=no]) ] ) elif test "x$ac_cv_header_sys_xattr_h" = "xyes" \ @@ -961,17 +956,7 @@ if test "x$enable_xattr" != "xno"; then llistxattr \ lsetxattr, [ac_cv_archive_xattr_linux=yes], - [ac_cv_archive_xattr_linux=no], - [#if HAVE_SYS_TYPES_H -#include -#endif -#if HAVE_SYS_XATTR_H -#include -#endif -#if HAVE_ATTR_XATTR_H -#include -#endif -]) + [ac_cv_archive_xattr_linux=no]) ] ) elif test "x$ac_cv_header_sys_ea_h" = "xyes"; then @@ -986,9 +971,7 @@ if test "x$enable_xattr" != "xno"; then llistea \ lsetea, [ac_cv_archive_xattr_aix=yes], - [ac_cv_archive_xattr_aix=no], - [#include -]) + [ac_cv_archive_xattr_aix=no]) ] ) fi @@ -1057,7 +1040,7 @@ if test "x$enable_acl" != "xno"; then richacl_get_file \ richacl_set_fd \ richacl_set_file, - [ac_cv_archive_acl_librichacl=yes], [ac_cv_archive_acl_librichacl=no], [#include ])]) + [ac_cv_archive_acl_librichacl=yes], [ac_cv_archive_acl_librichacl=no])]) fi if test "x$ac_cv_func_acl" = "xyes" \ @@ -1099,14 +1082,7 @@ if test "x$enable_acl" != "xno"; then acl_set_file \ acl_set_qualifier \ acl_set_tag_type, - [ac_cv_posix_acl_funcs=yes], [ac_cv_posix_acl_funcs=no], - [#if HAVE_SYS_TYPES_H - #include - #endif - #if HAVE_SYS_ACL_H - #include - #endif - ]) + [ac_cv_posix_acl_funcs=yes], [ac_cv_posix_acl_funcs=no]) ]) AC_CHECK_FUNCS(acl_get_perm) @@ -1133,14 +1109,11 @@ if test "x$enable_acl" != "xno"; then acl_is_trivial_np \ acl_set_entry_type_np \ acl_set_fd_np \ - acl_set_link_np,,, - [#include - #include ]) + acl_set_link_np) AC_CHECK_FUNCS(mbr_uid_to_uuid \ mbr_uuid_to_id \ - mbr_gid_to_uuid,,, - [#include ]) + mbr_gid_to_uuid) AC_CHECK_DECLS([ACL_TYPE_EXTENDED, ACL_TYPE_NFS4, ACL_USER, ACL_SYNCHRONIZE], [], [], -- 2.47.2