]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
configure.ac: fix bashism
authorSam James <sam@gentoo.org>
Wed, 14 Sep 2022 14:15:43 +0000 (08:15 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 14 Sep 2022 14:15:48 +0000 (08:15 -0600)
commitaf221915a97d7fb590b7307e4cfa37dac6e96582
treeed58f15f5c008a3d57e9c07c0a149b60b7552c46
parentda357caefb4d9e7cb042fb04bde642dc2df8e3a3
configure.ac: fix bashism

configure scripts need to be runnable with a POSIX-compliant /bin/sh.

On many (but not all!) systems, /bin/sh is provided by Bash, so errors
like this aren't spotted. Notably Debian defaults to /bin/sh provided
by dash which doesn't tolerate such bashisms as '=='.

This retains compatibility with bash.

Fixes configure warnings/errors like:
```
checking whether to build static libraries... no
./configure: 14089: test: xno: unexpected operator
checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++
```

Signed-off-by: Sam James <sam@gentoo.org>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit 4fc7dc1036676901d555fe296cca661a783e405b)
configure.ac