From patchwork Thu Oct 9 20:47:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 38532 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F037B202DB for ; Thu, 9 Oct 2014 20:47:33 +0000 (UTC) Received: by mail-wg0-f70.google.com with SMTP id a1sf1339468wgh.5 for ; Thu, 09 Oct 2014 13:47:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=2DwtjliDF3x23C99eUCCsu1XCmenb12srwROj7OAqTY=; b=Q5lutzvwiGHYhdVwKq5pgRFfcja8f29r6tk94z3l4z07C9khxpczqtB2LzcYVL8OIi yD5QR50Rs1BTi9hTp56mOmZp07zjkMAgsiMx9GaDdJXRlDrXS1c90hoK5M7mORNAO030 QJD99QzYdqgjNs/7gABIGi05B4/scCpungqGQD5jr0lim9IBAw+VAMznecaY3r75TIHt 88IEzI17RlqaunG9e+3Qk5Br1P2Lng9dRXnRzOCkwgzapTn4X0WX9CNJ06sbyFcQFy8M p2ECD3PJKjHBqsIXPxO2CmTbJ/hxFIozEUMJbhxjk7JN54e4JdPuJcSyNx9rjpUNVDwm UwGw== X-Gm-Message-State: ALoCoQkLGEX2vlAbuke6QVReX5OKQDY4R6UEqJ/+Ka/LNG9BAySxsUD2XJzAKcTBGB1P3SXTh84D X-Received: by 10.112.198.226 with SMTP id jf2mr5894lbc.1.1412887652824; Thu, 09 Oct 2014 13:47:32 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.170 with SMTP id l10ls194993lah.18.gmail; Thu, 09 Oct 2014 13:47:32 -0700 (PDT) X-Received: by 10.112.169.37 with SMTP id ab5mr20363440lbc.27.1412887652687; Thu, 09 Oct 2014 13:47:32 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com [209.85.217.178]) by mx.google.com with ESMTPS id mi5si6115583lbc.61.2014.10.09.13.47.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 Oct 2014 13:47:32 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by mail-lb0-f178.google.com with SMTP id w7so1911663lbi.23 for ; Thu, 09 Oct 2014 13:47:32 -0700 (PDT) X-Received: by 10.153.6.36 with SMTP id cr4mr225005lad.40.1412887652244; Thu, 09 Oct 2014 13:47:32 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp315373lbz; Thu, 9 Oct 2014 13:47:31 -0700 (PDT) X-Received: by 10.224.73.132 with SMTP id q4mr1130082qaj.78.1412887650991; Thu, 09 Oct 2014 13:47:30 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id 9si7484015qas.84.2014.10.09.13.47.30 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 09 Oct 2014 13:47:30 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XcKcT-0005vt-6O; Thu, 09 Oct 2014 20:47:29 +0000 Received: from mail-qg0-f43.google.com ([209.85.192.43]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XcKcM-0005vo-LA for lng-odp@lists.linaro.org; Thu, 09 Oct 2014 20:47:22 +0000 Received: by mail-qg0-f43.google.com with SMTP id j107so3017609qga.30 for ; Thu, 09 Oct 2014 13:47:17 -0700 (PDT) X-Received: by 10.224.5.2 with SMTP id 2mr1028038qat.9.1412887637424; Thu, 09 Oct 2014 13:47:17 -0700 (PDT) Received: from fedora1.holmesfamily.ws ([98.221.136.245]) by mx.google.com with ESMTPSA id 36sm3304819qgn.10.2014.10.09.13.47.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Oct 2014 13:47:16 -0700 (PDT) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Thu, 9 Oct 2014 16:47:10 -0400 Message-Id: <1412887630-34388-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] Fix cunit path X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mike.holmes@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Add include and lib path Only check for cunit if no explicit path is given Signed-off-by: Mike Holmes --- configure.ac | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index a840e5e..aa94034 100644 --- a/configure.ac +++ b/configure.ac @@ -73,11 +73,16 @@ AC_ARG_ENABLE([cunit], AC_ARG_WITH([cunit-path], AC_HELP_STRING([--with-cunit-path=DIR Path to Cunit libs and headers], [(or in the default path if not specified).]), -[CUNIT_PATH=$withval cunit_support=yes ],[ ]) - -AS_IF([test x$cunit_support = xyes ], [ - AC_CHECK_HEADERS([CUnit/Basic.h], [], - [AC_MSG_FAILURE(["can't find cunit headers"])]) +[CUNIT_PATH=$withval cunit_support=yes +AM_CFLAGS="$AM_CFLAGS -I$CUNIT_PATH" +AM_LDFLAGS="$AM_LDFLAGS -L$CUNIT_PATH/lib -lcunit" + + ], +[ + AS_IF([test x$cunit_support = xyes ], [ + AC_CHECK_HEADERS([CUnit/Basic.h], [], + [AC_MSG_FAILURE(["can't find cunit headers"])]) + ]) ]) AC_SUBST(CUNIT_PATH) AM_CONDITIONAL([ODP_CUNIT_ENABLED], [test x$cunit_support = xyes ])