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 02:58 PM, Vincent Torri wrote:
> 
> Hey,
> 
> Our configure.ac contains, at the top:
> 
> ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
> ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
> m4_define([v_maj], [0])
> m4_define([v_min], [9])
> m4_define([v_mic], [9])
> m4_define([v_rev], m4_esyscmd([(svnversion . | grep -v exported || echo
> 0) | awk -F : '{printf("%s", $1);}' | tr 'A-z' ' ' | sed 's/ //g']))

$1 of the m4 macro v_rev, or $1 of the awk script?

> 
> Does someone see the problem ?

My guess is that $1 is being expanded by m4.  Awk understands '$ 1'
instead of '$1', try that to see if it helps.

-- 
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