add checks during configure for zlib and libjpeg, abort configure with error if not found
This commit is contained in:
parent
cecaa556c3
commit
b544f60b38
|
@ -398,11 +398,13 @@ AC_ARG_ENABLE(timerfd-wrapper,
|
|||
AM_CONDITIONAL([ENABLE_TIMERFD_WRAPPER],[test "x$enable_timer_fd_wrapper" != "xno"])
|
||||
|
||||
|
||||
AC_CHECK_LIB(z, inflateReset, have_libz=yes, have_libz=no)
|
||||
AC_CHECK_LIB(z, inflateReset, have_libz=yes, AC_MSG_ERROR([no usable zlib; please install zlib devel package or equivalent]))
|
||||
if test "x$have_libz" = "xyes" ; then
|
||||
APR_ADDTO(SWITCH_AM_LDFLAGS, -lz)
|
||||
fi
|
||||
|
||||
AC_CHECK_LIB(jpeg, jpeg_std_error,, AC_MSG_ERROR([no usable libjpeg; please install libjpeg devel package or equivalent]))
|
||||
|
||||
AC_CHECK_LIB(resolv, res_init, have_libresolv=yes, have_libresolv=no)
|
||||
if test "x$have_libresolv" = "xyes" ; then
|
||||
APR_ADDTO(SWITCH_AM_LDFLAGS, -lresolv)
|
||||
|
|
Loading…
Reference in New Issue