2009-12-04 11:35:14 +01:00
|
|
|
Index: config_h.in
|
|
|
|
===================================================================
|
|
|
|
--- config_h.in.orig
|
2007-01-16 00:10:08 +01:00
|
|
|
+++ config_h.in
|
|
|
|
@@ -5,4 +5,10 @@
|
|
|
|
* config.h -- Kevin Buettner.
|
|
|
|
*/
|
|
|
|
|
|
|
|
-@DEFS@
|
|
|
|
+#define HAVE_GETOPT_H 0
|
|
|
|
+#define HAVE_MALLOC_H 0
|
|
|
|
+#define HAVE_POPEN 0
|
|
|
|
+#define HAVE_STDLIB_H 0
|
|
|
|
+#define HAVE_STRING_H 0
|
|
|
|
+#define HAVE_UNISTD_H 0
|
|
|
|
+#define STDC_HEADERS 0
|
2009-12-04 11:35:14 +01:00
|
|
|
Index: diffstat.c
|
|
|
|
===================================================================
|
|
|
|
--- diffstat.c.orig
|
2009-08-13 23:29:34 +02:00
|
|
|
+++ diffstat.c
|
2009-12-04 11:35:14 +01:00
|
|
|
@@ -228,6 +228,10 @@ extern int optind;
|
2009-08-13 23:29:34 +02:00
|
|
|
#define BZIP2_PATH ""
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+#ifndef ZCAT_PATH
|
|
|
|
+#define ZCAT_PATH ""
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#ifndef COMPRESS_PATH
|
|
|
|
#define COMPRESS_PATH ""
|
|
|
|
#endif
|
2009-12-04 11:35:14 +01:00
|
|
|
Index: makefile.in
|
|
|
|
===================================================================
|
|
|
|
--- makefile.in.orig
|
2007-01-16 00:10:08 +01:00
|
|
|
+++ makefile.in
|
2009-12-04 11:35:14 +01:00
|
|
|
@@ -8,6 +8,7 @@ THIS = diffstat
|
2007-01-16 00:10:08 +01:00
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
+DEFS = @DEFS@
|
|
|
|
CC = @CC@
|
|
|
|
LINK = $(CC)
|
|
|
|
INSTALL = @INSTALL@
|
2009-12-04 11:35:14 +01:00
|
|
|
@@ -15,7 +16,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
2007-01-16 00:10:08 +01:00
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
|
|
|
CFLAGS = @CFLAGS@ @EXTRA_CFLAGS@
|
|
|
|
-CPPFLAGS = -I. -I$(srcdir) -DHAVE_CONFIG_H @CPPFLAGS@
|
|
|
|
+CPPFLAGS = -I. -I$(srcdir) $(DEFS) @CPPFLAGS@
|
|
|
|
|
|
|
|
LIBS = @LIBS@
|
|
|
|
LDFLAGS = @LDFLAGS@
|
2009-12-04 11:35:14 +01:00
|
|
|
@@ -27,8 +28,8 @@ DESTDIR = @DESTDIR@
|
2007-01-16 00:10:08 +01:00
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
|
|
|
|
-bindir = $(DESTDIR)@bindir@
|
|
|
|
-mandir = $(DESTDIR)@mandir@
|
|
|
|
+bindir = @bindir@
|
|
|
|
+mandir = @mandir@
|
|
|
|
|
|
|
|
#### End of system configuration section. ####
|
|
|
|
|
2009-12-04 11:35:14 +01:00
|
|
|
@@ -68,11 +69,11 @@ $(PROG) : diffstat$o
|
2007-01-16 00:10:08 +01:00
|
|
|
@ECHO_LD@$(LINK) $(LDFLAGS) -o $@ diffstat$o $(LIBS)
|
|
|
|
|
|
|
|
install : all installdirs
|
|
|
|
- $(INSTALL_PROGRAM) $(PROG) $(bindir)/$(PROG)
|
|
|
|
- $(INSTALL_DATA) $(srcdir)/$(THIS).1 $(man1dir)/$(THIS).$(manext)
|
|
|
|
+ $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(bindir)/$(PROG)
|
|
|
|
+ $(INSTALL_DATA) $(srcdir)/$(THIS).1 $(DESTDIR)$(man1dir)/$(THIS).$(manext)
|
|
|
|
|
|
|
|
installdirs :
|
|
|
|
- $(SHELL) ${srcdir}/mkdirs.sh $(bindir) $(libdir) $(man1dir)
|
|
|
|
+ $(SHELL) ${srcdir}/mkdirs.sh $(DESTDIR)$(bindir) $(DESTDIR)$(libdir) $(DESTDIR)$(man1dir)
|
|
|
|
|
|
|
|
uninstall :
|
|
|
|
rm -f $(bindir)/$(PROG) $(man1dir)/$(THIS).$(manext)
|