m4

m4 does not obey expansion?

Hi, I use m4 for a little text preprocessing here, and it behaves in a way I don't understand. This is the portion in question: ifdef(`TEST', define(`O_EXT', `.obj'), define(`O_EXT', `.o')) This macro will always be expanded to .o, regardless whether TEST is defined (m4 -DTEST) or not. What am I doing wrong? ...

preprocessor API for Java

Hi, Does anyone know of a Java preprocessor library? I'm searching for something like m4. I could just invoke m4 from Java and capture the result, but I don't want to depend on m4 being installed in the systems where the application runs. A standalone Java API that is similar to m4 would be great. Thanks. edit: I think I didn't explai...

Wrong value of variable LIBS generated by a macro

Hi, I've autoconfiscated a project that link against libresolv and libtpthread, and optionally against ssl, mysqlclient and pq. I am working on Fedora 13 (i686). I've found a macro AX_EXT_HAVE_LIB (http://www.gnu.org/software/autoconf-archive/ax_ext_have_lib.html) that "is identical to AC_SEARCH_LIBS with the exception that will add -L...