summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authordscho <dscho>2004-01-29 13:33:03 +0000
committerdscho <dscho>2004-01-29 13:33:03 +0000
commite0cbabec292fbc8058d98c93fcc8d3cf5b8f5d69 (patch)
tree41bc35faf0ff0868f7993942adde98cbccd3846d /configure.ac
parent34fc97a52add15a0b3060fac23bad6bc5324403a (diff)
downloadlibtdevnc-e0cbabec292fbc8058d98c93fcc8d3cf5b8f5d69.tar.gz
libtdevnc-e0cbabec292fbc8058d98c93fcc8d3cf5b8f5d69.zip
Honour the check for libz, libjpeg again
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index f213615..ddaec06 100644
--- a/configure.ac
+++ b/configure.ac
@@ -69,7 +69,7 @@ fi
if test ! -z "$HAVE_ZLIB_H"; then
AC_CHECK_LIB(z, deflate, , HAVE_ZLIB_H="")
if test ! -z "$HAVE_JPEGLIB_H" -a ! -z "$HAVE_ZLIB_H"; then
- AC_CHECK_LIB(jpeg, jpeg_CreateCompress)
+ AC_CHECK_LIB(jpeg, jpeg_CreateCompress, , HAVE_JPEGLIB_H="")
fi
fi
if test ! -z "$HAVE_PTHREAD_H"; then
@@ -77,6 +77,8 @@ if test ! -z "$HAVE_PTHREAD_H"; then
AC_CHECK_LIB(pthread, pthread_mutex_lock, HAVE_LIBPTHREAD="true")
fi
AM_CONDITIONAL(HAVE_LIBPTHREAD, test ! -z "$HAVE_LIBPTHREAD")
+AM_CONDITIONAL(HAVE_LIBZ, test ! -z "$HAVE_ZLIB_H")
+AM_CONDITIONAL(HAVE_LIBJPEG, test ! -u "$HAVE_JPEGLIB_H")
# Checks for header files.
AC_HEADER_STDC