gtestutils: Fix a typo in a documentation comment
[glib.git] / m4macros / glibtests.m4
blob7d5920a43c76d68affa5cbc8b8c3a8fbb5cfb017
1 dnl GLIB_TESTS
2 dnl
4 AC_DEFUN([GLIB_TESTS],
6   AC_ARG_ENABLE(installed-tests,
7                 AS_HELP_STRING([--enable-installed-tests],
8                                [Enable installation of some test cases]),
9                 [case ${enableval} in
10                   yes) ENABLE_INSTALLED_TESTS="1"  ;;
11                   no)  ENABLE_INSTALLED_TESTS="" ;;
12                   *) AC_MSG_ERROR([bad value ${enableval} for --enable-installed-tests]) ;;
13                  esac])
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']),
18                 [case ${enableval} in
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]) ;;
22                  esac])
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)
27   fi