esac
fi
+# TODO remove devmapper from blkid
+#
+STATIC_BLKID_DEVMAPPER_LIBS=''
+AC_ARG_ENABLE([blkid-devmapper],
+ AS_HELP_STRING([--enable-blkid-devmapper], [build with device-mapper support]),
+ [], with_blkid-devmapper=no
+)
+if test x$with_devmapper = xno; then
+ AM_CONDITIONAL(HAVE_DEVMAPPER, false)
+ DEVMAPPER_LIBS_STATIC=''
+ DEVMAPPER_REQ=''
+ DEVMAPPER_PC_LIBS=''
+else
+ UTIL_CHECK_LIB(devmapper, dm_tree_create)
+ case $with_blkid-devmapper:$have_blkid-devmapper in
+ yes:no) AC_MSG_ERROR([devmapper selected but libdevmapper not found]);;
+ esac
+ UTIL_PKG_STATIC([DEVMAPPER_LIBS_STATIC], [devmapper])
+ DEVMAPPER_REQ="devmapper"
+ DEVMAPPER_PC_LIBS="-ldevmapper"
+
+ # work around stupid devmapper.pc bug in Debian
+ case "$DEVMAPPER_LIBS_STATIC" in
+ *pthread*)
+ ;;
+ *)
+ AC_MSG_WARN([Working around Debian bug 390243...])
+ DEVMAPPER_LIBS_STATIC="-pthread $DEVMAPPER_LIBS_STATIC"
+ ;;
+ esac
+fi
+
+AC_SUBST(DEVMAPPER_REQ)
+AC_SUBST(DEVMAPPER_PC_LIBS)
+AC_SUBST(DEVMAPPER_LIBS_STATIC)
+
AC_ARG_ENABLE([schedutils],
AS_HELP_STRING([--disable-schedutils], [do not build chrt, ionice, teskset]),
lib/Makefile
libs/Makefile
libs/blkid/Makefile
+libs/blkid/blkid.pc
login-utils/Makefile
misc-utils/Makefile
mount/Makefile
include $(top_srcdir)/config/include-Makefile.am
-EXTRA_DIST = README.fsprobe
+# pkg-config stuff
+pkgconfigdir = $(usrlibexecdir)/pkgconfig
+pkgconfig_DATA = blkid.pc
+
+EXTRA_DIST = README.blkid blkid.pc blkid.pc.in
--- /dev/null
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: blkid
+Description: Block device id library
+Version: @VERSION@
+Requires: uuid @DEVMAPPER_REQ@
+Cflags: -I${includedir}
+Libs: -L${libdir} -lblkid
+Libs.private: @DEVMAPPER_PC_LIBS@