Re: m4 and autoconf problem on mac os x

2010-06-02 Thread Stefano Lattarini
At Wednesday 02 June 2010, Eric Blake wrote: > On 06/02/2010 03:25 PM, Stefano Lattarini wrote: > > Souldn't the printf("%s", $1) already taking care of the newline > > removal? > > Yes, but sed adds it back in. > I wasn't aware of this sed "feature". Thanks for pointing it out. > Not to mentio

Re: m4 and autoconf problem on mac os x

2010-06-02 Thread Vincent Torri
On Wed, 2 Jun 2010, Eric Blake wrote: On 06/02/2010 03:25 PM, Stefano Lattarini wrote: Hello Raphael. At Wednesday 02 June 2010, "Raphael 'kena' Poss" wrote: m4_define([v_rev], m4_esyscmd([(svnversion . | grep -v exported || echo 0) | awk -F : '{printf("%s", $1);}' | tr 'A-z' ' ' | sed 's/

Re: m4 and autoconf problem on mac os x

2010-06-02 Thread Eric Blake
On 06/02/2010 03:25 PM, Stefano Lattarini wrote: > Hello Raphael. > > At Wednesday 02 June 2010, "Raphael 'kena' Poss" wrote: >>> 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 wan

Re: m4 and autoconf problem on mac os x

2010-06-02 Thread Stefano Lattarini
Hello Raphael. At Wednesday 02 June 2010, "Raphael 'kena' Poss" wrote: > > 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 lin

Re: m4 and autoconf problem on mac os x

2010-06-02 Thread Eric Blake
On 06/02/2010 03:13 PM, Eric Blake wrote: > On 06/02/2010 02:58 PM, Vincent Torri wrote: >> >> Hey, >> >> Our configure.ac contains, at the top: >> >> ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## >> ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## >> m4_defin

Re: m4 and autoconf problem on mac os x

2010-06-02 Thread Stefano Lattarini
Hello Vincent. Your snippet works correctly on my system (debian unstalbe, m4 1.4.13, autoconf 2.65). Which version of m4 do you have? What happens if you change the definition of `v_rev' to: m4_define([v_rev], m4_esyscmd([(svnversion . | grep -v exported || echo 0) | awk -F : '{printf("%s",

Re: m4 and autoconf problem on mac os x

2010-06-02 Thread Eric Blake
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

Re: m4 and autoconf problem on mac os x

2010-06-02 Thread Raphael 'kena' Poss
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

Re: m4 and autoconf problem on mac os x

2010-06-02 Thread Eric Blake
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_de

m4 and autoconf problem on mac os x

2010-06-02 Thread Vincent Torri
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 .

Re: AC_CHECK_DECLS(basename) (Was: Re: Ping: patches required for --enable-build-with-cxx)

2010-06-02 Thread Eric Blake
On 06/01/2010 05:52 AM, Richard Guenther wrote: > On Thu, Feb 18, 2010 at 1:26 AM, Paolo Bonzini wrote: Maybe we can use this in AC_CHECK_DECLS instead of having a new separate macro. If there is a parenthesis in the name call the new version, if there is none, call the old one. >>

Re: AC_CHECK_DECLS(basename) (Was: Re: Ping: patches required for --enable-build-with-cxx)

2010-06-02 Thread Richard Guenther
On Thu, Feb 18, 2010 at 1:26 AM, Paolo Bonzini wrote: >>> Maybe we can use this in AC_CHECK_DECLS instead of having a new >>> separate macro.  If there is a parenthesis in the name call the new >>> version, if there is none, call the old one. >> >> You shouldn't need to keep the old version around

Re: Passing an argument to configure script of subproject

2010-06-02 Thread Richard Ash
On Wed, 2010-05-26 at 23:43 +0200, ithilgore wrote: > The problem is that in order to share libfoo between the two projects (that > is both can fetch it as an external svn object), projectA needs to pass a > certain flag to the configure script of libfoo. This flag/argument would be > something lik