From patchwork Wed Mar 23 18:37:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 64255 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp200786lbc; Wed, 23 Mar 2016 11:47:50 -0700 (PDT) X-Received: by 10.55.73.199 with SMTP id w190mr5599601qka.77.1458758870088; Wed, 23 Mar 2016 11:47:50 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id d77si3240215qkb.20.2016.03.23.11.47.49; Wed, 23 Mar 2016 11:47:50 -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 Received: by lists.linaro.org (Postfix, from userid 109) id AF55C61800; Wed, 23 Mar 2016 18:47:49 +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 1BBFB617DC; Wed, 23 Mar 2016 18:45:37 +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 E496D617AF; Wed, 23 Mar 2016 18:45:25 +0000 (UTC) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169]) by lists.linaro.org (Postfix) with ESMTPS id 6A09D61795 for ; Wed, 23 Mar 2016 18:44:49 +0000 (UTC) Received: by mail-lb0-f169.google.com with SMTP id k12so16197027lbb.1 for ; Wed, 23 Mar 2016 11:44:49 -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:in-reply-to :references; bh=91xRTyJqxN8R1USRWvwVhT7I0pC/vdQo0vXNyOYyPPk=; b=HWkxL0NBwKFgElappStCRQfZsquveb3pVaNK117hSV24krjAlE70/PDlRdQzMrSPs2 YB4LkCxHJRx+jhYzJUeYEcA9+AhkxvB39ya63DghD6Gpl96HfLYq9PNk/po6nWjbUvHV gKgiwMv1dopLZJ+cnQ2hVSR5Kjc+VwIgGxgW2u6xDKUY/VC2w0lnbQahJqFTwW3Usu5I 1NpT18lJ4PeF/qUSE4p53cLXAWYiYfLuiMGL5wtz+7xYAhBPPozw27VJyz/eu8UGfH0r aQLXf1uTZgXyKlpvimu/CooMLNknr2zLEPxccfVHsI0P+NGJr8llYrOywA2xMayC2Xrx Bxpg== X-Gm-Message-State: AD7BkJLeNdcTONI1osee77lfBc7aK424fa92/OaJjcpMwvr64wS8b0e3aeOty9KlxNLb+kbvrwY= X-Received: by 10.112.143.163 with SMTP id sf3mr1794987lbb.117.1458758688367; Wed, 23 Mar 2016 11:44:48 -0700 (PDT) Received: from localhost (c-c82171d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.113.33.200]) by smtp.gmail.com with ESMTPSA id e66sm587350lfg.23.2016.03.23.11.44.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Mar 2016 11:44:47 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Wed, 23 Mar 2016 19:37:29 +0100 Message-Id: <1458758254-4703-6-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1458758254-4703-1-git-send-email-anders.roxell@linaro.org> References: <1458758254-4703-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 05/10] configure: move test_cpp to its own m4 file 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" Signed-off-by: Anders Roxell --- configure.ac | 16 +--------------- test/m4/configure.m4 | 1 + test/m4/miscellaneous.m4 | 9 +++++++++ 3 files changed, 11 insertions(+), 15 deletions(-) create mode 100644 test/m4/miscellaneous.m4 diff --git a/configure.ac b/configure.ac index cf64c52..6199bd0 100644 --- a/configure.ac +++ b/configure.ac @@ -139,6 +139,7 @@ AM_CONDITIONAL([HAVE_PCAP], [test $have_pcap = yes]) AM_CONDITIONAL([SDK_INSTALL_PATH_], [test "x${SDK_INSTALL_PATH_}" = "x1"]) AM_CONDITIONAL([test_installdir], [test "$testdir" != ""]) AM_CONDITIONAL([test_perf], [test x$test_perf = xyes ]) +AM_CONDITIONAL([test_cpp], [test x$test_cpp = xyes ]) ########################################################################## # Setup doxygen documentation @@ -171,21 +172,6 @@ AC_ARG_ENABLE([test-helper], fi]) AM_CONDITIONAL([test_helper], [test x$test_helper = xyes ]) - -########################################################################## -# Enable/disable test-cpp -########################################################################## -test_cpp=no -AC_ARG_ENABLE([test-cpp], - [ --enable-test-cpp run basic test aginast cpp], - [if test "x$enableval" = "xyes"; then - test_cpp=yes - else - test_cpp=no - fi]) - -AM_CONDITIONAL([test_cpp], [test x$test_cpp = xyes ]) - ########################################################################## # Set optional CUnit path ########################################################################## diff --git a/test/m4/configure.m4 b/test/m4/configure.m4 index e4b7d7a..4e16b82 100644 --- a/test/m4/configure.m4 +++ b/test/m4/configure.m4 @@ -1,3 +1,4 @@ +m4_include([test/m4/miscellaneous.m4]) m4_include([test/m4/performance.m4]) AC_CONFIG_FILES([test/Makefile diff --git a/test/m4/miscellaneous.m4 b/test/m4/miscellaneous.m4 new file mode 100644 index 0000000..cc881ed --- /dev/null +++ b/test/m4/miscellaneous.m4 @@ -0,0 +1,9 @@ +########################################################################## +# Enable/disable test-cpp +########################################################################## +test_cpp=no +AC_ARG_ENABLE([test-cpp], + [ --enable-test-cpp run basic test aginast cpp], + [if test "x$enableval" = "xyes"; then + test_cpp=yes + fi])