Files
apfstests/m4/package_dmapidev.m4
T
Dave Chinner 82e1e14dba xfstests: rebuild aclocal.m4
The local m4 configuration has not been built in a long time.
Trying to rebuild it results in failures with dmapi library
detection and libxfs.h detection macros. Fix the errors and rebuild
it.

Note: the new format for the aclocal.m4 file uses m4_include
directives which means it is much smaller than before and won't
need updating unless we include new m4 macro files.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2010-01-26 14:21:47 +11:00

30 lines
1.0 KiB
Plaintext

AC_DEFUN([AC_PACKAGE_NEED_XFS_DMAPI_H],
[ AC_CHECK_HEADERS([xfs/dmapi.h])
if test "$ac_cv_header_xfs_dmapi_h" != yes; then
echo
echo 'FATAL ERROR: could not find a valid DMAPI library header.'
echo 'Install the data migration API (dmapi) development package.'
echo 'Alternatively, run "make install-dev" from the dmapi source.'
exit 1
fi
])
AC_DEFUN([AC_PACKAGE_WANT_DMAPI],
[ AC_CHECK_LIB(dm, dm_make_handle, [ have_dmapi=true ], [
have_dmapi=false
echo
echo 'WARNING: could not find a valid DMAPI base library.'
echo 'If you want DMAPI support please install the data migration'
echo 'API (dmapi) library package. Alternatively, run "make install"'
echo 'from the dmapi source.'
echo
])
libdm="-ldm"
test -f `pwd`/../dmapi/libdm/libdm.la && \
libdm="`pwd`/../dmapi/libdm/libdm.la"
test -f ${libexecdir}${libdirsuffix}/libdm.la && \
libdm="${libexecdir}${libdirsuffix}/libdm.la"
AC_SUBST(libdm)
AC_SUBST(have_dmapi)
])