1 diff -ruNp gpsbabel-1.6.0.orig/Makefile.in gpsbabel-1.6.0/Makefile.in
2 --- gpsbabel-1.6.0.orig/Makefile.in 2019-05-02 10:26:47.000000000 +0200
3 +++ gpsbabel-1.6.0/Makefile.in 2019-08-06 03:31:17.476367571 +0200
4 @@ -121,7 +121,7 @@ LIBOBJS = route.o waypt.o filter_vecs.o
5 src/core/textstream.o \
6 src/core/usasciicodec.o \
7 src/core/xmlstreamwriter.o \
8 - $(GARMIN) $(JEEPS) $(FMTS) $(FILTERS) $(SHAPE) @ZLIB@
9 + $(GARMIN) $(JEEPS) $(FMTS) $(FILTERS) $(SHAPE) @ZLIB@ @MINIZIP@
10 OBJS = main.o globals.o $(LIBOBJS) @FILEINFO@
12 DEPFILES = $(OBJS:.o=.d)
13 diff -ruNp gpsbabel-1.6.0.orig/config.h.in gpsbabel-1.6.0/config.h.in
14 --- gpsbabel-1.6.0.orig/config.h.in 2019-05-02 10:26:47.000000000 +0200
15 +++ gpsbabel-1.6.0/config.h.in 2019-08-06 03:32:15.346105354 +0200
17 /* Define to 1 if you have the `m' library (-lm). */
20 +/* Define to 1 if you have the `minizip' library (-lminizip). */
21 +#undef HAVE_LIBMINIZIP
23 /* Defined if you have libusb */
27 /* 1 to enable as many formats as possible */
28 #undef MAXIMAL_ENABLED
30 +/* 1 to inhibit our use of libminizip. */
31 +#undef MINIZIP_INHIBITED
33 /* Define to the address where bug reports for this package should be sent. */
34 #undef PACKAGE_BUGREPORT
36 diff -ruNp gpsbabel-1.6.0.orig/configure.ac gpsbabel-1.6.0/configure.ac
37 --- gpsbabel-1.6.0.orig/configure.ac 2019-05-02 10:26:47.000000000 +0200
38 +++ gpsbabel-1.6.0/configure.ac 2019-08-06 03:34:20.233539240 +0200
39 @@ -128,6 +128,22 @@ AS_CASE([$with_zlib], ["system"], [
43 +AC_MSG_CHECKING([whether to support zlib's minizip])
44 +AC_ARG_WITH([libminizip],
46 + [--with-libminizip=(included)|system|no],
48 +AS_CASE([$with_libminizip], ["system"], [
49 + AC_CHECK_LIB([minizip], [zipOpen64])
51 + AC_DEFINE(MINIZIP_INHIBITED, 1, [1 to inhibit our use of libminizip.])
54 + MINIZIP="\$(MINIZIP)"
55 + AC_MSG_RESULT([using included version])
59 AS_CASE(["$target"], [*-*-mingw32*], [
61 AS_IF([test "$CC" = "gcc"], [