Added --enable-tests
This commit is contained in:
parent
e0db6e3bc9
commit
0ded325541
@ -5,6 +5,18 @@ AC_DEFUN([MOO_AC_DEBUG],[
|
||||
MOO_DEBUG="no"
|
||||
MOO_DEBUG_CFLAGS=
|
||||
|
||||
AC_ARG_ENABLE(tests,
|
||||
AC_HELP_STRING([--enable-tests],[build test programs (default = NO)]),[
|
||||
if test "x$enable_tests" = "xno"; then
|
||||
MOO_ENABLE_TESTS="no"
|
||||
else
|
||||
MOO_ENABLE_TESTS="yes"
|
||||
fi
|
||||
],[
|
||||
MOO_ENABLE_TESTS="no"
|
||||
])
|
||||
AM_CONDITIONAL(MOO_ENABLE_TESTS, test x$MOO_ENABLE_TESTS = "xyes")
|
||||
|
||||
AC_ARG_ENABLE(debug,
|
||||
AC_HELP_STRING([--enable-debug],[enable debug options (default = NO)]),[
|
||||
if test "x$enable_debug" = "xno"; then
|
||||
@ -70,6 +82,10 @@ MOO_PYTHON_DEBUG_CFLAGS="$MOO_DEBUG_GCC_CFLAGS $MOO_PYTHON_DEBUG_CFLAGS -Wall -W
|
||||
MOO_DEBUG_CFLAGS="$MOO_DEBUG_CFLAGS $moo_debug_flags"
|
||||
MOO_PYTHON_DEBUG_CFLAGS="$MOO_PYTHON_DEBUG_CFLAGS $moo_debug_flags"
|
||||
|
||||
if test x$MOO_ENABLE_TESTS = "xyes"; then
|
||||
MOO_DEBUG_CFLAGS="$MOO_DEBUG_CFLAGS -DMOO_ENABLE_TESTS"
|
||||
fi
|
||||
|
||||
AC_SUBST(MOO_DEBUG_CFLAGS)
|
||||
AC_SUBST(MOO_PYTHON_DEBUG_CFLAGS)
|
||||
|
||||
|
@ -106,3 +106,12 @@ moo24_la_LIBADD = moopython/libmoomod24.la libmoo.la $(MOO_LIBS) $(PYTHON24_LIBS
|
||||
|
||||
endif MOO_USE_PYGTK
|
||||
endif !MOO_OS_UNIX
|
||||
|
||||
|
||||
if MOO_ENABLE_TESTS
|
||||
noinst_LTLIBRARIES += libmoo-test.la
|
||||
endif
|
||||
|
||||
libmoo_test_la_LIBADD = $(libmoo_la_LIBADD)
|
||||
libmoo_test_la_LDFLAGS = $(PYTHON_EXTRA_LDFLAGS) -no-undefined -avoid-version
|
||||
libmoo_test_la_SOURCES = $(moo_include_headers)
|
||||
|
Loading…
x
Reference in New Issue
Block a user