From patchwork Thu Apr 7 14:12:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 65324 Delivered-To: patch@linaro.org Received: by 10.112.43.237 with SMTP id z13csp103183lbl; Thu, 7 Apr 2016 07:13:14 -0700 (PDT) X-Received: by 10.107.15.23 with SMTP id x23mr3687602ioi.154.1460038394623; Thu, 07 Apr 2016 07:13:14 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id bw12si1178741igb.42.2016.04.07.07.13.13; Thu, 07 Apr 2016 07:13:14 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id A4D47619A7; Thu, 7 Apr 2016 14:13:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 097C36196F; Thu, 7 Apr 2016 14:13:09 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 017666198F; Thu, 7 Apr 2016 14:13:02 +0000 (UTC) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com [209.85.217.170]) by lists.linaro.org (Postfix) with ESMTPS id A6E626164F for ; Thu, 7 Apr 2016 14:13:01 +0000 (UTC) Received: by mail-lb0-f170.google.com with SMTP id bk9so23581626lbc.3 for ; Thu, 07 Apr 2016 07:13:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=WsGsK7u18j50ZjrJ9epYLU+uFVa5mzuy93vIRnLyCfA=; b=L4m/Qoansw5dCHlD/dMmbYJtqisO1dHuEjYTgil9HXlMgtl+p9xj5vfAVIeUxf6DDf /ksxTAl392/ebcL8ORLwsXWWsgFNFKY9YFhCgVumLlHVQOXPnNYajxDcezjix1RgZ1L4 9XUa3ciPdvYSNNpOytbvL0sMrlfiIKBXT50AKBhaz9Bum8zQpNsk8keSR6JohNczEpcZ rNFF1o3wedoNR9IiyAkQgR7uvcVnIOxSVYpl7sRVkSww/8LqU/cvueUWWnzBcsQsuRbF Rg1iH2nGzWF+SdbociXRhXzgaPCEWuftn+fuctwWAwBFx5PVo4Oa786fOnM7ovpBsExn lkqg== X-Gm-Message-State: AD7BkJIsR4Gef4qtmUJWr+WXPXqcr9fvfpSHQ+ttmPI3ea8HfQ67YxWunx3zq2ONiTfPz+SnnBg= X-Received: by 10.112.25.100 with SMTP id b4mr1514946lbg.142.1460038379757; Thu, 07 Apr 2016 07:12:59 -0700 (PDT) Received: from localhost.localdomain (ppp91-77-173-31.pppoe.mtu-net.ru. [91.77.173.31]) by smtp.gmail.com with ESMTPSA id pi5sm1236384lbb.41.2016.04.07.07.12.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Apr 2016 07:12:59 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Thu, 7 Apr 2016 17:12:48 +0300 Message-Id: <1460038368-21865-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 X-Topics: patch Subject: [lng-odp] [PATCHv3] validation: configure: move cflags guards to test/m4 X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Move cflags guards to test/m4 to fix cunit library search. https://bugs.linaro.org/show_bug.cgi?id=2161 Reported-by: Brian Brooks Suggested-by: Anders Roxell Signed-off-by: Maxim Uvarov Reviewed-by: Anders Roxell --- v3: drop patch 1. (btw there were no reject). configure.ac | 14 -------------- test/m4/validation.m4 | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/configure.ac b/configure.ac index 712d241..9665d1d 100644 --- a/configure.ac +++ b/configure.ac @@ -176,20 +176,6 @@ AC_ARG_ENABLE([debug], ODP_CFLAGS="$ODP_CFLAGS -DODP_DEBUG=$ODP_DEBUG" ########################################################################## -# Save and set temporary compilation flags -########################################################################## -OLD_LDFLAGS=$LDFLAGS -OLD_CPPFLAGS=$CPPFLAGS -LDFLAGS="$AM_LDFLAGS $LDFLAGS" -CPPFLAGS="$AM_CPPFLAGS $CPPFLAGS" - -########################################################################## -# Restore old saved variables -########################################################################## -LDFLAGS=$OLD_LDFLAGS -CPPFLAGS=$OLD_CPPFLAGS - -########################################################################## # Default warning setup ########################################################################## ODP_CFLAGS="$ODP_CFLAGS -W -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes" diff --git a/test/m4/validation.m4 b/test/m4/validation.m4 index b137118..d32f675 100644 --- a/test/m4/validation.m4 +++ b/test/m4/validation.m4 @@ -31,6 +31,14 @@ AC_HELP_STRING([--with-cunit-path=DIR path to CUnit libs and headers], cunit_support=yes],[]) ########################################################################## +# Save and set temporary compilation flags +########################################################################## +OLD_LDFLAGS=$LDFLAGS +OLD_CPPFLAGS=$CPPFLAGS +LDFLAGS="$AM_LDFLAGS $LDFLAGS" +CPPFLAGS="$AM_CPPFLAGS $CPPFLAGS" + +########################################################################## # Check for CUnit availability ########################################################################## if test x$cunit_support = xyes @@ -42,3 +50,9 @@ then else cunit_support=no fi + +########################################################################## +# Restore old saved variables +########################################################################## +LDFLAGS=$OLD_LDFLAGS +CPPFLAGS=$OLD_CPPFLAGS