configure.ac: Call zlib zlib and not libz in text but keep option names

This commit is contained in:
Peter Stuge 2013-09-15 21:13:27 +02:00
parent d41f5e40aa
commit 42aefdba79

View File

@ -90,7 +90,7 @@ AC_ARG_WITH(libgcrypt,
AC_HELP_STRING([--with-libgcrypt],[Use libgcrypt for crypto]), AC_HELP_STRING([--with-libgcrypt],[Use libgcrypt for crypto]),
use_libgcrypt=$withval,use_libgcrypt=auto) use_libgcrypt=$withval,use_libgcrypt=auto)
AC_ARG_WITH(libz, AC_ARG_WITH(libz,
AC_HELP_STRING([--with-libz],[Use Libz for compression]), AC_HELP_STRING([--with-libz],[Use zlib for compression]),
use_libz=$withval,use_libz=auto) use_libz=$withval,use_libz=auto)
found_crypto=none found_crypto=none
@ -136,7 +136,7 @@ fi
if test "$use_libz" != "no"; then if test "$use_libz" != "no"; then
AC_LIB_HAVE_LINKFLAGS([z], [], [#include <zlib.h>]) AC_LIB_HAVE_LINKFLAGS([z], [], [#include <zlib.h>])
if test "$ac_cv_libz" != yes; then if test "$ac_cv_libz" != yes; then
AC_MSG_NOTICE([Cannot find libz, disabling compression]) AC_MSG_NOTICE([Cannot find zlib, disabling compression])
AC_MSG_NOTICE([Try --with-libz-prefix=PATH if you know you have it]) AC_MSG_NOTICE([Try --with-libz-prefix=PATH if you know you have it])
else else
AC_DEFINE(LIBSSH2_HAVE_ZLIB, 1, [Compile in zlib support]) AC_DEFINE(LIBSSH2_HAVE_ZLIB, 1, [Compile in zlib support])
@ -335,5 +335,5 @@ AC_MSG_NOTICE([summary of build options:
Debug build: $enable_debug Debug build: $enable_debug
Build examples: $build_examples Build examples: $build_examples
Path to sshd: $ac_cv_path_SSHD (only for self-tests) Path to sshd: $ac_cv_path_SSHD (only for self-tests)
libz compression: $ac_cv_libz zlib compression: $ac_cv_libz
]) ])