Peter Simons wrote:
> I completely agree that Gnulib shouldn't try to support
> non-config.h builds in general. It's not worth the effort, really. Yet,
> at the same time it would feel like prudent software engineering if
> Gnulib would avoid creating unnecessary obstacles for those projects
> that work fine without config.h.

gnulib-tool offers you a way to adapt the Gnulib source to your wishes:
If you store a file lib/md5.c.diff in a subdirectory 'gnulib-local' of
your package and pass the option --local-dir=gnulib-local to the gnulib-tool
invocation, gnulib-tool will apply this diff when pulling lib/md5.c from
the Gnulib repository.

lib/md5.c.diff can look like this:

--- a/lib/md5.c
+++ b/lib/md5.c
@@ -20,7 +20,9 @@
 
 /* Written by Ulrich Drepper <drep...@gnu.ai.mit.edu>, 1995.  */
 
+#ifdef HAVE_CONFIG_H
 #include <config.h>
+#endif
 
 #include "md5.h"
 


Bruno


Reply via email to