Fix some bashims. More information on https://wiki.ubuntu.com/DashAsBinSh. Reported...
authorSylvestre Ledru <sylvestre@debian.org>
Sun, 1 Feb 2015 14:55:43 +0000 (14:55 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sun, 1 Feb 2015 14:55:43 +0000 (14:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227744 91177308-0d34-0410-b5e6-96231b3b80d8

autoconf/configure.ac
configure
utils/lit/utils/check-coverage

index cd458a49696d4710f5007ef609cc4e664a4998cb..e699ee631e56e3f91a25bec1dd08696e9f8a9caf 100644 (file)
@@ -1535,11 +1535,11 @@ AC_ARG_WITH(oprofile,
             AC_SEARCH_LIBS(bfd_init, bfd, [], [])
             AC_SEARCH_LIBS(op_open_agent, opagent, [], [
               echo "Error! You need to have libopagent around."
-              exit -1
+              exit 1
             ])
             AC_CHECK_HEADER([opagent.h], [], [
               echo "Error! You need to have opagent.h around."
-              exit -1
+              exit 1
               ])
           fi ;;
         *)
index e22c21e302f7e6d2953970c2bf650b470d5b4a5c..2eed67ef67c4296ef469c5f3d2961b710b5a09f0 100755 (executable)
--- a/configure
+++ b/configure
@@ -9910,7 +9910,7 @@ if test "$ac_res" != no; then
 else
 
               echo "Error! You need to have libopagent around."
-              exit -1
+              exit 1
 
 fi
 
@@ -10073,7 +10073,7 @@ if test $ac_cv_header_opagent_h = yes; then
 else
 
               echo "Error! You need to have opagent.h around."
-              exit -1
+              exit 1
 
 fi
 
index 128e827f22dcbb0ff3cb12349f53b7e9dcc973f8..cded7a2921c55abd89ee4b03c674a1220f60f739 100755 (executable)
@@ -23,7 +23,7 @@ fi
 # sitecustomize.
 if ! python -c \
       'import sitecustomize, sys; sys.exit("coverage" not in dir(sitecustomize))' \
-      &> /dev/null; then
+      >/dev/null 2>&1; then
     printf 1>&2 "error: active python does not appear to enable coverage in its 'sitecustomize.py'\n"
     exit 1
 fi