Re: Warn: non-POSIX variable name

2008-08-20 Thread Steven Woody
Thanks! On Thu, Aug 21, 2008 at 1:42 PM, Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > * Peter Johansson wrote on Wed, Aug 20, 2008 at 05:23:10AM CEST: >> Steven Woody wrote: >>> 2. What's the difference between @varname@ and $(varname) in a >>> Makefile.am? I noted you use many @@ >>> >> I thi

Re: Warn: non-POSIX variable name

2008-08-20 Thread Ralf Wildenhues
* Peter Johansson wrote on Wed, Aug 20, 2008 at 05:23:10AM CEST: > Steven Woody wrote: >> 2. What's the difference between @varname@ and $(varname) in a >> Makefile.am? I noted you use many @@ >> > I think the difference is that for example @builddir@ is substituted to > '.' when the Makef

Re: Warn: non-POSIX variable name

2008-08-19 Thread Peter Johansson
Steven Woody wrote: Thank you Peter. I have two more questions: 1, Where and how you set the HAVE_SVN_WC? I have the following in my configure.ac: # Check if svnversion is installed AC_PATH_PROG([SVNVERSION], [svnversion], [no]) # checking if we build in a subversion WC wc_found="no"; if

Re: Warn: non-POSIX variable name

2008-08-19 Thread Steven Woody
> Hi Steven, > > If I remember correctly a changed value in "-D flag" will not cause > re-compilation, so if it is important that the version information > propagates to your binary, it is likely better to generate a header file or > even a source file than using these CPPFLAGS. I'm doing that in o

Re: Warn: non-POSIX variable name

2008-08-19 Thread Peter Johansson
Steven Woody wrote: On Tue, Aug 19, 2008 at 3:43 PM, Brian Dessent <[EMAIL PROTECTED]> wrote: Steven Woody wrote: Thank you. Adding -Wno-portablility to AM_INIT_AUTOMAKE works. But I don't understand your other words: "For the former, run the script at configure-time rather than at m

Re: Warn: non-POSIX variable name

2008-08-19 Thread Steven Woody
On Tue, Aug 19, 2008 at 3:43 PM, Brian Dessent <[EMAIL PROTECTED]> wrote: > Steven Woody wrote: > >> Thank you. Adding -Wno-portablility to AM_INIT_AUTOMAKE works. But I >> don't understand your other words: "For the former, >> run the script at configure-time rather than at make-time and AC_SUBS

Re: Warn: non-POSIX variable name

2008-08-19 Thread Andreas Schwab
Brian Dessent <[EMAIL PROTECTED]> writes: > The difference with this method is that the values are computed once > when configure is run, and then substituted into the Makefile when it is > generated after configure has completed. When you use $(shell ...) the > value is not computed until you ru

Re: Warn: non-POSIX variable name

2008-08-19 Thread Brian Dessent
Steven Woody wrote: > Thank you. Adding -Wno-portablility to AM_INIT_AUTOMAKE works. But I > don't understand your other words: "For the former, > run the script at configure-time rather than at make-time and AC_SUBST > the resulting value." I mean adding something like the following to configu

Re: Warn: non-POSIX variable name

2008-08-18 Thread Steven Woody
On Tue, Aug 19, 2008 at 10:51 AM, Brian Dessent <[EMAIL PROTECTED]> wrote: > Steven Woody wrote: > >> How do I remove these warnings when do automake: >> >> src/rmeterd/Makefile.am:9: shell ../../svndate-sh: non-POSIX variable >> name >> src/rmeterd/Makefile.am:9: (probably a GNU make exte

Re: Warn: non-POSIX variable name

2008-08-18 Thread Ralf Wildenhues
Hello, * Brian Dessent wrote on Tue, Aug 19, 2008 at 04:51:42AM CEST: > Steven Woody wrote: > > > > rmeterd_CXXFLAGS = \ > > -D'SVN_REV="$(shell ../../svnrev-sh)"' \ > > -D'SVN_DATE="$(shell ../../svndate-sh)"' > > What's the correct way to do this wit

Re: Warn: non-POSIX variable name

2008-08-18 Thread Brian Dessent
Steven Woody wrote: > How do I remove these warnings when do automake: > > src/rmeterd/Makefile.am:9: shell ../../svndate-sh: non-POSIX variable name > src/rmeterd/Makefile.am:9: (probably a GNU make extension) > > in the Makefile.am, I did something like this: > > rmeterd_CXXFLAGS

Warn: non-POSIX variable name

2008-08-18 Thread Steven Woody
Hi, How do I remove these warnings when do automake: src/rmeterd/Makefile.am:9: shell ../../svndate-sh: non-POSIX variable name src/rmeterd/Makefile.am:9: (probably a GNU make extension) in the Makefile.am, I did something like this: rmeterd_CXXFLAGS = \ -D'SVN_