From patchwork Fri Apr 1 20:15:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 64902 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp26133lbc; Fri, 1 Apr 2016 13:23:02 -0700 (PDT) X-Received: by 10.140.28.117 with SMTP id 108mr5618838qgy.40.1459542182106; Fri, 01 Apr 2016 13:23:02 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id u124si13462424qka.69.2016.04.01.13.23.01; Fri, 01 Apr 2016 13:23:02 -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 920D161CBF; Fri, 1 Apr 2016 20:23:01 +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 7141261BFD; Fri, 1 Apr 2016 20:22:56 +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 B950161CAC; Fri, 1 Apr 2016 20:22:54 +0000 (UTC) Received: from mail-lf0-f43.google.com (mail-lf0-f43.google.com [209.85.215.43]) by lists.linaro.org (Postfix) with ESMTPS id 94D6A61A52 for ; Fri, 1 Apr 2016 20:22:53 +0000 (UTC) Received: by mail-lf0-f43.google.com with SMTP id c62so89161037lfc.1 for ; Fri, 01 Apr 2016 13:22:53 -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=XtBQjxXBxqeq6mXo7rcj5SF9S902ps9u3iytw9eiACg=; b=V8h5Z6EAOsSaLZPeKkCy0v6n8A8fSo7lPW/NZ+p11iMYh/6f+DZaFph2VcLG4yAGpZ LG1TLE0ak8gAbVcvAoAhSLeE4wH9wwNDleo/sPFhiu5hqCND/wqTwPT87JGTEky+jt3e Dzb3YFLCfs121FoAwlHqE0ouwpGftO/05ULFfPfModAB9T10NtgDmAsGcN+4vIjkDP/O sEMm2u9KBMSYmYO42ZujUHl0Enh8tWgXxLpC+hW/m+cTyAeF5nQ+/LnUNtUbLXSJj+3e JKNxmN56ukIZ7MHN8XGAJzDrCSeuyNmRlbitEF7UhcXtlfdhc9TxJgFHgLrJ74S/FUqb X1Kw== X-Gm-Message-State: AD7BkJLBAfIuMcBeW+g6YGZaWZK1k7p55GYqK8Jv234Wioub/lmyXt4sm5zJsLQW++7EU5K78xk= X-Received: by 10.25.27.12 with SMTP id b12mr2901930lfb.97.1459542171832; Fri, 01 Apr 2016 13:22:51 -0700 (PDT) Received: from localhost (c-c82171d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.113.33.200]) by smtp.gmail.com with ESMTPSA id ka8sm2438256lbc.26.2016.04.01.13.22.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Apr 2016 13:22:51 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Fri, 1 Apr 2016 22:15:34 +0200 Message-Id: <1459541734-12676-1-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.4 X-Topics: patch Subject: [lng-odp] [PATCH] configure: reorder m4_includes 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" Reorder the m4_include due to LIBS get contaminated while checking for libraries. Configure error: checking for GCC atomic builtins... no GCC-style __atomic builtins not supported by the compiler. Use newer version. For gcc > 4.7.0 Suggested-by: Ricardo Salveti Signed-off-by: Anders Roxell Reviewed-by: Brian Brooks --- Thanks to Brians patch "[PATCH 2/2] configure: remove dead code", with my suggestion to it, we found out that the order matters. Cheers, Anders configure.ac | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/configure.ac b/configure.ac index ba814b3..d0d3ca6 100644 --- a/configure.ac +++ b/configure.ac @@ -83,14 +83,6 @@ AC_SUBST([platform_with_platform], ["platform/${with_platform}"]) AC_SUBST([platform_with_platform_test], ["platform/${with_platform}/test"]) ########################################################################## -# Include m4 files -########################################################################## -m4_include([./doc/m4/configure.m4]) -m4_include([./example/m4/configure.m4]) -m4_include([./helper/m4/configure.m4]) -m4_include([./test/m4/configure.m4]) - -########################################################################## # Run platform specific checks and settings ########################################################################## if test "${with_platform}" == "linux-generic"; @@ -102,6 +94,14 @@ else fi ########################################################################## +# Include m4 files +########################################################################## +m4_include([./doc/m4/configure.m4]) +m4_include([./example/m4/configure.m4]) +m4_include([./helper/m4/configure.m4]) +m4_include([./test/m4/configure.m4]) + +########################################################################## # Set SDK install path ########################################################################## AC_ARG_WITH([sdk-install-path],