From patchwork Thu Apr 17 16:49:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyrylo Tkachov X-Patchwork-Id: 339983 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id EBA651400AC for ; Fri, 18 Apr 2014 02:49:44 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=a2yXuTjM77gzOUrt+WM1S5Tk981WApqjjfx9B//FSqso6V IaRQBgXqPq0ri0O+36T+2ZGb98zJz4mVgUEHdXbe4kIGXUGmqKlk3s/OO8Mh5SBe QCxw2W+enkX0EyBjPLbDFtUUWZd4sd7tGQMBBCOCh3xBWAmBzZDhYenN4a1cQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=siKL6AN8mpP0bEznk/KzlrVaz7A=; b=gEGfG0QiDh/lALBkAfjB r+Ct5QTgWu8KjnhF+a+OvGTvUDyOBt2xmPWXSC2nNTb1DDt/WgRjFsBm0Sd//bcR osYoxsup+x9JRhbXHyNk9UNxX6+6dKZyqefLSwBM91HljiYdtX7mrjC17fpcWRy8 Tkt9VEO1oXL7OQVc97o68AM= Received: (qmail 20044 invoked by alias); 17 Apr 2014 16:49:37 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 20023 invoked by uid 89); 17 Apr 2014 16:49:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: service87.mimecast.com Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 17 Apr 2014 16:49:35 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Thu, 17 Apr 2014 17:49:32 +0100 Received: from [10.1.208.24] ([10.1.255.212]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 17 Apr 2014 17:49:45 +0100 Message-ID: <53500619.2090006@arm.com> Date: Thu, 17 Apr 2014 17:49:29 +0100 From: Kyrill Tkachov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8 MIME-Version: 1.0 To: GCC Patches , fortran@gcc.gnu.org Subject: [PATCH] Fix warning in libgfortran configure script X-MC-Unique: 114041717493200201 X-IsSubscribed: yes Hi all, While configuring libgfortran I'm getting this message: "libgfortran/configure: line 25938: test: =: unary operator expected" The script doesn't fail and continues afterwards, but I don't think it's supposed to give that warning. This patch makes it go away and makes it more consistent with other similar uses (a few lines below $ac_cv_lib_rt_clock_gettime is quoted when used in a test structure). configure.ac is updated and configure is regenerated with autoconf 2.64 Ok for trunk? Make sure libgfortran builds for arm-none-eabi. libgfortran/ 2014-04-17 Kyrylo Tkachov * configure.ac: Quote usage of ac_cv_func_clock_gettime in if test. * configure: Regenerate. diff --git a/libgfortran/configure b/libgfortran/configure index 23f57c7..d3ced74 100755 --- a/libgfortran/configure +++ b/libgfortran/configure @@ -25935,7 +25935,7 @@ fi # test is copied from libgomp, and modified to not link in -lrt as # libgfortran calls clock_gettime via a weak reference if it's found # in librt. -if test $ac_cv_func_clock_gettime = no; then +if test "$ac_cv_func_clock_gettime" = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 $as_echo_n "checking for clock_gettime in -lrt... " >&6; } if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then : diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac index de2d65e..24dbf2b 100644 --- a/libgfortran/configure.ac +++ b/libgfortran/configure.ac @@ -510,7 +510,7 @@ AC_CHECK_LIB([m],[feenableexcept],[have_feenableexcept=yes AC_DEFINE([HAVE_FEENA # test is copied from libgomp, and modified to not link in -lrt as # libgfortran calls clock_gettime via a weak reference if it's found # in librt. -if test $ac_cv_func_clock_gettime = no; then +if test "$ac_cv_func_clock_gettime" = no; then AC_CHECK_LIB(rt, clock_gettime, [AC_DEFINE(HAVE_CLOCK_GETTIME_LIBRT, 1, [Define to 1 if you have the `clock_gettime' function in librt.])])