]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix a subtle wrong library check that caused libarchive to depend on libattr when... 111/head
authorAndreas Stieger <andreas.stieger@gmx.de>
Sun, 22 Mar 2015 19:44:26 +0000 (20:44 +0100)
committerAndreas Stieger <andreas.stieger@gmx.de>
Sun, 22 Mar 2015 19:44:26 +0000 (20:44 +0100)
configure.ac

index 92a9ff93a45e564eeb49f0432ded1fbbc626b8d1..767ea9698de61d58b47615f9a5b993bb9181e0bf 100644 (file)
@@ -629,7 +629,7 @@ AC_ARG_ENABLE([xattr],
 if test "x$enable_xattr" != "xno"; then
        AC_CHECK_HEADERS([attr/xattr.h])
        AC_CHECK_HEADERS([sys/xattr.h sys/ea.h])
-       AC_CHECK_LIB(attr,setxattr)
+       AC_SEARCH_LIBS([setxattr], [attr])
        AC_CHECK_FUNCS([extattr_get_file extattr_list_file])
        AC_CHECK_FUNCS([extattr_set_fd extattr_set_file])
        AC_CHECK_FUNCS([fgetxattr flistxattr fsetxattr getxattr])