- 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:
parent
bb1d465b34
commit
3c75e1391d
|
@ -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
|
||||
|
|
13
configure.ac
13
configure.ac
|
@ -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([
|
||||
|
|
Loading…
Reference in New Issue