From 737e7d68bcebfa985c89d66eb44ffef3157997d9 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Sat, 12 Sep 2015 16:30:32 +0000 Subject: [PATCH] Don't use bashism/kshism of test ==. From Kamil Rytarowski. Differential Revision: http://reviews.llvm.org/D12642 llvm-svn: 247512 --- llvm/autoconf/configure.ac | 2 +- llvm/configure | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/autoconf/configure.ac b/llvm/autoconf/configure.ac index fb73e51df3f0..a3cb05c44dc6 100644 --- a/llvm/autoconf/configure.ac +++ b/llvm/autoconf/configure.ac @@ -74,7 +74,7 @@ if test ${srcdir} != "." ; then fi dnl Quit if it is an in-source build -if test ${srcdir} == "." ; then +if test ${srcdir} = "." ; then AC_MSG_ERROR([In-source builds are not allowed. Please configure from a separate build directory!]) fi diff --git a/llvm/configure b/llvm/configure index c895057ab07d..5b15d122c07d 100755 --- a/llvm/configure +++ b/llvm/configure @@ -2033,7 +2033,7 @@ echo "$as_me: error: Already configured in ${srcdir}" >&2;} fi fi -if test ${srcdir} == "." ; then +if test ${srcdir} = "." ; then { { echo "$as_me:$LINENO: error: In-source builds are not allowed. Please configure from a separate build directory!" >&5 echo "$as_me: error: In-source builds are not allowed. Please configure from a separate build directory!" >&2;} { (exit 1); exit 1; }; }