]> git.ipfire.org Git - thirdparty/glibc.git/commit - configure.ac
configure.ac: fix bashisms in configure.ac
authorSam James <sam@gentoo.org>
Tue, 22 Mar 2022 17:33:09 +0000 (17:33 +0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 23 Mar 2022 01:53:43 +0000 (21:53 -0400)
commitcb7b1c9014945cb79cdd0b375e65724d6c574a8c
tree746e7102985b8312f3bb9873db7c1665ff5d49b7
parentd3f2c2c8b57bdf9d963db8fa2372d6c1b86a337e
configure.ac: fix bashisms in configure.ac

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 if compiler warns about alias for function with incompatible types... yes
/var/tmp/portage/sys-libs/glibc-2.34-r10/work/glibc-2.34/configure: 4209: test: xyes: unexpected operator
```

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Signed-off-by: Sam James <sam@gentoo.org>
configure
configure.ac
sysdeps/powerpc/powerpc64/le/configure
sysdeps/powerpc/powerpc64/le/configure.ac
sysdeps/powerpc/powerpc64/le/fpu/multiarch/configure
sysdeps/powerpc/powerpc64/le/fpu/multiarch/configure.ac