From 84450c411cc93309bb1d1b1f555640b3ad105500 Mon Sep 17 00:00:00 2001 From: Naohiro Aota Date: Thu, 24 Nov 2011 13:12:15 +0100 Subject: [PATCH] Don't use non-POSIX test test "$test_CFLAGS" == "" && \ may cause an error on some POSIX shells and uses a style which is not consistent with the other tests in configure.ac Fixes https://bugs.freedesktop.org/show_bug.cgi?id=42588 and https://bugs.gentoo.org/show_bug.cgi?id=387087 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 79cf211..2eded70 100644 --- a/configure.ac +++ b/configure.ac @@ -150,7 +150,7 @@ AC_CHECK_DECL([__amd64], [AMD64_ABI="yes"], [AMD64_ABI="no"]) # if we're using Sun Studio and neither the user nor a config.site # has set CFLAGS. if test $SUNCC = yes && \ - test "$test_CFLAGS" == "" && \ + test "x$test_CFLAGS" = "x" && \ test "$CFLAGS" = "-g" then CFLAGS="-O -g" -- 2.7.4