diff options
Diffstat (limited to 'libqcdm')
-rw-r--r-- | libqcdm/configure.ac | 9 | ||||
-rw-r--r-- | libqcdm/tests/Makefile.am | 6 |
2 files changed, 7 insertions, 8 deletions
diff --git a/libqcdm/configure.ac b/libqcdm/configure.ac index 8e3d4029..cc9acee3 100644 --- a/libqcdm/configure.ac +++ b/libqcdm/configure.ac @@ -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 diff --git a/libqcdm/tests/Makefile.am b/libqcdm/tests/Makefile.am index ca2839e4..322e016f 100644 --- a/libqcdm/tests/Makefile.am +++ b/libqcdm/tests/Makefile.am @@ -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 |