Honour the check for libz, libjpeg again

pull/1/head
dscho 20 years ago
parent 34fc97a52a
commit e0cbabec29

@ -1,3 +1,6 @@
2004-01-29 Johannes E. Schindelin <Johannes.Schindelin@gmx.de>
* Honour the check for libz and libjpeg again.
2004-01-21 Johannes E. Schindelin <Johannes.Schindelin@gmx.de>
* do not send unneccessary updates when drawing a cursor
* ignore SIGPIPE; it is handled by EPIPE

@ -18,11 +18,18 @@ EXTRA_DIST=tableinit24.c tableinittctemplate.c tabletranstemplate.c \
tableinitcmtemplate.c tabletrans24template.c \
zrleencodetemplate.c
if HAVE_LIBZ
ZLIBSRCS = zlib.c zrle.c zrleoutstream.c zrlepalettehelper.c
if HAVE_LIBJPEG
JPEGSRCS = tight.c
endif
endif
LIB_SRCS = main.c rfbserver.c rfbregion.c auth.c sockets.c \
stats.c corre.c hextile.c rre.c translate.c cutpaste.c \
zlib.c tight.c httpd.c cursor.c font.c \
httpd.c cursor.c font.c \
draw.c selbox.c d3des.c vncauth.c cargs.c \
zrle.c zrleoutstream.c zrlepalettehelper.c
$(ZLIBSRCS) $(JPEGSRCS)
libvncserver_a_SOURCES=$(LIB_SRCS)

@ -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

@ -27,9 +27,6 @@
/*#include <stdio.h>*/
#include <rfb/rfb.h>
#ifdef LIBVNCSERVER_HAVE_LIBZ
#ifdef LIBVNCSERVER_HAVE_LIBJPEG
#ifdef WIN32
#define XMD_H
#undef FAR
@ -1821,5 +1818,3 @@ JpegSetDstManager(j_compress_ptr cinfo)
cinfo->dest = &jpegDstManager;
}
#endif /* LIBJPEG */
#endif /* LIBZ */

@ -32,8 +32,6 @@
#include <rfb/rfb.h>
#ifdef LIBVNCSERVER_HAVE_LIBZ
/*
* zlibBeforeBuf contains pixel data in the client's format.
* zlibAfterBuf contains the zlib (deflated) encoding version.
@ -302,4 +300,3 @@ rfbSendRectEncodingZlib(cl, x, y, w, h)
}
#endif

@ -24,8 +24,8 @@
* Routines to implement Zlib Run-length Encoding (ZRLE).
*/
#include <rfb/rfb.h>
#include <zrleoutstream.h>
#include "rfb/rfb.h"
#include "zrleoutstream.h"
#define GET_IMAGE_INTO_BUF(tx,ty,tw,th,buf) \

@ -31,8 +31,8 @@
* algorithm writes to the position one past the end of the pixel data.
*/
#include <zrleoutstream.h>
#include <zrlepalettehelper.h>
#include "zrleoutstream.h"
#include "zrlepalettehelper.h"
#include <assert.h>
/* __RFB_CONCAT2 concatenates its two arguments. __RFB_CONCAT2E does the same

@ -18,7 +18,7 @@
* USA.
*/
#include <zrleoutstream.h>
#include "zrleoutstream.h"
#include <stdlib.h>
#define ZRLE_IN_BUFFER_SIZE 16384

@ -22,8 +22,8 @@
#define __ZRLE_OUT_STREAM_H__
#include <zlib.h>
#include <zrletypes.h>
#include <rfb/rfb.h>
#include "zrletypes.h"
#include "rfb/rfb.h"
typedef struct {
zrle_U8 *start;

@ -18,7 +18,7 @@
* USA.
*/
#include <zrlepalettehelper.h>
#include "zrlepalettehelper.h"
#include <assert.h>
#include <string.h>

@ -26,7 +26,7 @@
#ifndef __ZRLE_PALETTE_HELPER_H__
#define __ZRLE_PALETTE_HELPER_H__
#include <zrletypes.h>
#include "zrletypes.h"
#define ZRLE_PALETTE_MAX_SIZE 127

Loading…
Cancel
Save