summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 18508c3)
raw | patch | inline | side by side (parent: 18508c3)
author | Robert Schiele <rschiele@gmail.com> | |
Sun, 29 Jul 2007 18:35:45 +0000 (20:35 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 31 Jul 2007 08:23:43 +0000 (01:23 -0700) |
Some systems do not provide zlib development headers and libraries in
default search path of the compiler. For these systems we should allow
specifying the location by --with-zlib=PATH or by setting ZLIB_PATH in
the makefile.
Signed-off-by: Robert Schiele <rschiele@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
default search path of the compiler. For these systems we should allow
specifying the location by --with-zlib=PATH or by setting ZLIB_PATH in
the makefile.
Signed-off-by: Robert Schiele <rschiele@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile | patch | blob | history | |
configure.ac | patch | blob | history |
diff --git a/Makefile b/Makefile
index c58a4c2a09bf7824f8d68b34d218c077f1996865..ca1247d0e4174f3700768b3941bdaa99063a1e72 100644 (file)
--- a/Makefile
+++ b/Makefile
builtin-pack-refs.o
GITLIBS = $(LIB_FILE) $(XDIFF_LIB)
-EXTLIBS = -lz
+EXTLIBS =
#
# Platform specific tweaks
endif
endif
+ifdef ZLIB_PATH
+ BASIC_CFLAGS += -I$(ZLIB_PATH)/include
+ EXTLIBS += -L$(ZLIB_PATH)/lib $(CC_LD_DYNPATH)$(ZLIB_PATH)/lib
+endif
+EXTLIBS += -lz
+
ifndef NO_OPENSSL
OPENSSL_LIBSSL = -lssl
ifdef OPENSSLDIR
diff --git a/configure.ac b/configure.ac
index 50d2b85ace7d79ba1b8c576b54c6ef1f22ddf91f..b2f196585ddf311a46b476545cbb849b4fa7640c 100644 (file)
--- a/configure.ac
+++ b/configure.ac
# Define PERL_PATH to provide path to Perl.
GIT_ARG_SET_PATH(perl)
#
+# Define ZLIB_PATH to provide path to zlib.
+GIT_ARG_SET_PATH(zlib)
+#
# Declare the with-tcltk/without-tcltk options.
AC_ARG_WITH(tcltk,
AS_HELP_STRING([--with-tcltk],[use Tcl/Tk GUI (default is YES)])