mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
additional diagnostic messages when we can't find headers/libs we need.
This commit is contained in:
+9
-1
@@ -122,24 +122,28 @@ AC_CHECK_HEADER(xfs/libxfs.h,, [
|
||||
echo
|
||||
echo 'FATAL ERROR: could not find a valid XFS library header.'
|
||||
echo 'Install either the xfsprogs-devel (rpm) or the xfslibs-dev (deb) package.'
|
||||
echo 'Alternatively, run "make install-dev" from the xfsprogs source.'
|
||||
exit 1
|
||||
])
|
||||
AC_CHECK_LIB(xfs, libxfs_init,, [
|
||||
echo
|
||||
echo 'FATAL ERROR: could not find a valid XFS base library.'
|
||||
echo 'Install either the xfsprogs-devel (rpm) or the xfslibs-dev (deb) package.'
|
||||
echo 'Alternatively, run "make install-dev" from the xfsprogs source.'
|
||||
exit 1
|
||||
])
|
||||
AC_CHECK_HEADER(xfs/handle.h,, [
|
||||
echo
|
||||
echo 'FATAL ERROR: could not find a valid XFS handle header.'
|
||||
echo 'Install either the xfsprogs-devel (rpm) or the xfslibs-dev (deb) package.'
|
||||
echo 'Alternatively, run "make install-dev" from the xfsprogs source.'
|
||||
exit 1
|
||||
])
|
||||
AC_CHECK_LIB(handle, path_to_handle,, [
|
||||
echo
|
||||
echo 'FATAL ERROR: could not find a valid XFS handle library.'
|
||||
echo 'Install either the xfsprogs-devel (rpm) or the xfslibs-dev (deb) package.'
|
||||
echo 'Alternatively, run "make install-dev" from the xfsprogs source.'
|
||||
exit 1
|
||||
])
|
||||
libxfs="-lxfs"
|
||||
@@ -152,12 +156,14 @@ AC_CHECK_HEADER(attr/attributes.h,, [
|
||||
echo
|
||||
echo 'FATAL ERROR: could not find a valid Extended Attributes header.'
|
||||
echo 'Install either the attr-devel (rpm) or the attr-dev (deb) package.'
|
||||
echo 'Alternatively, run "make install-dev" from the attr source.'
|
||||
exit 1
|
||||
])
|
||||
AC_CHECK_LIB(attr, attr_get,, [
|
||||
echo
|
||||
echo 'FATAL ERROR: could not find a valid Extended Attributes library.'
|
||||
echo 'Install either the attr-devel (rpm) or the attr-dev (deb) package.'
|
||||
echo 'Alternatively, run "make install-dev" from the attr source.'
|
||||
exit 1
|
||||
])
|
||||
libattr="-lattr"
|
||||
@@ -168,12 +174,14 @@ AC_CHECK_HEADER(sys/acl.h,, [
|
||||
echo
|
||||
echo 'FATAL ERROR: could not find a valid Access Control List header.'
|
||||
echo 'Install either the acl-devel (rpm) or the acl-dev (deb) package.'
|
||||
echo 'Alternatively, run "make install-dev" from the acl source.'
|
||||
exit 1
|
||||
])
|
||||
AC_CHECK_LIB(acl, acl_get,, [
|
||||
AC_CHECK_LIB(acl, acl_init,, [
|
||||
echo
|
||||
echo 'FATAL ERROR: could not find a valid Access Control List library.'
|
||||
echo 'Install either the acl-devel (rpm) or the acl-dev (deb) package.'
|
||||
echo 'Alternatively, run "make install-dev" from the acl source.'
|
||||
exit 1
|
||||
])
|
||||
libacl="-lacl"
|
||||
|
||||
Reference in New Issue
Block a user