Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 621A4114A5 for ; Thu, 9 May 2013 14:30:23 +0000 (UTC) Received: (qmail 57433 invoked by uid 500); 9 May 2013 14:04:47 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 57151 invoked by uid 500); 9 May 2013 14:04:30 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 52513 invoked by uid 99); 9 May 2013 14:01:19 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 May 2013 14:01:19 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 4B2BA88A85F; Thu, 9 May 2013 14:00:59 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: garren@apache.org To: commits@couchdb.apache.org Date: Thu, 09 May 2013 14:01:10 -0000 Message-Id: <1b71d504803f4aff849fc2e1b178cb38@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [13/50] git commit: updated refs/heads/route-events to c33e390 Add upper bound check on Erlang ( Authored: Wed Mar 27 17:52:27 2013 -0400 Committer: Garren Smith Committed: Thu May 9 09:59:54 2013 +0200 ---------------------------------------------------------------------- configure.ac | 25 +++++++++++++++---------- 1 files changed, 15 insertions(+), 10 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/78bf001a/configure.ac ---------------------------------------------------------------------- diff --git a/configure.ac b/configure.ac index 91e2d3d..53e23f1 100644 --- a/configure.ac +++ b/configure.ac @@ -407,24 +407,29 @@ case "$(uname -s)" in esac -erlang_version_error="The installed Erlang version is less than 5.7.4 (R13B04)." +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Erlang version compatibility" >&5 +$as_echo_n "checking Erlang version compatibility... " >&6; } +erlang_version_error="The installed Erlang version must be >= R13B04 (erts-5.7.4) and < R16A (erts-5.10)" -version="`${ERL} -version 2>&1 | ${SED} 's/[[^0-9]]/ /g'`" +version="`${ERL} -version 2>&1 | ${SED} 's/[[^0-9]]/ /g'` 0 0 0" +major_version=`echo $version | ${AWK} "{print \\$1}"` +minor_version=`echo $version | ${AWK} "{print \\$2}"` +patch_version=`echo $version | ${AWK} "{print \\$3}"` -if test `echo $version | ${AWK} "{print \\$1}"` -lt 5; then - AC_MSG_ERROR([$erlang_version_error]) +if test $major_version -ne 5; then + as_fn_error $? "$erlang_version_error" "$LINENO" 5 fi -if test `echo $version | ${AWK} "{print \\$2}"` -lt 7; then - AC_MSG_ERROR([$erlang_version_error]) +if test $minor_version -lt 7 -o $minor_version -gt 9; then + as_fn_error $? "$erlang_version_error" "$LINENO" 5 fi -if test `echo $version | ${AWK} "{print \\$2}"` -eq 7; then - if test `echo $version | ${AWK} "{print \\$3}"` -lt 4; then - AC_MSG_ERROR([$erlang_version_error]) - fi +if test $minor_version -eq 7 -a $patch_version -lt 4; then + as_fn_error $? "$erlang_version_error" "$LINENO" 5 fi +AC_MSG_RESULT(compatible) + otp_release="`\ ${ERL} -noshell \ -eval 'io:put_chars(erlang:system_info(otp_release)).' \