Re: m4 and autoconf problem on mac os x

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

 



On 06/02/2010 03:14 PM, Raphael 'kena' Poss wrote:
> 
> Op 2 jun 2010, om 22:58 heeft Vincent Torri het volgende geschreven:
>> m4_define([v_rev], m4_esyscmd([(svnversion . | grep -v exported || echo 0) | awk -F : '{printf("%s", $1);}' | tr 'A-z' ' ' | sed 's/ //g']))
> 
> you probably want to add 
> 
>      | tr -d '\n' 
> 
> to that command line, to remove the trailing newline.

Or, if you are using new enough autoconf (2.64 or newer), use
m4_esyscmd_s instead of m4_esyscmd to have m4 strip the newline, instead
of tr.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux