]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
configure: remove AM_COND for --disable-tests
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Wed, 31 Aug 2022 20:28:53 +0000 (14:28 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 31 Aug 2022 20:28:56 +0000 (14:28 -0600)
With the usage of DIST_SUBDIRS, the makefiles for the tests/* will be
generated, and building the tests/* should be controlled using SUBDIRS.
Remove the AM_COND condition for --disable-tests in the AC_CONFIG_FILES
list.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit 9830b92f5a5e821aa80d350faa5bf7e54be060f4)

configure.ac

index a2b36299e11fba1e5191df99570931e781072b02..36a9d15b858f18cadb2ed2af864363c5b96507be 100644 (file)
@@ -218,6 +218,9 @@ AC_CONFIG_FILES([Makefile
        scripts/Makefile
        scripts/init.d/cgconfig
        scripts/init.d/cgred
+       tests/Makefile
+       tests/ftests/Makefile
+       tests/gunit/Makefile
        samples/Makefile
        samples/c/Makefile
        samples/config/Makefile
@@ -227,10 +230,6 @@ AC_CONFIG_FILES([Makefile
        doc/man/Makefile
        dist/Makefile
        libcgroup.pc])
-AM_COND_IF([WITH_TESTS],
-       [AC_CONFIG_FILES([tests/Makefile
-               tests/ftests/Makefile
-               tests/gunit/Makefile])])
 AC_CONFIG_FILES([dist/libcgroup.spec:dist/libcgroup.spec.in])
 CFLAGS="$CFLAGS -Wall"
 AC_OUTPUT