Autoreconf stops with "non-POSIX variable name"

2013-03-29 Thread oborchert
Hi, I created a Makefile.in where I read the content out of a file and pass it to CFLAGS. Calling ./configure ... the Makefile will be generated an all works well. Makefile.in: ... MY_REVISION_FILE=my-revision.txt MY_REVISION=$(shell cat $(top_srcdir)/$(MY_REVISION_FILE)) AM_CFLAGS = -I$(EXTRAS_I

Re: Autoreconf stops with "non-POSIX variable name"

2013-03-29 Thread Russ Allbery
oborchert writes: > I created a Makefile.in where I read the content out of a file and pass > it to CFLAGS. Calling ./configure ... the Makefile will be generated an > all works well. > Makefile.in: > ... > MY_REVISION_FILE=my-revision.txt > MY_REVISION=$(shell cat $(top_srcdir)/$(MY_REVISION_FI

Re: Autoreconf stops with "non-POSIX variable name"

2013-03-29 Thread Eric Blake
[adding automake] On 03/29/2013 03:44 PM, Russ Allbery wrote: >> MY_REVISION_FILE=my-revision.txt >> MY_REVISION=$(shell cat $(top_srcdir)/$(MY_REVISION_FILE)) $(shell ...) is a GNU make extension, and by using it, you are making your Makefile.am useless for all other make flavors. Automake's g

Re: Autoreconf stops with "non-POSIX variable name"

2013-03-29 Thread Peter Johansson
On 3/30/13 7:17 AM, oborchert wrote: Hi, I created a Makefile.in where I read the content out of a file and pass it to CFLAGS. Calling ./configure ... the Makefile will be generated an all works well. Makefile.in: ... MY_REVISION_FILE=my-revision.txt MY_REVISION=$(shell cat $(top_srcdir)/$(MY_RE