From a1158599ab3d564ebaaf5146cee9da594e719805 Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Tue, 1 Apr 2014 16:54:51 +0200 Subject: [PATCH] Use '=' instead of '==' for test command in configure scripts (fixes #866) --- platform/unix/configure.ac | 2 +- platform/unix/genmodules | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/unix/configure.ac b/platform/unix/configure.ac index 4347329f0..219709a7c 100644 --- a/platform/unix/configure.ac +++ b/platform/unix/configure.ac @@ -118,7 +118,7 @@ AS_VAR_IF([enable_exe], [no], [], #else AC_DEFINE([LOVE_BUILD_EXE], [], [Skip building launcher])) AM_CONDITIONAL([LOVE_BUILD_EXE], [test "x$enable_exe" != xno]) -AM_CONDITIONAL([LOVE_NOMPG123], [test "x$enable_mpg123" == xno]) +AM_CONDITIONAL([LOVE_NOMPG123], [test "x$enable_mpg123" = xno]) AM_CONDITIONAL([LOVE_TARGET_OSX], [test "x$enable_osx" != xno]) # Automatic script file rebuilding diff --git a/platform/unix/genmodules b/platform/unix/genmodules index 5be29fae5..1b1ed65e7 100644 --- a/platform/unix/genmodules +++ b/platform/unix/genmodules @@ -96,10 +96,10 @@ genflags() amflag="$(upper $(echo love-$flag | sed 's/-/_/g'))" printf "AC_ARG_ENABLE([$flag], [ --disable-$flag Turn off $prettyflag], [], [$varflag=true])\n" printf "AH_TEMPLATE([$defineflag], [])\n" - printf "if test x\"\$$varflag\" == xtrue; then\n" + printf "if test x\"\$$varflag\" = xtrue; then\n" printf " AC_DEFINE([$defineflag], [])\n" printf "fi\n" - printf "AM_CONDITIONAL([$amflag], [test x\$$varflag == xtrue])\n\n" + printf "AM_CONDITIONAL([$amflag], [test x\$$varflag = xtrue])\n\n" done }