]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
configure: fix bashim of --enable-samples option
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Thu, 6 Oct 2022 20:26:04 +0000 (14:26 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 6 Oct 2022 20:26:10 +0000 (14:26 -0600)
Make the --enable-samples option's bash code POSIX-complaint.  There
might be warnings issued while running configure on other shells like
/bin/sh, those default on Debian systems.

Fixes: 6197ca3d693f ("configure: introduce --enable-samples option")
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
configure.ac

index d6ca7a68b657970a25733c24aef848a79d03691b..c31e7c85c8bffb72208c34cdfdd71f0ef3fe1276 100644 (file)
@@ -149,7 +149,7 @@ AM_CONDITIONAL([WITH_TESTS], [test x$with_tests = xtrue])
 AC_ARG_ENABLE([samples],
       [AS_HELP_STRING([--enable-samples],[compile libcgroup samples C programs [default=no]])],
       [
-               if test "x$enableval" == xno; then
+               if test "x$enableval" = xno; then
                        with_samples=false
                else
                        with_samples=true