- Add support for conditional compilation of tests

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@518 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-03-09 21:02:43 +00:00
parent bb1d465b34
commit 3c75e1391d
2 changed files with 15 additions and 2 deletions

View File

@ -322,6 +322,8 @@ policies_PYTHON = \
#
# ############################################################
if COND_TESTS
# DEJATOOL = src/testsuite/example-test.exp
noinst_PROGRAMS = \
@ -395,3 +397,5 @@ noinst_PYTHON += src/testsuite/python_loader_configure.py \
CLEANFILES += \
src/testsuite/.libs/test-python_loader \
src/testsuite/.libs/test-history
endif #~ if COND_TESTS

View File

@ -131,14 +131,23 @@ AC_COMPILE_IFELSE(
])
AC_LANG_POP
dnl check for Doxygen
AC_CHECK_PROG([HAVE_DOXYGEN],[doxygen],[yes])
AC_CHECK_PROG([HAVE_DOT],[dot], [yes])
AM_CONDITIONAL([HAVE_DOXYGEN],[test x$HAVE_DOXYGEN = xyes])
AC_CONFIG_FILES([config/Doxyfile])
dnl see if we've to compile tests
AC_MSG_CHECKING([whether tests have to be built])
AC_ARG_ENABLE([tests],
AS_HELP_STRING([--disable-tests],
[don't compile the tests provided with sgpemv2]),
[compile_tests="$enableval"],
[compile_tests="yes"])
AC_MSG_RESULT([$compile_tests])
AM_CONDITIONAL([COND_TESTS], [test "$compile_tests" = "yes"])
dnl output files
AC_CONFIG_FILES([config/Doxyfile])
AC_CONFIG_HEADERS([config.h:config.h.in])
AC_CONFIG_FILES([