[Ecls-list] Patch: keep autoconf from commenting-out #undef directive in config.h

Josh Elsasser josh at elsasser.org
Sat Aug 30 21:02:16 UTC 2008


The autoconf-generated configure script is commenting out the
#undef ECL_API directive near the top of config.h.in when generating
config.h.  Adding a comment to the end of the line convinces it to
pass the line through unmolested.

Feel free to use your own comment, such as /* autoconf sucks */

--- src/h/config.h.in
+++ src/h/config.h.in
@@ -32,7 +32,7 @@
 #else
 # define ECL_DLLEXPORT
 # ifdef ECL_API
-#  undef ECL_API
+#  undef ECL_API /* this comment is magic */
 # endif
 # define ECL_API
 #endif




More information about the ecl-devel mailing list