diff options
author | Karel Zak | 2011-03-16 17:03:48 +0100 |
---|---|---|
committer | Karel Zak | 2011-03-16 17:03:48 +0100 |
commit | 403e2d0c026d689baabcc4781d94ca09c2b87683 (patch) | |
tree | d177099970f70e29017b2983adc6519af6e897ee | |
parent | lib: [fsprobe.c] use internal libblkid only (diff) | |
download | kernel-qcow2-util-linux-403e2d0c026d689baabcc4781d94ca09c2b87683.tar.gz kernel-qcow2-util-linux-403e2d0c026d689baabcc4781d94ca09c2b87683.tar.xz kernel-qcow2-util-linux-403e2d0c026d689baabcc4781d94ca09c2b87683.zip |
build-sys: don't support external (e2fsprogs) libuuid
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | configure.ac | 23 | ||||
-rw-r--r-- | disk-utils/Makefile.am | 5 | ||||
-rw-r--r-- | shlibs/blkid/src/Makefile.am | 7 |
3 files changed, 2 insertions, 33 deletions
diff --git a/configure.ac b/configure.ac index 20d60befa..e12f1debb 100644 --- a/configure.ac +++ b/configure.ac @@ -374,33 +374,12 @@ AC_ARG_ENABLE([libuuid], AC_SUBST([LIBUUID_VERSION]) AC_SUBST([LIBUUID_VERSION_INFO]) AM_CONDITIONAL(BUILD_LIBUUID, test "x$enable_libuuid" = xyes) -have_uuid=yes - -if test "x$enable_libuuid" = xno; then - # Check for external (e2fsprogs) libuuid - PKG_CHECK_MODULES(UUID, uuid, [have_uuid=yes], [have_uuid=no]) - if test "x$have_uuid" = xno; then - # system without pkg-config or so, try classic check - AC_CHECK_LIB(uuid, uuid_is_null, [have_uuid=yes], [have_uuid=no]) - fi - if test "x$have_uuid" = xyes; then - UTIL_SET_FLAGS($UUID_CFLAGS, $UUID_CFLAGS, $UUID_LIBS) - AC_CHECK_HEADERS([uuid.h uuid/uuid.h], [break], []) - UTIL_RESTORE_FLAGS - fi -else - # internal library - AC_DEFINE(HAVE_UUID_H, 1, [Define to 1 if you have the <uuid.h> header file.]) -fi -if test "x$have_uuid" = xyes; then +if test "x$enable_libuuid" = xyes; then AC_DEFINE(HAVE_LIBUUID, 1, [Define to 1 if you have the -luuid.]) else AC_MSG_WARN([uuid library is not found; mkswap(8) will not generate UUIDs]) fi -AM_CONDITIONAL(HAVE_UUID, test "x$have_uuid" = xyes) -# default -: ${UUID_LIBS='-luuid'} AC_ARG_ENABLE([uuidd], diff --git a/disk-utils/Makefile.am b/disk-utils/Makefile.am index e95eddb95..16d182a54 100644 --- a/disk-utils/Makefile.am +++ b/disk-utils/Makefile.am @@ -5,14 +5,9 @@ if LINUX utils_common += $(top_srcdir)/lib/linux_version.c endif -if HAVE_UUID if BUILD_LIBUUID uuid_cflags = -I$(ul_libuuid_srcdir) uuid_ldadd = $(ul_libuuid_la) -else -uuid_cflags = $(UUID_CFLAGS) -uuid_ldadd = $(UUID_LIBS) -endif endif dist_man_MANS = isosize.8 mkfs.8 mkswap.8 \ diff --git a/shlibs/blkid/src/Makefile.am b/shlibs/blkid/src/Makefile.am index 73f0030fc..f385156aa 100644 --- a/shlibs/blkid/src/Makefile.am +++ b/shlibs/blkid/src/Makefile.am @@ -5,14 +5,9 @@ SUBDIRS = superblocks topology partitions . common_ldadd = common_cflags = -if HAVE_UUID if BUILD_LIBUUID common_ldadd += $(ul_libuuid_la) common_cflags += -I$(ul_libuuid_srcdir) -else -common_ldadd += $(UUID_LIBS) -common_cflags += $(UUID_CFLAGS) -endif endif AM_CPPFLAGS += -I$(ul_libblkid_incdir) -I$(ul_libblkid_srcdir) $(common_cflags) @@ -56,7 +51,7 @@ CLEANFILES = $(tests) tests: all $(tests) test_%: %.c - $(AM_V_CC)$(COMPILE) -DTEST_PROGRAM $< .libs/libblkid.a -o $@ $(UUID_LIBS) + $(AM_V_CC)$(COMPILE) -DTEST_PROGRAM $< .libs/libblkid.a -o $@ -luuid # move lib from $(usrlib_execdir) to $(libdir) if needed |