|
Lines 794-819
else
Link Here
|
| 794 |
AC_MSG_RESULT(no) |
794 |
AC_MSG_RESULT(no) |
| 795 |
fi |
795 |
fi |
| 796 |
|
796 |
|
| 797 |
# We default to using our zlib unless --with-included-zlib=no is given. |
797 |
# Always compile with system zlib but if --with-included-zlib=yes is given |
|
|
798 |
# or not specified at all compile in the support too. |
| 798 |
if test x"$with_included_zlib" != x"no"; then |
799 |
if test x"$with_included_zlib" != x"no"; then |
| 799 |
with_included_zlib=yes |
800 |
with_included_zlib=yes |
| 800 |
elif test x"$ac_cv_header_zlib_h" != x"yes"; then |
801 |
elif test x"$ac_cv_header_zlib_h" != x"yes"; then |
| 801 |
with_included_zlib=yes |
802 |
with_included_zlib=yes |
| 802 |
fi |
803 |
fi |
| 803 |
if test x"$with_included_zlib" != x"yes"; then |
|
|
| 804 |
AC_CHECK_LIB(z, deflateParams, , [with_included_zlib=yes]) |
| 805 |
fi |
| 806 |
|
804 |
|
| 807 |
AC_MSG_CHECKING([whether to use included zlib]) |
805 |
AC_MSG_CHECKING([whether to use included zlib]) |
| 808 |
if test x"$with_included_zlib" = x"yes"; then |
806 |
if test x"$with_included_zlib" = x"yes"; then |
| 809 |
AC_MSG_RESULT($srcdir/zlib) |
807 |
AC_MSG_RESULT($srcdir/zlib) |
| 810 |
BUILD_ZLIB='$(zlib_OBJS)' |
808 |
BUILD_ZLIB='$(zlib_OBJS)' |
| 811 |
CFLAGS="-I$srcdir/zlib $CFLAGS" |
809 |
CFLAGS="-I$srcdir/zlib $CFLAGS" |
| 812 |
else |
|
|
| 813 |
AC_DEFINE(EXTERNAL_ZLIB, 1, [Define to 1 if using external zlib]) |
| 814 |
AC_MSG_RESULT(no) |
| 815 |
fi |
810 |
fi |
| 816 |
|
811 |
|
|
|
812 |
AC_CHECK_LIB(z, deflateParams, , [AC_MSG_ERROR([zlib with deflateParams not found])]) |
| 813 |
|
| 817 |
AC_CACHE_CHECK([for unsigned char],rsync_cv_SIGNED_CHAR_OK,[ |
814 |
AC_CACHE_CHECK([for unsigned char],rsync_cv_SIGNED_CHAR_OK,[ |
| 818 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[signed char *s = ""]])],[rsync_cv_SIGNED_CHAR_OK=yes],[rsync_cv_SIGNED_CHAR_OK=no])]) |
815 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[signed char *s = ""]])],[rsync_cv_SIGNED_CHAR_OK=yes],[rsync_cv_SIGNED_CHAR_OK=no])]) |
| 819 |
if test x"$rsync_cv_SIGNED_CHAR_OK" = x"yes"; then |
816 |
if test x"$rsync_cv_SIGNED_CHAR_OK" = x"yes"; then |