aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--configure.ac28
2 files changed, 24 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index 2384178e82c..e061b6ad4a1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
12013-08-11 Paul Eggert <eggert@cs.ucla.edu>
2
3 Add --with-zlib to 'configure'.
4 * configure.ac: Add --with-zlib option to 'configure', so that Emacs
5 can be built without zlib. Don't assume that -lz is needed on
6 non-PNG hosts. Mention zlib configuration status in 'configure' output.
7
12013-08-11 Lars Magne Ingebrigtsen <larsi@gnus.org> 82013-08-11 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 9
3 * configure.ac: Test for zlib. 10 * configure.ac: Test for zlib.
diff --git a/configure.ac b/configure.ac
index ca30b38dab4..8b565320df5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -211,6 +211,7 @@ OPTION_DEFAULT_ON([gconf],[don't compile with GConf support])
211OPTION_DEFAULT_ON([gsettings],[don't compile with GSettings support]) 211OPTION_DEFAULT_ON([gsettings],[don't compile with GSettings support])
212OPTION_DEFAULT_ON([selinux],[don't compile with SELinux support]) 212OPTION_DEFAULT_ON([selinux],[don't compile with SELinux support])
213OPTION_DEFAULT_ON([gnutls],[don't use -lgnutls for SSL/TLS support]) 213OPTION_DEFAULT_ON([gnutls],[don't use -lgnutls for SSL/TLS support])
214OPTION_DEFAULT_ON([zlib],[don't compile with zlib decompression support])
214 215
215AC_ARG_WITH([file-notification],[AS_HELP_STRING([--with-file-notification=LIB], 216AC_ARG_WITH([file-notification],[AS_HELP_STRING([--with-file-notification=LIB],
216 [use a file notification library (LIB one of: yes, gfile, inotify, w32, no)])], 217 [use a file notification library (LIB one of: yes, gfile, inotify, w32, no)])],
@@ -2944,19 +2945,23 @@ AC_SUBST(LIBPNG)
2944 2945
2945HAVE_ZLIB=no 2946HAVE_ZLIB=no
2946LIBZ= 2947LIBZ=
2947if test "${HAVE_PNG}" = "yes"; then 2948if test "${with_zlib}" != "no"; then
2948 ### PNG depends on zlib, so if we have PNG, we have zlib. 2949 if test "${HAVE_PNG}" = "yes"; then
2949 HAVE_ZLIB=yes 2950 ### PNG depends on zlib, so if we have PNG, we have zlib.
2950 AC_DEFINE(HAVE_ZLIB, 1, [Define to 1 if you have the zlib library (-lz).]) 2951 HAVE_ZLIB=yes
2951else 2952 else
2952 ### No PNG, so check zlib ourselves. 2953 ### No PNG, so check zlib ourselves.
2953 LIBS="-lz $LIBS" 2954 OLIBS=$LIBS
2954 AC_CHECK_LIB(z, inflateEnd, HAVE_ZLIB=yes, HAVE_ZLIB=no) 2955 AC_SEARCH_LIBS([inflateEnd], [z], [HAVE_ZLIB=yes])
2955 if test "${HAVE_ZLIB}" = "yes"; then 2956 LIBS=$OLIBS
2956 AC_DEFINE(HAVE_ZLIB, 1, [Define to 1 if you have the zlib library (-lz).]) 2957 case $ac_cv_search_inflateEnd in
2957 LIBZ=-lz 2958 -*) LIBZ=$ac_cv_search_inflateEnd ;;
2959 esac
2958 fi 2960 fi
2959fi 2961fi
2962if test "${HAVE_ZLIB}" = "yes"; then
2963 AC_DEFINE([HAVE_ZLIB], 1, [Define to 1 if you have the zlib library (-lz).])
2964fi
2960AC_SUBST(LIBZ) 2965AC_SUBST(LIBZ)
2961 2966
2962 2967
@@ -4812,6 +4817,7 @@ echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}
4812echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}" 4817echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
4813echo " Does Emacs use -lotf? ${HAVE_LIBOTF}" 4818echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
4814echo " Does Emacs use -lxft? ${HAVE_XFT}" 4819echo " Does Emacs use -lxft? ${HAVE_XFT}"
4820echo " Does Emacs directly use zlib? ${HAVE_ZLIB}"
4815 4821
4816echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" 4822echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
4817echo 4823echo