Commit e0cbabec authored by dscho's avatar dscho

Honour the check for libz, libjpeg again

parent 34fc97a5
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> 2004-01-21 Johannes E. Schindelin <Johannes.Schindelin@gmx.de>
* do not send unneccessary updates when drawing a cursor * do not send unneccessary updates when drawing a cursor
* ignore SIGPIPE; it is handled by EPIPE * ignore SIGPIPE; it is handled by EPIPE
......
...@@ -18,11 +18,18 @@ EXTRA_DIST=tableinit24.c tableinittctemplate.c tabletranstemplate.c \ ...@@ -18,11 +18,18 @@ EXTRA_DIST=tableinit24.c tableinittctemplate.c tabletranstemplate.c \
tableinitcmtemplate.c tabletrans24template.c \ tableinitcmtemplate.c tabletrans24template.c \
zrleencodetemplate.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 \ LIB_SRCS = main.c rfbserver.c rfbregion.c auth.c sockets.c \
stats.c corre.c hextile.c rre.c translate.c cutpaste.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 \ draw.c selbox.c d3des.c vncauth.c cargs.c \
zrle.c zrleoutstream.c zrlepalettehelper.c $(ZLIBSRCS) $(JPEGSRCS)
libvncserver_a_SOURCES=$(LIB_SRCS) libvncserver_a_SOURCES=$(LIB_SRCS)
......
...@@ -69,7 +69,7 @@ fi ...@@ -69,7 +69,7 @@ fi
if test ! -z "$HAVE_ZLIB_H"; then if test ! -z "$HAVE_ZLIB_H"; then
AC_CHECK_LIB(z, deflate, , HAVE_ZLIB_H="") AC_CHECK_LIB(z, deflate, , HAVE_ZLIB_H="")
if test ! -z "$HAVE_JPEGLIB_H" -a ! -z "$HAVE_ZLIB_H"; then 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
fi fi
if test ! -z "$HAVE_PTHREAD_H"; then if test ! -z "$HAVE_PTHREAD_H"; then
...@@ -77,6 +77,8 @@ 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") AC_CHECK_LIB(pthread, pthread_mutex_lock, HAVE_LIBPTHREAD="true")
fi fi
AM_CONDITIONAL(HAVE_LIBPTHREAD, test ! -z "$HAVE_LIBPTHREAD") 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. # Checks for header files.
AC_HEADER_STDC AC_HEADER_STDC
......
...@@ -27,9 +27,6 @@ ...@@ -27,9 +27,6 @@
/*#include <stdio.h>*/ /*#include <stdio.h>*/
#include <rfb/rfb.h> #include <rfb/rfb.h>
#ifdef LIBVNCSERVER_HAVE_LIBZ
#ifdef LIBVNCSERVER_HAVE_LIBJPEG
#ifdef WIN32 #ifdef WIN32
#define XMD_H #define XMD_H
#undef FAR #undef FAR
...@@ -1821,5 +1818,3 @@ JpegSetDstManager(j_compress_ptr cinfo) ...@@ -1821,5 +1818,3 @@ JpegSetDstManager(j_compress_ptr cinfo)
cinfo->dest = &jpegDstManager; cinfo->dest = &jpegDstManager;
} }
#endif /* LIBJPEG */
#endif /* LIBZ */
...@@ -32,8 +32,6 @@ ...@@ -32,8 +32,6 @@
#include <rfb/rfb.h> #include <rfb/rfb.h>
#ifdef LIBVNCSERVER_HAVE_LIBZ
/* /*
* zlibBeforeBuf contains pixel data in the client's format. * zlibBeforeBuf contains pixel data in the client's format.
* zlibAfterBuf contains the zlib (deflated) encoding version. * zlibAfterBuf contains the zlib (deflated) encoding version.
...@@ -302,4 +300,3 @@ rfbSendRectEncodingZlib(cl, x, y, w, h) ...@@ -302,4 +300,3 @@ rfbSendRectEncodingZlib(cl, x, y, w, h)
} }
#endif
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
* Routines to implement Zlib Run-length Encoding (ZRLE). * Routines to implement Zlib Run-length Encoding (ZRLE).
*/ */
#include <rfb/rfb.h> #include "rfb/rfb.h"
#include <zrleoutstream.h> #include "zrleoutstream.h"
#define GET_IMAGE_INTO_BUF(tx,ty,tw,th,buf) \ #define GET_IMAGE_INTO_BUF(tx,ty,tw,th,buf) \
......
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
* algorithm writes to the position one past the end of the pixel data. * algorithm writes to the position one past the end of the pixel data.
*/ */
#include <zrleoutstream.h> #include "zrleoutstream.h"
#include <zrlepalettehelper.h> #include "zrlepalettehelper.h"
#include <assert.h> #include <assert.h>
/* __RFB_CONCAT2 concatenates its two arguments. __RFB_CONCAT2E does the same /* __RFB_CONCAT2 concatenates its two arguments. __RFB_CONCAT2E does the same
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
* USA. * USA.
*/ */
#include <zrleoutstream.h> #include "zrleoutstream.h"
#include <stdlib.h> #include <stdlib.h>
#define ZRLE_IN_BUFFER_SIZE 16384 #define ZRLE_IN_BUFFER_SIZE 16384
......
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
#define __ZRLE_OUT_STREAM_H__ #define __ZRLE_OUT_STREAM_H__
#include <zlib.h> #include <zlib.h>
#include <zrletypes.h> #include "zrletypes.h"
#include <rfb/rfb.h> #include "rfb/rfb.h"
typedef struct { typedef struct {
zrle_U8 *start; zrle_U8 *start;
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
* USA. * USA.
*/ */
#include <zrlepalettehelper.h> #include "zrlepalettehelper.h"
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#ifndef __ZRLE_PALETTE_HELPER_H__ #ifndef __ZRLE_PALETTE_HELPER_H__
#define __ZRLE_PALETTE_HELPER_H__ #define __ZRLE_PALETTE_HELPER_H__
#include <zrletypes.h> #include "zrletypes.h"
#define ZRLE_PALETTE_MAX_SIZE 127 #define ZRLE_PALETTE_MAX_SIZE 127
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment