[trace] Only build if we have zlib.

Use the configure check for libz and do not attempt to build the trace
unless we have zlib.
This commit is contained in:
Chris Wilson 2008-11-05 19:29:04 +00:00
parent 34564aa84a
commit 476d5daa9b

View file

@ -493,7 +493,9 @@ case $host in
;;
esac
AM_CONDITIONAL(BUILD_TRACE, test "x$have_ld_preload" = "xyes")
AM_CONDITIONAL(BUILD_TRACE,
test "x$have_ld_preload" = "xyes" \
-a "x$have_libz" = "xyes")
AC_CHECK_LIB(bfd, bfd_openr,
[AC_CHECK_HEADER(bfd.h, [have_bfd=yes],