zlib.m4 516 B

12345678910111213141516171819
  1. dnl A function to check if the system's zlib library should be used. The
  2. dnl builtin zlib dnl is used by default unless the user configured with
  3. dnl --with-system-zlib.
  4. AC_DEFUN([AM_ZLIB],
  5. [
  6. # Use the system's zlib library.
  7. zlibdir="-L\$(top_builddir)/../zlib"
  8. zlibinc="-I\$(top_srcdir)/../zlib"
  9. AC_ARG_WITH(system-zlib,
  10. [AS_HELP_STRING([--with-system-zlib], [use installed libz])],
  11. if test x$with_system_zlib = xyes ; then
  12. zlibdir=
  13. zlibinc=
  14. fi
  15. )
  16. AC_SUBST(zlibdir)
  17. AC_SUBST(zlibinc)
  18. ])