mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
871be1d8b5
The xfstests autotools currently searches locally in
../{acl,attr,dmapi,xfsprogs}
for libraries that xfstests depends upon, in addition to searching for them in
their regular installed locations on a system, e.g. /usr/lib. It appears this
feature was added (but not documented) so that xfs developers can build and run
xfstests without having to install the libraries. This can lead to trouble if
you expect that xfstests is using the versions of the libraries installed on
the system.
If a local library was found and not installed, libtool will create a wrapper
script to call the binary from the .libs directory. This patch will remove
searching for local libraries so that the installed libraries are always used.
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myer <bpm@sgi.com>
37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
AC_DEFUN([AC_PACKAGE_NEED_SYS_ACL_H],
|
|
[ AC_CHECK_HEADERS([sys/acl.h])
|
|
if test "$ac_cv_header_sys_acl_h" != "yes"; then
|
|
echo
|
|
echo 'FATAL ERROR: sys/acl.h does not exist.'
|
|
echo 'Install the access control lists (acl) development package.'
|
|
echo 'Alternatively, run "make install-dev" from the acl source.'
|
|
exit 1
|
|
fi
|
|
])
|
|
|
|
AC_DEFUN([AC_PACKAGE_NEED_ACL_LIBACL_H],
|
|
[ AC_CHECK_HEADERS([acl/libacl.h])
|
|
if test "$ac_cv_header_acl_libacl_h" != "yes"; then
|
|
echo
|
|
echo 'FATAL ERROR: acl/libacl.h does not exist.'
|
|
echo 'Install the access control lists (acl) development package.'
|
|
echo 'Alternatively, run "make install-dev" from the acl source.'
|
|
exit 1
|
|
fi
|
|
])
|
|
|
|
|
|
AC_DEFUN([AC_PACKAGE_NEED_ACLINIT_LIBACL],
|
|
[ AC_CHECK_LIB(acl, acl_init,, [
|
|
echo
|
|
echo 'FATAL ERROR: could not find a valid Access Control List library.'
|
|
echo 'Install either the libacl (rpm) or the libacl1 (deb) package.'
|
|
echo 'Alternatively, run "make install-lib" from the acl source.'
|
|
exit 1
|
|
])
|
|
libacl="-lacl"
|
|
test -f ${libexecdir}${libdirsuffix}/libacl.la && \
|
|
libacl="${libexecdir}${libdirsuffix}/libacl.la"
|
|
AC_SUBST(libacl)
|
|
])
|