From patchwork Wed Mar 23 18:37:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 64256 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp201218lbc; Wed, 23 Mar 2016 11:48:28 -0700 (PDT) X-Received: by 10.140.30.8 with SMTP id c8mr5618749qgc.67.1458758908567; Wed, 23 Mar 2016 11:48:28 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id q67si3209184qgd.110.2016.03.23.11.48.28; Wed, 23 Mar 2016 11:48:28 -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 3A247617DC; Wed, 23 Mar 2016 18:48:28 +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_H2, 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 5BA74617D6; Wed, 23 Mar 2016 18:45:40 +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 C9343617AD; Wed, 23 Mar 2016 18:45:26 +0000 (UTC) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by lists.linaro.org (Postfix) with ESMTPS id DEA856173D for ; Wed, 23 Mar 2016 18:44:47 +0000 (UTC) Received: by mail-lb0-f172.google.com with SMTP id oe12so16245758lbc.0 for ; Wed, 23 Mar 2016 11:44:47 -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=ZEojj03TOjITjqXD6h6p9buFb1JWQxzvsRJK/uz8j28=; b=NfrVBKF7t385ziGQYa7t0KNm5ou3qVAhYtz/5dRlyQhSUfj9d/Lu2Vh/4nro2+OSa5 X6mrl8vrXdTHCC+72ODRLAUfhmzksBBx+PNR2IW7G6VrAZQ9LCv5KJzEZbq9AX1geMlC 0v5IBtOtYbnZFdF3TOMhpfX1Y+qHw09kGrA6O23dLSAvArlC57sDv8Nzb0tzsEZa+dg8 o/xyO2xYERkZriwhm2mf0zNO+3iZ0qVR5sC4HwUb9TrwrAl/4rZtY1D6J//TRURJRHnU +iNpNrvBhqYZWXj53QiP23XGF1JJT05Yd5EHST9VfFpbquhyHL30xEjsh1t9czXKXDMF 6laA== X-Gm-Message-State: AD7BkJL5PZa0c0fqiUay4BQNhFuS7/cMTUyJvLzXeN5OZSuXsCqIxI0zzuaISsG+/s/RijajAtI= X-Received: by 10.112.17.5 with SMTP id k5mr1825306lbd.46.1458758686740; Wed, 23 Mar 2016 11:44:46 -0700 (PDT) Received: from localhost (c-c82171d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.113.33.200]) by smtp.gmail.com with ESMTPSA id i8sm587736lbj.30.2016.03.23.11.44.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Mar 2016 11:44:46 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Wed, 23 Mar 2016 19:37:28 +0100 Message-Id: <1458758254-4703-5-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 04/10] configure: move test_perf 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 | 19 ++++++------------- test/m4/configure.m4 | 2 ++ test/m4/performance.m4 | 9 +++++++++ 3 files changed, 17 insertions(+), 13 deletions(-) create mode 100644 test/m4/performance.m4 diff --git a/configure.ac b/configure.ac index 6d6e17a..cf64c52 100644 --- a/configure.ac +++ b/configure.ac @@ -82,6 +82,11 @@ AC_SUBST([platform_with_platform], ["platform/${with_platform}"]) AC_SUBST([platform_with_platform_test], ["platform/${with_platform}/test"]) ########################################################################## +# Include m4 files +########################################################################## +m4_include([./test/m4/configure.m4]) + +########################################################################## # Run platform specific checks and settings ########################################################################## if test "${with_platform}" == "linux-generic"; @@ -133,6 +138,7 @@ AM_CONDITIONAL([netmap_support], [test x$netmap_support = xyes ]) 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 ]) ########################################################################## # Setup doxygen documentation @@ -155,18 +161,6 @@ AC_ARG_ENABLE([test_vald], AM_CONDITIONAL([test_vald], [test x$test_vald = xyes ]) ########################################################################## -# Enable/disable test-perf -########################################################################## -test_perf=no -AC_ARG_ENABLE([test-perf], - [ --enable-test-perf run test in test/performance], - [if test "x$enableval" = "xyes"; then - test_perf=yes - fi]) - -AM_CONDITIONAL([test_perf], [test x$test_perf = xyes ]) - -########################################################################## # Enable/disable test-helper ########################################################################## test_helper=yes @@ -325,7 +319,6 @@ AC_CONFIG_FILES([Makefile m4_include([./doc/m4/configure.m4]) m4_include([./example/m4/configure.m4]) -m4_include([./test/m4/configure.m4]) AC_SEARCH_LIBS([timer_create],[rt posix4]) diff --git a/test/m4/configure.m4 b/test/m4/configure.m4 index 7868e10..e4b7d7a 100644 --- a/test/m4/configure.m4 +++ b/test/m4/configure.m4 @@ -1,3 +1,5 @@ +m4_include([test/m4/performance.m4]) + AC_CONFIG_FILES([test/Makefile test/miscellaneous/Makefile test/performance/Makefile diff --git a/test/m4/performance.m4 b/test/m4/performance.m4 new file mode 100644 index 0000000..1e2000d --- /dev/null +++ b/test/m4/performance.m4 @@ -0,0 +1,9 @@ +########################################################################## +# Enable/disable test-perf +########################################################################## +test_perf=no +AC_ARG_ENABLE([test-perf], + [ --enable-test-perf run test in test/performance], + [if test "x$enableval" = "xyes"; then + test_perf=yes + fi])