diff options
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 32 |
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 | ||
| 377 | OPTION_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. |
| 379 | dnl http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01844.html | 382 | dnl 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 |
| 2564 | fi | 2567 | fi |
| 2565 | 2568 | ||
| 2569 | |||
| 2570 | dnl Enable xwidgets if GTK3 and WebKitGTK+ are available. | ||
| 2571 | HAVE_XWIDGETS=no | ||
| 2572 | XWIDGETS_OBJ= | ||
| 2573 | if 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.]) | ||
| 2586 | fi | ||
| 2587 | AC_SUBST(XWIDGETS_OBJ) | ||
| 2588 | |||
| 2566 | CFLAGS=$OLD_CFLAGS | 2589 | CFLAGS=$OLD_CFLAGS |
| 2567 | LIBS=$OLD_LIBS | 2590 | LIBS=$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" ;; |
| 4950 | esac | 4973 | esac |
| 4974 | if test "$HAVE_XWIDGETS" = "yes"; then | ||
| 4975 | TOOLKIT_LIBW="$TOOLKIT_LIBW -lXcomposite" | ||
| 4976 | fi | ||
| 4951 | AC_SUBST(TOOLKIT_LIBW) | 4977 | AC_SUBST(TOOLKIT_LIBW) |
| 4952 | 4978 | ||
| 4953 | if test "${opsys}" != "mingw32"; then | 4979 | if test "${opsys}" != "mingw32"; then |
| @@ -5237,7 +5263,8 @@ optsep= | |||
| 5237 | emacs_config_features= | 5263 | emacs_config_features= |
| 5238 | for opt in XAW3D XPM JPEG TIFF GIF PNG RSVG CAIRO IMAGEMAGICK SOUND GPM DBUS \ | 5264 | for 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 | ||
| 5292 | if test -n "${EMACSDATA}"; then | 5320 | if test -n "${EMACSDATA}"; then |