How to set a define through "./configure" with Autoconf

Viewed 14161

I have one project that can generate two diferent applications based on one define.

libfoo_la_CXXFLAGS = -DMYDEFINE

I have to modify the Makefile.am to set this define, so it is not automatic.

Can I set this define somehow through the configure command? Is there any other way to set one define using autotools?

2 Answers
Related