Add libgs dependency, only compile guac_rdpdr if libgs found.
This commit is contained in:
parent
2df35e6f2e
commit
ad050208b9
13
configure.ac
13
configure.ac
@ -103,6 +103,18 @@ have_pango=yes
|
|||||||
PKG_CHECK_MODULES([PANGO], [pango],, [have_pango=no]);
|
PKG_CHECK_MODULES([PANGO], [pango],, [have_pango=no]);
|
||||||
PKG_CHECK_MODULES([PANGOCAIRO], [pangocairo],, [have_pango=no]);
|
PKG_CHECK_MODULES([PANGOCAIRO], [pangocairo],, [have_pango=no]);
|
||||||
|
|
||||||
|
#
|
||||||
|
# GhostScript
|
||||||
|
#
|
||||||
|
|
||||||
|
have_libgs=yes
|
||||||
|
GS_LIBS=
|
||||||
|
|
||||||
|
AC_CHECK_LIB([gs], [gsapi_new_instance], [GS_LIBS="$GS_LIBS -lgs"], [have_libgs=no])
|
||||||
|
AM_CONDITIONAL([ENABLE_GS], [test "x${have_libgs}" = "xyes"])
|
||||||
|
|
||||||
|
AC_SUBST(GS_LIBS)
|
||||||
|
|
||||||
#
|
#
|
||||||
# libVNCServer
|
# libVNCServer
|
||||||
#
|
#
|
||||||
@ -165,6 +177,7 @@ $PACKAGE_NAME version $PACKAGE_VERSION
|
|||||||
|
|
||||||
freerdp ............. ${have_freerdp}
|
freerdp ............. ${have_freerdp}
|
||||||
pango ............... ${have_pango}
|
pango ............... ${have_pango}
|
||||||
|
libgs ............... ${have_libgs}
|
||||||
libssh .............. ${have_libssh}
|
libssh .............. ${have_libssh}
|
||||||
libVNCServer ........ ${have_libvncserver}
|
libVNCServer ........ ${have_libvncserver}
|
||||||
libvorbisenc ........ ${have_vorbisenc}
|
libvorbisenc ........ ${have_vorbisenc}
|
||||||
|
@ -40,7 +40,7 @@ ACLOCAL_AMFLAGS = -I m4
|
|||||||
AM_CFLAGS = -Werror -Wall -Iinclude @LIBGUAC_INCLUDE@
|
AM_CFLAGS = -Werror -Wall -Iinclude @LIBGUAC_INCLUDE@
|
||||||
|
|
||||||
lib_LTLIBRARIES = libguac-client-rdp.la
|
lib_LTLIBRARIES = libguac-client-rdp.la
|
||||||
freerdp_LTLIBRARIES = guac_rdpsnd.la guac_rdpdr.la
|
freerdp_LTLIBRARIES = guac_rdpsnd.la
|
||||||
|
|
||||||
libguac_client_rdp_la_SOURCES = \
|
libguac_client_rdp_la_SOURCES = \
|
||||||
audio.c \
|
audio.c \
|
||||||
@ -65,15 +65,7 @@ guac_rdpsnd_la_SOURCES = \
|
|||||||
guac_rdpsnd/rdpsnd_service.c \
|
guac_rdpsnd/rdpsnd_service.c \
|
||||||
audio.c
|
audio.c
|
||||||
|
|
||||||
guac_rdpdr_la_SOURCES = \
|
|
||||||
guac_rdpdr/rdpdr_messages.c \
|
|
||||||
guac_rdpdr/rdpdr_printer.c \
|
|
||||||
guac_rdpdr/rdpdr_service.c
|
|
||||||
|
|
||||||
noinst_HEADERS = \
|
noinst_HEADERS = \
|
||||||
guac_rdpdr/rdpdr_messages.h \
|
|
||||||
guac_rdpdr/rdpdr_printer.h \
|
|
||||||
guac_rdpdr/rdpdr_service.h \
|
|
||||||
guac_rdpsnd/rdpsnd_messages.h \
|
guac_rdpsnd/rdpsnd_messages.h \
|
||||||
guac_rdpsnd/rdpsnd_service.h \
|
guac_rdpsnd/rdpsnd_service.h \
|
||||||
audio.h \
|
audio.h \
|
||||||
@ -95,13 +87,32 @@ if ENABLE_OGG
|
|||||||
noinst_HEADERS += ogg_encoder.h
|
noinst_HEADERS += ogg_encoder.h
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Compile guac_rdpdr if PDF support available
|
||||||
|
if ENABLE_GS
|
||||||
|
|
||||||
|
freerdp_LTLIBRARIES += guac_rdpdr.la
|
||||||
|
|
||||||
|
guac_rdpdr_la_SOURCES = \
|
||||||
|
guac_rdpdr/rdpdr_messages.c \
|
||||||
|
guac_rdpdr/rdpdr_printer.c \
|
||||||
|
guac_rdpdr/rdpdr_service.c
|
||||||
|
|
||||||
|
|
||||||
|
noinst_HEADERS += \
|
||||||
|
guac_rdpdr/rdpdr_messages.h \
|
||||||
|
guac_rdpdr/rdpdr_printer.h \
|
||||||
|
guac_rdpdr/rdpdr_service.h
|
||||||
|
|
||||||
|
guac_rdpdr_la_LDFLAGS = -module -avoid-version -shared @RDP_LIBS@ @PTHREAD_LIBS@
|
||||||
|
guac_rdpdr_la_LIBADD = @LIBGUAC_LTLIB@
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
libguac_client_rdp_la_LDFLAGS = -version-info 0:0:0 @RDP_LIBS@ @VORBIS_LIBS@ @PTHREAD_LIBS@
|
libguac_client_rdp_la_LDFLAGS = -version-info 0:0:0 @RDP_LIBS@ @VORBIS_LIBS@ @PTHREAD_LIBS@
|
||||||
guac_rdpsnd_la_LDFLAGS = -module -avoid-version -shared @RDP_LIBS@ @VORBIS_LIBS@ @PTHREAD_LIBS@
|
guac_rdpsnd_la_LDFLAGS = -module -avoid-version -shared @RDP_LIBS@ @VORBIS_LIBS@ @PTHREAD_LIBS@
|
||||||
guac_rdpdr_la_LDFLAGS = -module -avoid-version -shared @RDP_LIBS@ @PTHREAD_LIBS@
|
|
||||||
|
|
||||||
libguac_client_rdp_la_LIBADD = @LIBGUAC_LTLIB@
|
libguac_client_rdp_la_LIBADD = @LIBGUAC_LTLIB@
|
||||||
guac_rdpsnd_la_LIBADD = @LIBGUAC_LTLIB@
|
guac_rdpsnd_la_LIBADD = @LIBGUAC_LTLIB@
|
||||||
guac_rdpdr_la_LIBADD = @LIBGUAC_LTLIB@
|
|
||||||
|
|
||||||
freerdpdir = ${libdir}/freerdp
|
freerdpdir = ${libdir}/freerdp
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user