On Tue, Oct 16, 2012 at 06:14:54PM -0500, David Champion wrote: > +conststrings.c: txt2c.py > + ( \ > + $${CC-cc} --version || \ > + $${CC-cc} -v || \ > + $${CC-cc} -V || \ > + echo "unknown compiler"; \ > + ) 2>/dev/null | python txt2c.py cc_version >conststrings.c > + grep ac_cs_config= config.status | \ > + cut -d= -f2- | \ > + sed -e 's/^"//' -e 's/"$$//' | python txt2c.py configure_options > >>conststrings.c > +
You want a dependency against config.status. Please don't make the build require python. A lot of systems don't have it installed. There are much easier ways to get bits of strings compiled into a .c file. 1) just echo '"'"text string"'"', > file and then #include the file in the middle a the C initialser. 2) Arrange to pass -DTEXT="text strings" on the command line to cc. This one requires tricky quoting to get right. Probably using as: #define STR(x) #x char foo[] = STR(TEXT); will work. David -- David Laight: da...@l8s.co.uk