Reputation: 534
I know AC_SUBST(VAR) to pass the VAR to Makefile.am.
Are there any syntax to generate my #define into config.h in configure.ac?
Upvotes: 3
Views: 2581
Reputation: 22318
As long as you use AC_CONFIG_HEADERS - e.g., AC_CONFIG_HEADERS([config.h])
in configure.ac
- the AC_DEFINE macro will generate a #define ...
in the header.
Upvotes: 6