Monday 07 January 2008 22:20:35 tarihinde Ralf Wildenhues şunları yazmıştı:
> The code to generate config headers is in
> autoconf/lib/autoconf/status.m4 (gets installed to
> ...share/autoconf/autoconf/status.m4).  _AC_OUTPUT_HEADERS_PREPARE and
> _AC_OUTPUT_HEADER are the relevant macros.  In the recent couple of
> years, this code has been rewritten a few times; the next Autoconf
> release will sport a rather hefty rewrite of it, to be more efficient.
> It is not easy to read, unfortunately, and I would not recommend to
> touch it without knowing at least sh and sed in and out.

Thanks for the great tip, attached patch does what I proposed but I guess you 
won't accept it, but please understand fixing many broken apps out there 
doesn't sound that good :-(

Regards,
ismail

-- 
Never learn by your mistakes, if you do you may never dare to try again.
diff --git a/lib/autoconf/status.m4 b/lib/autoconf/status.m4
index 8afa9ba..6dd29b5 100644
--- a/lib/autoconf/status.m4
+++ b/lib/autoconf/status.m4
@@ -816,7 +816,9 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   if (D_is_set[macro]) {
     # Preserve the white space surrounding the "#".
     prefix = substr(line, 1, index(line, defundef) - 1)
+    print prefix "ifndef", macro
     print prefix "define", macro P[macro] D[macro]
+    print prefix "endif"
     next
   } else {
     # Replace #undef with comments.  This is necessary, for example,

Reply via email to