diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2016-03-29 14:17:16 -0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2016-03-29 14:17:49 -0700 |
commit | 92e2863fb7ff857e424329508d32225eb9b3b3e9 (patch) | |
tree | 9a288cc5ea9ef756d35c83e47fb9890ab8763911 /configure.ac | |
parent | 01c663699ac276d3ec676972914cf3a375907995 (diff) |
Integrate tests with autotools
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 29a281d..7ca9f4f 100644 --- a/configure.ac +++ b/configure.ac @@ -29,13 +29,15 @@ AC_ARG_ENABLE(util, [ --enable-util Compile with util ]) AC_ARG_ENABLE(example, [ --enable-example Compile with examples ]) +AC_ARG_ENABLE(test, + [ --enable-test Compile with tests ]) AC_ARG_ENABLE(mtab, [ --disable-mtab Disable and ignore usage of /etc/mtab ]) AC_ARG_WITH(pkgconfigdir, - [ --with-pkgconfigdir=DIR pkgconfig file in DIR @<:@LIBDIR/pkgconfig@:>@], - [pkgconfigdir=$withval], - [pkgconfigdir='${libdir}/pkgconfig']) + [ --with-pkgconfigdir=DIR pkgconfig file in DIR @<:@LIBDIR/pkgconfig@:>@], + [pkgconfigdir=$withval], + [pkgconfigdir='${libdir}/pkgconfig']) AC_SUBST(pkgconfigdir) subdirs2="include" @@ -49,6 +51,9 @@ fi if test "$enable_example" != "no"; then subdirs2="$subdirs2 example"; fi +if test "$enable_test" != "no"; then + subdirs2="$subdirs2 test"; +fi if test "$enable_mtab" = "no"; then AC_DEFINE(IGNORE_MTAB, 1, [Don't update /etc/mtab]) fi @@ -120,7 +125,7 @@ if test "$arch" = linux -a "$cross_compiling" != "yes"; then fi fi -AC_CONFIG_FILES([fuse3.pc Makefile lib/Makefile util/Makefile example/Makefile include/Makefile doc/Makefile]) +AC_CONFIG_FILES([fuse3.pc Makefile lib/Makefile util/Makefile example/Makefile include/Makefile doc/Makefile test/Makefile]) AC_OUTPUT if test "$util_linux_ok" = no; then |