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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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" <berrange@xxxxxxxxxx>
>>
>> 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
>>   * Substitute FOO_CFLAGS and FOO_LIBS make variables
>>   * Print CFLAGS & LIBS summary at the end
>>
> 
> General impression - nice!
> 

>> +  m4_expand(cflags_var[=])
>> +  m4_expand(libs_var[=])
> 
> Overkill; you could get by with:
> 
> libvirt quality:
> cflags_var=
> libs_var=
> 
> Pedantic quality:
> m4_defn([cflags_var])=
> m4_defn([libs_var])=

Worse, broken on RHEL 5, where autoconf 2.59 lacks m4_expand:

./configure: line 90263: syntax error near unexpected token `with_audit=no'
./configure: line 90263: `      m4_expand(with_audit=no)'

I'll push the obvious patch shortly.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]