diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index f87d7fb5a..5e43dc145 100644 --- a/configure.ac +++ b/configure.ac @@ -46,6 +46,13 @@ LIBMOUNT_LT_MINOR=1 LIBMOUNT_LT_MICRO=0 LIBMOUNT_VERSION_INFO=`expr $LIBMOUNT_LT_MAJOR + $LIBMOUNT_LT_MINOR`:$LIBMOUNT_LT_MICRO:$LIBMOUNT_LT_MINOR +dnl libsmartcols version +LIBSMARTCOLS_VERSION="$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_RELEASE" +LIBSMARTCOLS_LT_MAJOR=1 +LIBSMARTCOLS_LT_MINOR=1 +LIBSMARTCOLS_LT_MICRO=0 +LIBSMARTCOLS_VERSION_INFO=`expr $LIBSMARTCOLS_LT_MAJOR + $LIBSMARTCOLS_LT_MINOR`:$LIBSMARTCOLS_LT_MICRO:$LIBSMARTCOLS_LT_MINOR + # Check whether exec_prefix=/usr: AS_CASE([$exec_prefix:$prefix], [NONE:NONE | NONE:/usr | /usr:*], @@ -792,6 +799,23 @@ AC_DEFINE_UNQUOTED([LIBMOUNT_VERSION], ["$LIBMOUNT_VERSION"], [libmount version dnl +dnl libsmartcols +dnl +AC_ARG_ENABLE([libsmartcols], + AS_HELP_STRING([--disable-libsmartcols], [do not build libsmartcols]), + [], [enable_libsmartcols=check] +) +UL_BUILD_INIT([libsmartcols]) +UL_REQUIRES_LINUX([libsmartcols]) +AM_CONDITIONAL([BUILD_LIBSMARTCOLS], [test "x$build_libsmartcols" = xyes]) +AM_CONDITIONAL([BUILD_LIBSMARTCOLS_TESTS], [test "x$build_libsmartcols" = xyes -a "x$enable_static" = xyes]) + +AC_SUBST([LIBSMARTCOLS_VERSION]) +AC_SUBST([LIBSMARTCOLS_VERSION_INFO]) +AC_DEFINE_UNQUOTED([LIBSMARTCOLS_VERSION], ["$LIBSMARTCOLS_VERSION"], [libsmartcols version string]) + + +dnl dnl libfdisk is enabled all time if possible dnl UL_BUILD_INIT([libfdisk], [check]) @@ -1593,6 +1617,7 @@ libblkid/src/blkid.h libmount/docs/Makefile libmount/docs/version.xml libmount/src/libmount.h +libsmartcols/src/libsmartcols.h po/Makefile.in ]) |