I have been trying to figure out why setting a CFLAGS var causes my automake+libtool based project's compile to fail. (CVSROOT=:pserver:[EMAIL PROTECTED]:/cvsroot module=tkgs pass=cvs) Here is the variable I want to add to src/Makefile.am: libtkgs_la_CFLAGS = -DBUILD_TkGS Problem is, when I add this variable I can no longer run automake because it generates this error: % ./autogen.sh automake: src/Makefile.am: required file `src/compile' not found Now I know what you are thinking, just run automake -a to add that file. Well, that does not work. If I add the "compile" file then the next time I run make I get all kinds of warnings like: Makefile:546: warning: overriding commands for target `libtkgs_la-tkgs.o' After a bunch of warnings like this, the compile fails. It compiled just find before I added the CFLAGS variable. It seems like adding the compile file breaks searching for a src file on the vpath. So what should I do now? I can't set the CFLAGS without adding a compile file but adding a compile file breaks the build. stumped Mo DeJong Red Hat Inc
