From patchwork Wed Aug 30 13:00:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 111308 Delivered-To: patch@linaro.org Received: by 10.140.95.112 with SMTP id h103csp888854qge; Wed, 30 Aug 2017 06:03:18 -0700 (PDT) X-Google-Smtp-Source: ADKCNb5Q9lCsnBHIiPJaHwDku5W10EJz71d9kIKODpiiOSiXOpTwZt2KOZDkJCykmaPiJNOu+Xgr X-Received: by 10.237.49.35 with SMTP id 32mr2013190qtg.197.1504098198385; Wed, 30 Aug 2017 06:03:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504098198; cv=none; d=google.com; s=arc-20160816; b=jvzUF5Cia8MJGnkONj9S1P31doj2wTwykb76IGwXqMF2/zb/Yvc0h7dFYYdq5JWtC3 M9mjwybj6O4I/wz9mJdddjj7PjSdtRvtu26D5oo7Chrm8esr1caJj2rmdogV2TpQwR2u cx9MxkE6kB42EijnK03OfttcOqof/YyN0LzRq8C+Vzt7xRI41EwfL45/R/MK39CvOylX bxq6/15JVS0IXRE/4Ap+yjkX/VobW753clVewkjGt9G/vutAPT0FC22szWqyVLDL6m1I hYSC3ZNCjeruOLDuqGspmtjYcKJi4zVc57M5fRCxx7ZOB2AfEsa3z1HTdNJI1vbMRZDs Ncxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=o97ZZrVpnmSAVuJL7vb35LeTeU3T89XScgOwaUZ4z6I=; b=J4QSKleh+uvWfaZodmFGhtEnBxCVYc1fCUQFrkeleSApsaytz/MZZFxrGrcQqG3iPa 6InusI2qIDpZZHaTa1+WTkzqEFY7Rc/pNHcTRZ/KT0N0vz7ckKHz3imrAexbV1bukW+R 3xKJmub3FygUoBTJrmXpjtShBCQKXIX4q+rFYHE34xpULFlkUpPKM20dWhL5hcyK1eW6 RKeoozAPEgT38AzRoSM2lxgj0HpdpNfbQtM1YTt547dN5maLEVvlzpSxWgBsGMiwFLnf 8DdgsfAc0G9qjA+fXZ7NDxQcGWQaVWIm4nVbo0leiyYZC6+KZEbnOhG4WAr8vkXTcvPo TP+w== ARC-Authentication-Results: i=1; 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=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 59si5095881qtg.11.2017.08.30.06.03.18; Wed, 30 Aug 2017 06:03:18 -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=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 0EDC561E19; Wed, 30 Aug 2017 13:03:18 +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,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,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 109F360676; Wed, 30 Aug 2017 13:01:04 +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 E7D3162AE3; Wed, 30 Aug 2017 13:00:40 +0000 (UTC) Received: from forward1p.cmail.yandex.net (forward1p.cmail.yandex.net [77.88.31.16]) by lists.linaro.org (Postfix) with ESMTPS id A58B360455 for ; Wed, 30 Aug 2017 13:00:30 +0000 (UTC) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [37.140.190.29]) by forward1p.cmail.yandex.net (Yandex) with ESMTP id 0BC8F21045 for ; Wed, 30 Aug 2017 16:00:28 +0300 (MSK) Received: from smtp4o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp4o.mail.yandex.net (Yandex) with ESMTP id AEB3B6C00D5B for ; Wed, 30 Aug 2017 16:00:26 +0300 (MSK) Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id pn21Hwqvkv-0QvCbjY9; Wed, 30 Aug 2017 16:00:26 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Wed, 30 Aug 2017 16:00:08 +0300 Message-Id: <1504098014-29411-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1504098014-29411-1-git-send-email-odpbot@yandex.ru> References: <1504098014-29411-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 155 Subject: [lng-odp] [PATCH v3 2/8] configure: rework with-testdir check 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: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov Rework with-testdir option handling to follow the rest of configure options. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 155 (lumag:improve-build-2) ** https://github.com/Linaro/odp/pull/155 ** Patch: https://github.com/Linaro/odp/pull/155.patch ** Base sha: 7508c5ac906bb7cb1d339b4c5e924f3a18e504ca ** Merge commit sha: 1488a0e31aecd1fa958bf32f1c0ca0b0e0f56409 **/ configure.ac | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index c076b4cc..dcf14629 100644 --- a/configure.ac +++ b/configure.ac @@ -200,19 +200,18 @@ AC_SUBST(SDK_INSTALL_PATH) # Set the install directory for test binaries/scripts ########################################################################## AC_ARG_WITH([testdir], - AC_HELP_STRING([--with-testdir=DIR installation directory for tests]), - [if test "$withval" = "yes"; then - testdir=$libdir/odp/tests - else - testdir=$withval - fi], []) + [AC_HELP_STRING([--with-testdir=DIR], [installation directory for tests])], + [testdir=$withval], + [testdir=no]) +AS_IF([test "x$testdir" = "xyes"], [testdir=$libdir/odp/tests], + [test "x$testdir" = "xno"], [testdir=]) AC_SUBST([testdir]) +AM_CONDITIONAL([test_installdir], [test "x$testdir" != "xno"]) ########################################################################## # Set conditionals as computed within platform specific files ########################################################################## AM_CONDITIONAL([SDK_INSTALL_PATH_], [test "x${SDK_INSTALL_PATH_}" = "x1"]) -AM_CONDITIONAL([test_installdir], [test "$testdir" != ""]) AM_CONDITIONAL([cunit_support], [test x$cunit_support = xyes ]) AM_CONDITIONAL([HAVE_DOXYGEN], [test "x${DOXYGEN}" = "xdoxygen"]) AM_CONDITIONAL([user_guide], [test "x${user_guides}" = "xyes" ])