aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac32
1 files changed, 30 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index d3b518366ef..50bc04b4c87 100644
--- a/configure.ac
+++ b/configure.ac
@@ -374,6 +374,9 @@ otherwise for the first of 'inotify', 'kqueue' or 'gfile' that is usable.])
374 ], 374 ],
375 [with_file_notification=$with_features]) 375 [with_file_notification=$with_features])
376 376
377OPTION_DEFAULT_OFF([xwidgets],
378 [enable use of some gtk widgets in Emacs buffers (requires gtk3)])
379
377## For the times when you want to build Emacs but don't have 380## For the times when you want to build Emacs but don't have
378## a suitable makeinfo, and can live without the manuals. 381## a suitable makeinfo, and can live without the manuals.
379dnl http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01844.html 382dnl http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01844.html
@@ -2563,6 +2566,26 @@ if test "${HAVE_GTK}" = "yes"; then
2563 term_header=gtkutil.h 2566 term_header=gtkutil.h
2564fi 2567fi
2565 2568
2569
2570dnl Enable xwidgets if GTK3 and WebKitGTK+ are available.
2571HAVE_XWIDGETS=no
2572XWIDGETS_OBJ=
2573if test "$with_xwidgets" != "no"; then
2574 test "$USE_GTK_TOOLKIT" = "GTK3" && test "$window_system" != "none" ||
2575 AC_MSG_ERROR([xwidgets requested but gtk3 not used.])
2576
2577 WEBKIT_REQUIRED=1.4.0
2578 WEBKIT_MODULES="webkitgtk-3.0 >= $WEBKIT_REQUIRED"
2579 EMACS_CHECK_MODULES([WEBKIT], [$WEBKIT_MODULES])
2580 HAVE_XWIDGETS=$HAVE_WEBKIT
2581 test $HAVE_XWIDGETS = yes ||
2582 AC_MSG_ERROR([xwidgets requested but WebKitGTK+ not found.])
2583
2584 XWIDGETS_OBJ=xwidget.o
2585 AC_DEFINE([HAVE_XWIDGETS], 1, [Define to 1 if you have xwidgets support.])
2586fi
2587AC_SUBST(XWIDGETS_OBJ)
2588
2566CFLAGS=$OLD_CFLAGS 2589CFLAGS=$OLD_CFLAGS
2567LIBS=$OLD_LIBS 2590LIBS=$OLD_LIBS
2568 2591
@@ -3123,7 +3146,7 @@ if test "${HAVE_X11}" = "yes"; then
3123 if test "${with_cairo}" != "no"; then 3146 if test "${with_cairo}" != "no"; then
3124 CAIRO_REQUIRED=1.12.0 3147 CAIRO_REQUIRED=1.12.0
3125 CAIRO_MODULE="cairo >= $CAIRO_REQUIRED" 3148 CAIRO_MODULE="cairo >= $CAIRO_REQUIRED"
3126 PKG_CHECK_MODULES(CAIRO, $CAIRO_MODULE, USE_CAIRO=yes, :) 3149 EMACS_CHECK_MODULES(CAIRO, $CAIRO_MODULE, USE_CAIRO=yes, :)
3127 if test $USE_CAIRO = yes; then 3150 if test $USE_CAIRO = yes; then
3128 AC_DEFINE(USE_CAIRO, 1, [Define to 1 if using cairo.]) 3151 AC_DEFINE(USE_CAIRO, 1, [Define to 1 if using cairo.])
3129 else 3152 else
@@ -4948,6 +4971,9 @@ case "$USE_X_TOOLKIT" in
4948 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;; 4971 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
4949 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;; 4972 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
4950esac 4973esac
4974if test "$HAVE_XWIDGETS" = "yes"; then
4975 TOOLKIT_LIBW="$TOOLKIT_LIBW -lXcomposite"
4976fi
4951AC_SUBST(TOOLKIT_LIBW) 4977AC_SUBST(TOOLKIT_LIBW)
4952 4978
4953if test "${opsys}" != "mingw32"; then 4979if test "${opsys}" != "mingw32"; then
@@ -5237,7 +5263,8 @@ optsep=
5237emacs_config_features= 5263emacs_config_features=
5238for opt in XAW3D XPM JPEG TIFF GIF PNG RSVG CAIRO IMAGEMAGICK SOUND GPM DBUS \ 5264for opt in XAW3D XPM JPEG TIFF GIF PNG RSVG CAIRO IMAGEMAGICK SOUND GPM DBUS \
5239 GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT \ 5265 GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT \
5240 LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS X_TOOLKIT X11 NS MODULES; do 5266 LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS X_TOOLKIT X11 NS MODULES \
5267 XWIDGETS; do
5241 5268
5242 case $opt in 5269 case $opt in
5243 NOTIFY|ACL) eval val=\${${opt}_SUMMARY} ;; 5270 NOTIFY|ACL) eval val=\${${opt}_SUMMARY} ;;
@@ -5287,6 +5314,7 @@ AS_ECHO([" Does Emacs use -lXaw3d? ${HAVE_XAW3D
5287 Does Emacs directly use zlib? ${HAVE_ZLIB} 5314 Does Emacs directly use zlib? ${HAVE_ZLIB}
5288 Does Emacs have dynamic modules support? ${HAVE_MODULES} 5315 Does Emacs have dynamic modules support? ${HAVE_MODULES}
5289 Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS} 5316 Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}
5317 Does Emacs support Xwidgets (requires gtk3)? ${HAVE_XWIDGETS}
5290"]) 5318"])
5291 5319
5292if test -n "${EMACSDATA}"; then 5320if test -n "${EMACSDATA}"; then