6 AC_ARG_ENABLE(installed-tests,
7 AS_HELP_STRING([--enable-installed-tests],
8 [Enable installation of some test cases]),
10 yes) ENABLE_INSTALLED_TESTS="1" ;;
11 no) ENABLE_INSTALLED_TESTS="" ;;
12 *) AC_MSG_ERROR([bad value ${enableval} for --enable-installed-tests]) ;;
14 AM_CONDITIONAL([ENABLE_INSTALLED_TESTS], test "$ENABLE_INSTALLED_TESTS" = "1")
15 AC_ARG_ENABLE(always-build-tests,
16 AS_HELP_STRING([--enable-always-build-tests],
17 [Enable always building tests during 'make all']),
19 yes) ENABLE_ALWAYS_BUILD_TESTS="1" ;;
20 no) ENABLE_ALWAYS_BUILD_TESTS="" ;;
21 *) AC_MSG_ERROR([bad value ${enableval} for --enable-always-build-tests]) ;;
23 AM_CONDITIONAL([ENABLE_ALWAYS_BUILD_TESTS], test "$ENABLE_ALWAYS_BUILD_TESTS" = "1")
24 if test "$ENABLE_INSTALLED_TESTS" = "1"; then
25 AC_SUBST(installed_test_metadir, [${datadir}/installed-tests/]AC_PACKAGE_NAME)
26 AC_SUBST(installed_testdir, [${libexecdir}/installed-tests/]AC_PACKAGE_NAME)