]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - m4/package_uuiddev.m4
xfs: remove xfs_bunmapi_cow
[thirdparty/xfsprogs-dev.git] / m4 / package_uuiddev.m4
1 AC_DEFUN([AC_PACKAGE_NEED_UUID_H],
2 [ AC_CHECK_HEADERS([uuid.h sys/uuid.h uuid/uuid.h])
3 if test $ac_cv_header_uuid_h = no -a \
4 $ac_cv_header_sys_uuid_h = no -a \
5 $ac_cv_header_uuid_uuid_h = no; then
6 echo
7 echo 'FATAL ERROR: could not find a valid UUID header.'
8 echo 'Install the Universally Unique Identifiers development package.'
9 exit 1
10 fi
11 ])
12
13 AC_DEFUN([AC_PACKAGE_NEED_UUIDCOMPARE],
14 [ AC_CHECK_FUNCS(uuid_compare)
15 if test $ac_cv_func_uuid_compare = yes; then
16 libuuid=""
17 else
18 AC_CHECK_LIB(uuid, uuid_compare,, [
19 echo
20 echo 'FATAL ERROR: could not find a valid UUID library.'
21 echo 'Install the Universally Unique Identifiers library package.'
22 exit 1])
23 libuuid="-luuid"
24 fi
25 AC_SUBST(libuuid)
26 ])