diff --git a/configure.ac b/configure.ac index 0909cc5b4..c01873200 100644 --- a/configure.ac +++ b/configure.ac @@ -74,6 +74,7 @@ dnl forcing an entire recompile.x AC_CONFIG_HEADERS(include/version-config.h) AM_PROG_AS +AC_PROG_CXX AC_PROG_LN_S LT_PREREQ([2.2]) LT_INIT([disable-static win32-dll]) @@ -1735,6 +1736,14 @@ if test "x$XVFB" = xyes; then AC_SUBST([XVFB_SYS_LIBS]) fi +dnl Xvnc DDX +AC_SUBST([XVNC_LIBS], ["$FB_LIB $FIXES_LIB $XEXT_LIB $CONFIG_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $MAIN_LIB"]) +AC_SUBST([XVNC_SYS_LIBS], ["$GLX_SYS_LIBS"]) + +PKG_CHECK_MODULES(GBM, "$LIBGBM", [GBM=yes], [GBM=no]) +if test "x$GBM" = xyes; then + AC_DEFINE(HAVE_GBM, 1, [Have GBM support]) +fi dnl Xnest DDX @@ -2058,7 +2067,6 @@ if test "x$GLAMOR" = xyes; then [AC_DEFINE(GLAMOR_HAS_EGL_QUERY_DRIVER, 1, [Have GLAMOR_HAS_EGL_QUERY_DRIVER])], []) - PKG_CHECK_MODULES(GBM, "$LIBGBM", [GBM=yes], [GBM=no]) if test "x$GBM" = xyes; then AC_DEFINE(GLAMOR_HAS_GBM, 1, [Build glamor with GBM-based EGL support]) @@ -2523,6 +2531,7 @@ hw/dmx/Makefile hw/dmx/man/Makefile hw/vfb/Makefile hw/vfb/man/Makefile +hw/vnc/Makefile hw/xnest/Makefile hw/xnest/man/Makefile hw/xwin/Makefile diff --git a/dri3/Makefile.am b/dri3/Makefile.am index e47a734e0..99c3718a5 100644 --- a/dri3/Makefile.am +++ b/dri3/Makefile.am @@ -1,7 +1,7 @@ noinst_LTLIBRARIES = libdri3.la AM_CFLAGS = \ - -DHAVE_XORG_CONFIG_H \ - @DIX_CFLAGS@ @XORG_CFLAGS@ + @DIX_CFLAGS@ \ + @LIBDRM_CFLAGS@ libdri3_la_SOURCES = \ dri3.h \ diff --git a/dri3/dri3.c b/dri3/dri3.c index ba32facd7..191252969 100644 --- a/dri3/dri3.c +++ b/dri3/dri3.c @@ -20,10 +20,6 @@ * OF THIS SOFTWARE. */ -#ifdef HAVE_XORG_CONFIG_H -#include -#endif - #include "dri3_priv.h" #include diff --git a/dri3/dri3_priv.h b/dri3/dri3_priv.h index b087a9529..f319d1770 100644 --- a/dri3/dri3_priv.h +++ b/dri3/dri3_priv.h @@ -23,6 +23,7 @@ #ifndef _DRI3PRIV_H_ #define _DRI3PRIV_H_ +#include "dix-config.h" #include #include "scrnintstr.h" #include "misc.h" diff --git a/dri3/dri3_request.c b/dri3/dri3_request.c index 958877efa..687168930 100644 --- a/dri3/dri3_request.c +++ b/dri3/dri3_request.c @@ -20,10 +20,6 @@ * OF THIS SOFTWARE. */ -#ifdef HAVE_XORG_CONFIG_H -#include -#endif - #include "dri3_priv.h" #include #include diff --git a/dri3/dri3_screen.c b/dri3/dri3_screen.c index b98259753..3c7e5bf60 100644 --- a/dri3/dri3_screen.c +++ b/dri3/dri3_screen.c @@ -20,10 +20,6 @@ * OF THIS SOFTWARE. */ -#ifdef HAVE_XORG_CONFIG_H -#include -#endif - #include "dri3_priv.h" #include #include diff --git a/hw/Makefile.am b/hw/Makefile.am index 19895dc77..3ecfa8b7a 100644 --- a/hw/Makefile.am +++ b/hw/Makefile.am @@ -44,3 +44,5 @@ DIST_SUBDIRS = dmx xfree86 vfb xnest xwin xquartz kdrive xwayland relink: $(AM_V_at)for i in $(SUBDIRS) ; do $(MAKE) -C $$i relink || exit 1 ; done + +SUBDIRS += vnc diff --git a/include/dix-config.h.in b/include/dix-config.h.in index f8fc67067..d53c4e72f 100644 --- a/include/dix-config.h.in +++ b/include/dix-config.h.in @@ -83,6 +83,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H +/* Have GBM support */ +#undef HAVE_GBM + /* Define to 1 if you have the `getdtablesize' function. */ #undef HAVE_GETDTABLESIZE