Added HAVE_SUBSHELL_SUPPORT condition to Makefile files

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2012-12-20 16:44:20 +03:00
parent 0abc3c494f
commit 3dc343f2df
2 changed files with 7 additions and 3 deletions

View File

@ -357,6 +357,7 @@ if test "x$result" != xno; then
AC_DEFINE(HAVE_SUBSHELL_SUPPORT, 1, AC_DEFINE(HAVE_SUBSHELL_SUPPORT, 1,
[Define to enable subshell support]) [Define to enable subshell support])
fi fi
AM_CONDITIONAL(HAVE_SUBSHELL_SUPPORT, [test "x$result" != xno])
AC_MSG_RESULT([$result]) AC_MSG_RESULT([$result])
subshell="$result" subshell="$result"

View File

@ -11,15 +11,18 @@ LIBS=@CHECK_LIBS@ \
$(top_builddir)/lib/libmc.la $(top_builddir)/lib/libmc.la
TESTS = \ TESTS = \
do_cd_command \
examine_cd examine_cd
check_PROGRAMS = $(TESTS) if HAVE_SUBSHELL_SUPPORT
TESTS +=
do_cd_command
do_cd_command_SOURCES = \ do_cd_command_SOURCES = \
do_cd_command.c do_cd_command.c
endif
examine_cd_SOURCES = \ examine_cd_SOURCES = \
examine_cd.c examine_cd.c
check_PROGRAMS = $(TESTS)
EXTRA_DIST = do_cd_command_mock_env.c EXTRA_DIST = do_cd_command_mock_env.c