Re: [libvirt] [PATCH 1/9] Add some autoconf helper macros for checking for libraries

2013-01-11 Thread Daniel P. Berrange
On Fri, Jan 11, 2013 at 11:09:15AM -0700, Eric Blake wrote: > On 01/10/2013 03:20 PM, Eric Blake wrote: > > On 01/10/2013 01:18 PM, Daniel P. Berrange wrote: > >> From: "Daniel P. Berrange" > >> > >> Most checks for libraries take the same format > >> > >> * --with-libFOO=yes|no|check|/some/path

Re: [libvirt] [PATCH 1/9] Add some autoconf helper macros for checking for libraries

2013-01-11 Thread Eric Blake
On 01/10/2013 03:20 PM, Eric Blake wrote: > On 01/10/2013 01:18 PM, Daniel P. Berrange wrote: >> From: "Daniel P. Berrange" >> >> Most checks for libraries take the same format >> >> * --with-libFOO=yes|no|check|/some/path argument >> * check for a function NNN in libFOO.so >> * check for a

Re: [libvirt] [PATCH 1/9] Add some autoconf helper macros for checking for libraries

2013-01-11 Thread Daniel P. Berrange
On Fri, Jan 11, 2013 at 10:01:45AM -0700, Eric Blake wrote: > On 01/11/2013 03:37 AM, Daniel P. Berrange wrote: > > On Thu, Jan 10, 2013 at 03:20:27PM -0700, Eric Blake wrote: > >> On 01/10/2013 01:18 PM, Daniel P. Berrange wrote: > > > >>> + > >>> + if test $fail = 1; then > >>> +AC_MSG_ERRO

Re: [libvirt] [PATCH 1/9] Add some autoconf helper macros for checking for libraries

2013-01-11 Thread Eric Blake
On 01/11/2013 03:37 AM, Daniel P. Berrange wrote: > On Thu, Jan 10, 2013 at 03:20:27PM -0700, Eric Blake wrote: >> On 01/10/2013 01:18 PM, Daniel P. Berrange wrote: > >>> + >>> + if test $fail = 1; then >>> +AC_MSG_ERROR([You must install the lib]library_name[ library & headers >>> to compil

Re: [libvirt] [PATCH 1/9] Add some autoconf helper macros for checking for libraries

2013-01-11 Thread Daniel P. Berrange
On Thu, Jan 10, 2013 at 03:20:27PM -0700, Eric Blake wrote: > On 01/10/2013 01:18 PM, Daniel P. Berrange wrote: > > + > > + if test $fail = 1; then > > +AC_MSG_ERROR([You must install the lib]library_name[ library & headers > > to compile libvirt]) > > It would be really nice if you could r

Re: [libvirt] [PATCH 1/9] Add some autoconf helper macros for checking for libraries

2013-01-10 Thread Eric Blake
On 01/10/2013 01:18 PM, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" > > Most checks for libraries take the same format > > * --with-libFOO=yes|no|check|/some/path argument > * check for a function NNN in libFOO.so > * check for a header file DDD/HHH.h > * Define a WITH_FOO co

[libvirt] [PATCH 1/9] Add some autoconf helper macros for checking for libraries

2013-01-10 Thread Daniel P. Berrange
From: "Daniel P. Berrange" Most checks for libraries take the same format * --with-libFOO=yes|no|check|/some/path argument * check for a function NNN in libFOO.so * check for a header file DDD/HHH.h * Define a WITH_FOO config.h symbol * Define a WITH_FOO make conditional * Substitut