From patchwork Thu Sep 4 20:49:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 36762 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C10E7202E4 for ; Thu, 4 Sep 2014 20:50:39 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id y10sf63133179pdj.8 for ; Thu, 04 Sep 2014 13:50:39 -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=9IFjEVRCRG722R8iiEIM+A1CAyQAV5u7f4MvMzIYmY4=; b=ANaU9vxW2K+POef4iWlAV8KT3cRz1URamcBTAjOe6jPLFmoUDRlY8FBS1hK07LdxVg bWC29te+rZByY3K//sLH/XEG9CJhp6FLJtoxOHjpm0ocg6b8CZc+U2IBAUDxLQr9Y+Er +aJG9RK0clNgIg1yBbc5gfOnm/c/Q6v3vL0Qh2P9CqPfaWAtPqb0r3MSfZcbr5eM7G0O J4+5zcuXmlzGAcIGwbn6rPhzzJ3g7B0YaYPErTcU8u42MdV9MlHnPrmwIS/t83eVqc0o a9IKA6P5a8zSlHvaO3jxZJ30ewQMD/MAV1Z3INVB6YvzN3a2bFHru4k/mLsur+7G0raB /Ouw== X-Gm-Message-State: ALoCoQm4OAQGc5KFX+UB8n0W+VkBJfQUcZjSuejZH9YMvbgaYmr+5aMz1onUGJqA39T37llLiCL8 X-Received: by 10.70.96.197 with SMTP id du5mr3995755pdb.3.1409863839086; Thu, 04 Sep 2014 13:50:39 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.29.132 with SMTP id b4ls439796qgb.34.gmail; Thu, 04 Sep 2014 13:50:38 -0700 (PDT) X-Received: by 10.221.6.201 with SMTP id ol9mr6755982vcb.2.1409863838946; Thu, 04 Sep 2014 13:50:38 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id ip5si77875vcb.52.2014.09.04.13.50.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Sep 2014 13:50:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id im17so11281946vcb.4 for ; Thu, 04 Sep 2014 13:50:38 -0700 (PDT) X-Received: by 10.220.118.136 with SMTP id v8mr4004338vcq.50.1409863838863; Thu, 04 Sep 2014 13:50:38 -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.221.45.67 with SMTP id uj3csp897234vcb; Thu, 4 Sep 2014 13:50:38 -0700 (PDT) X-Received: by 10.224.38.10 with SMTP id z10mr11441955qad.52.1409863838288; Thu, 04 Sep 2014 13:50:38 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id 11si135640qgy.79.2014.09.04.13.50.34 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 04 Sep 2014 13:50:36 -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-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XPdzF-000401-0H; Thu, 04 Sep 2014 20:50:33 +0000 Received: from mail-qc0-f177.google.com ([209.85.216.177]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XPdz9-0003zw-Uq for lng-odp@lists.linaro.org; Thu, 04 Sep 2014 20:50:27 +0000 Received: by mail-qc0-f177.google.com with SMTP id i8so11293305qcq.36 for ; Thu, 04 Sep 2014 13:50:22 -0700 (PDT) X-Received: by 10.224.74.202 with SMTP id v10mr11102347qaj.101.1409863822618; Thu, 04 Sep 2014 13:50:22 -0700 (PDT) Received: from fedora1.holmesfamily.ws (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by mx.google.com with ESMTPSA id b19sm108702qge.24.2014.09.04.13.50.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Sep 2014 13:50:22 -0700 (PDT) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Thu, 4 Sep 2014 16:49:59 -0400 Message-Id: <1409863799-12227-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH v2] configure.ac: Add --with-netmap-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.220.173 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 Signed-off-by: Mike Holmes --- v2: point at the root of netmap, and have configure find sys configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac index 76cf638..b1fc859 100644 --- a/configure.ac +++ b/configure.ac @@ -70,6 +70,15 @@ AC_ARG_ENABLE([netmap], ODP_CFLAGS="$ODP_CFLAGS -DODP_HAVE_NETMAP=1" fi]) +AC_ARG_WITH([netmap-path], +AC_HELP_STRING([--with-netmap-path=DIR Path to netmap libs and headers], + [(or in the default path if not specified).]), +[NETMAP_PATH=$withval netmap_support=yes +AM_CFLAGS="$AM_CFLAGS -I$NETMAP_PATH/sys" +ODP_CFLAGS="$ODP_CFLAGS -DODP_HAVE_NETMAP=1" +],[ AC_MSG_WARN([Netmap not found - continuing without netmap support]) +]) + AM_CONDITIONAL([ODP_NETMAP_ENABLED], [test x$netmap_support = xyes ]) ##########################################################################