build: more libwmc and libqcdm standalone fixes

Make it pass distcheck.
This commit is contained in:
Dan Williams
2012-01-27 15:13:42 -06:00
parent 5fc4e866c2
commit 4fd6264848
5 changed files with 21 additions and 17 deletions

View File

@@ -30,6 +30,8 @@ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
IT_PROG_INTLTOOL([0.35.0])
PKG_CHECK_MODULES(MM, dbus-glib-1 >= 0.86 glib-2.0 >= 2.18 gmodule-2.0 gobject-2.0)
AC_SUBST(MM_CFLAGS)
AC_SUBST(MM_LIBS)
PKG_CHECK_MODULES(GUDEV, gudev-1.0)
AC_SUBST(GUDEV_CFLAGS)
@@ -137,6 +139,10 @@ if ! test x"$ac_distver" = x""; then
AC_DEFINE_UNQUOTED(MM_DIST_VERSION, "$ac_distver", [Define the distribution version string])
fi
# Not building protocol libs standalone
AM_CONDITIONAL(QCDM_STANDALONE, test "yes" = "no")
AM_CONDITIONAL(WMC_STANDALONE, test "yes" = "no")
AC_CONFIG_FILES([
Makefile
marshallers/Makefile

View File

@@ -30,15 +30,14 @@ AC_ARG_WITH(tests, AS_HELP_STRING([--with-tests], [Build libqcdm tests]))
AM_CONDITIONAL(WITH_TESTS, test "x$with_tests" = "xyes")
case $with_tests in
yes)
with_tests=yes
PKG_CHECK_MODULES(MM, glib-2.0 >= 2.18)
AC_SUBST(MM_CFLAGS)
AC_SUBST(MM_LIBS)
;;
*)
with_tests=no
;;
*) ;;
esac
AM_CONDITIONAL(STANDALONE, test "yes" = "yes")
AM_CONDITIONAL(QCDM_STANDALONE, test "yes" = "yes")
AC_CONFIG_FILES([
Makefile

View File

@@ -1,3 +1,5 @@
if WITH_TESTS
INCLUDES = \
-I$(top_srcdir)/libqcdm/src \
-I$(top_srcdir)/src
@@ -21,14 +23,12 @@ test_qcdm_CPPFLAGS = $(MM_CFLAGS)
test_qcdm_LDADD = $(MM_LIBS)
if STANDALONE
if QCDM_STANDALONE
test_qcdm_LDADD += $(top_builddir)/src/libqcdm.la
else
test_qcdm_LDADD += $(top_builddir)/libqcdm/src/libqcdm.la
endif
if WITH_TESTS
check-local: test-qcdm
$(abs_builddir)/test-qcdm

View File

@@ -26,19 +26,18 @@ AC_PROG_LIBTOOL
dnl
dnl Tests
dnl
AC_ARG_WITH(tests, AS_HELP_STRING([--with-tests], [Build libqcdm tests]))
AC_ARG_WITH(tests, AS_HELP_STRING([--with-tests], [Build libwmc tests]))
AM_CONDITIONAL(WITH_TESTS, test "x$with_tests" = "xyes")
case $with_tests in
yes)
with_tests=yes
PKG_CHECK_MODULES(MM, glib-2.0 >= 2.20)
AC_SUBST(MM_CFLAGS)
AC_SUBST(MM_LIBS)
;;
*)
with_tests=no
;;
*) ;;
esac
AM_CONDITIONAL(STANDALONE, test "yes" = "yes")
AM_CONDITIONAL(WMC_STANDALONE, test "yes" = "yes")
AC_CONFIG_FILES([
Makefile

View File

@@ -1,3 +1,5 @@
if WITH_TESTS
INCLUDES = \
-I$(top_srcdir)/libwmc/src \
-I$(top_srcdir)/src
@@ -20,14 +22,12 @@ test_wmc_CPPFLAGS = \
test_wmc_LDADD = $(MM_LIBS)
if STANDALONE
if WMC_STANDALONE
test_wmc_LDADD += $(top_builddir)/src/libwmc.la
else
test_wmc_LDADD += $(top_builddir)/libwmc/src/libwmc.la
endif
if WITH_TESTS
check-local: test-wmc
$(abs_builddir)/test-wmc