Skip to content
Snippets Groups Projects
Commit f50678ed authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

don't include config.g in src/hugehelp.c unless HAVE_CONFIG_H is defined

parent 3ded8118
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,9 @@
Changelog
Daniel(29 January 2004)
- Stadler Stephan pointed out that src/hugehelp.c included config.h without
checking the define if its present...
- Ken Hirsch provided patches to make curl build fine on the MPE/iX operating
system.
......
......@@ -51,18 +51,21 @@ EXTRA_DIST = mkhelp.pl curlmsg.msg makefile.dj \
MANPAGE=$(top_srcdir)/docs/curl.1
README=$(top_srcdir)/docs/MANUAL
MKHELP=$(top_srcdir)/src/mkhelp.pl
HUGE=hugehelp.c
if HAVE_LIBZ
# This generates the hugehelp.c file in both uncompressed and compressed formats
hugehelp.c: $(README) $(MANPAGE) mkhelp.pl
echo '#include "config.h"' > hugehelp.c
echo '#ifndef HAVE_LIBZ' >> hugehelp.c
$(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP) $(README) >> hugehelp.c
echo '#else' >> hugehelp.c
$(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP) -c $(README) >> hugehelp.c
echo '#endif /* HAVE_LIBZ */' >> hugehelp.c
$(HUGE): $(README) $(MANPAGE) mkhelp.pl
echo '#ifdef HAVE_CONFIG_H' > $(HUGE)
echo '#include "config.h"' >> $(HUGE)
echo '#endif' >> $(HUGE)
echo '#ifndef HAVE_LIBZ' >> $(HUGE)
$(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP) $(README) >> $(HUGE)
echo '#else' >> $(HUGE)
$(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP) -c $(README) >> $(HUGE)
echo '#endif /* HAVE_LIBZ */' >> $(HUGE)
else
# This generates the hugehelp.c file uncompressed only
hugehelp.c: $(README) $(MANPAGE) mkhelp.pl
$(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP) $(README) > hugehelp.c
$(HUGE): $(README) $(MANPAGE) mkhelp.pl
$(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP) $(README) > $(HUGE)
endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment