Unset zlibdir/zlibinc only for --with-system-zlib

* zlib.m4 (AM_ZLIB): Unset zlibdir and zlibinc only for
	--with-system-zlib.
This commit is contained in:
H.J. Lu 2015-04-01 04:51:55 -07:00
parent 875b5b9d14
commit 031f1448b6
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
* zlib.m4 (AM_ZLIB): Unset zlibdir and zlibinc only for
--with-system-zlib.
2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
* zlib.m4 (AM_ZLIB): Replace --with-zlib with --with-system-zlib.

View File

@ -9,8 +9,10 @@ AC_DEFUN([AM_ZLIB],
zlibinc="-I\$(srcdir)/../zlib"
AC_ARG_WITH(system-zlib,
[AS_HELP_STRING([--with-system-zlib], [use installed libz])],
zlibdir=
zlibinc=
if test x$with_system_zlib = xyes ; then
zlibdir=
zlibinc=
fi
)
AC_SUBST(zlibdir)
AC_SUBST(zlibinc)