mirror of
https://sourceware.org/git/glibc.git
synced 2025-11-02 09:33:31 +03:00
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>
This commit is contained in:
committed by
Mike Frysinger
parent
d3f2c2c8b5
commit
cb7b1c9014
2
configure
vendored
2
configure
vendored
@@ -4232,7 +4232,7 @@ if test x"$libc_cv_gcc_indirect_function" != xyes; then
|
||||
# GCC 8+ emits a warning for alias with incompatible types and it might
|
||||
# fail to build ifunc resolvers aliases to either weak or internal
|
||||
# symbols. Disables multiarch build in this case.
|
||||
if test x"$libc_cv_gcc_incompatible_alias" == xyes; then
|
||||
if test x"$libc_cv_gcc_incompatible_alias" = xyes; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gcc emits a warning for alias between functions of incompatible types" >&5
|
||||
$as_echo "$as_me: WARNING: gcc emits a warning for alias between functions of incompatible types" >&2;}
|
||||
if test x"$multi_arch" = xyes; then
|
||||
|
||||
Reference in New Issue
Block a user