@@ 40,6 40,8 @@ AC_ARG_ENABLE(gif, [ --disable-gif
AC_ARG_ENABLE(threaded-dns,[ --disable-threaded-dns Disable the advantage of a reentrant resolver library],
enable_threaded_dns=$enableval, enable_threaded_dns=yes)
AC_ARG_ENABLE(rtfl, [ --enable-rtfl Build with rtfl messages (for debugging rendering)])
+AC_ARG_ENABLE(xembed,[ --disable-xembed Don't compile with X11 XEmbed support],
+ , enable_xembed=yes)
AC_PROG_CC
AC_PROG_CXX
AC_PROG_RANLIB
@@ 459,6 461,9 @@ fi
if test "x$enable_rtfl" = "xyes" ; then
CXXFLAGS="$CXXFLAGS -DDBG_RTFL"
fi
+if test "x$enable_xembed" = "xno" ; then
+ CXXFLAGS="$CFLAGS -DDISABLE_XEMBED"
+fi
dnl -----------------------
dnl Checks for header files
@@ 18,7 18,7 @@
#include "xembed.hh"
-#if !(defined(WIN32) || defined(__APPLE__))
+#if !( defined(DISABLE_XEMBED) || defined(WIN32) || defined(__APPLE__) )
#include <FL/x.H>
typedef enum {