From: DRC Date: Sat, 26 Oct 2013 00:32:23 +0000 (+0000) Subject: Fix logic error from r1039 X-Git-Tag: 1.3.1~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f57a22de550247d6e73a216bf8202ccd8dac6569;p=libjpeg-turbo Fix logic error from r1039 git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1063 632fc199-4ca6-4c93-a231-07263d6284db --- diff --git a/configure.ac b/configure.ac index 9cdbd42..1c81c5d 100644 --- a/configure.ac +++ b/configure.ac @@ -425,16 +425,18 @@ if test "x${with_simd}" != "xno"; then simd_arch=arm], [AC_MSG_RESULT([no]) with_simd=no]) - if test "x${require_simd}" = "xyes" -a "x${with_simd}" = "xno"; then - AC_MSG_ERROR([SIMD support can't be enabled.]) - else - AC_MSG_WARN([SIMD support can't be enabled. Performance will suffer.]) + if test "x${with_simd}" = "xno"; then + if test "x${require_simd}" = "xyes"; then + AC_MSG_ERROR([SIMD support can't be enabled.]) + else + AC_MSG_WARN([SIMD support can't be enabled. Performance will suffer.]) + fi fi ;; *) AC_MSG_RESULT([no ("$host_cpu")]) with_simd=no; - if test "x${require_simd}" = "xyes" -a "x${with_simd}" = "xno"; then + if test "x${require_simd}" = "xyes"; then AC_MSG_ERROR([SIMD support not available for this CPU.]) else AC_MSG_WARN([SIMD support not available for this CPU. Performance will suffer.])