Show capability list with --version option

This commit is contained in:
Kenjiro Nakayama 2014-11-26 20:02:19 +09:00 committed by Colin Walters
parent 3ffbaf3031
commit c62ad4d691
3 changed files with 7 additions and 1 deletions

View File

@ -23,6 +23,7 @@ ACLOCAL_AMFLAGS += -I m4 ${ACLOCAL_FLAGS}
AM_CPPFLAGS += -DDATADIR='"$(datadir)"' \
-DLIBEXECDIR='"$(libexecdir)"' \
-DLOCALEDIR=\"$(datadir)/locale\" \
-DRPM_OSTREE_FEATURES='"$(RPM_OSTREE_FEATURES)"' \
-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_36 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_36
AM_CFLAGS += $(WARN_CFLAGS)

View File

@ -29,6 +29,9 @@ AC_SUBST(WARN_CFLAGS)
LT_PREREQ([2.2.4])
LT_INIT([disable-static])
RPM_OSTREE_FEATURES=""
AC_SUBST([RPM_OSTREE_FEATURES])
PKG_PROG_PKG_CONFIG
save_LIBS="$LIBS"
@ -58,6 +61,7 @@ AM_CONDITIONAL(BUILDOPT_PATCHED_HAWKEY_AND_LIBSOLV, [test x$enable_patched_hawke
AS_IF([test x$enable_patched_hawkey_and_libsolv = xyes], [
AC_DEFINE(HAVE_PATCHED_HAWKEY_AND_LIBSOLV, 1, [Define if we have patched hawkey and libsolv])
])
if test x$enable_patched_hawkey_and_libsolv != xno; then RPM_OSTREE_FEATURES="$RPM_OSTREE_FEATURES +packaging"; fi
AC_ARG_ENABLE(usrbinatomic,
AS_HELP_STRING([--enable-usrbinatomic],
@ -75,6 +79,7 @@ AM_CONDITIONAL(BUILDOPT_COMPOSE_TOOLING, [test x$enable_compose_tooling = xyes])
AS_IF([test x$enable_compose_tooling = xyes], [
AC_DEFINE(HAVE_COMPOSE_TOOLING, 1, [Define if we are building compose tooling])
])
if test x$enable_compose_tooling != xno; then RPM_OSTREE_FEATURES="$RPM_OSTREE_FEATURES +compose"; fi
AC_CONFIG_FILES([
Makefile

View File

@ -115,7 +115,7 @@ main (int argc,
}
else if (cmd == NULL && g_str_equal (argv[in], "--version"))
{
g_print ("%s\n %s\n", PACKAGE_STRING, "");
g_print ("%s\n %s\n", PACKAGE_STRING, RPM_OSTREE_FEATURES);
return 0;
}
else if (cmd == NULL)