From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: Re: [PATCH 4 of 4 RFC] xl/remus: Add libnl3 dependency to autoconf scripts and libxl/Makefile Date: Mon, 29 Jul 2013 16:41:20 +0100 Message-ID: <51F68D20.9090400@citrix.com> References: <51F247B6.6020407@citrix.com> <51F60496.20208@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: rshriram@cs.ubc.ca Cc: "xen-devel@lists.xen.org" , Ian Campbell , Wen Congyang , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On 29/07/13 14:07, Shriram Rajagopalan wrote: > On Mon, Jul 29, 2013 at 1:58 AM, Wen Congyang wrote: >>> If I use AC_CHECK_LIB and AC_CHECK_HEADERS, would it automatically add the >>> include path to CFLAGS, such that I wouldnt have to manually specify >>> -I flags in libxl/Makefile ? >> >> No. AC_CHECK_HEADERS can check if the header file is under the default directory. >> If the header file is under the directory /usr/include, you can use it. >> But why your header file is under the directory /usr/local/include? >> > > I think its because I installed libnl3 in /usr/local, from the sources. > If there is a proper way to specify custom install directories for > certain libraries, > then I dont think we need that hard coded -I /usr/local/include/libnl3 You need to tell pkg-config where to find the .pc file. I don't recall the details for how to do this. PKG_CONFIG_PATH perhaps? David