3 m4_define([webkit_major_version], [1])
4 m4_define([webkit_minor_version], [9])
5 m4_define([webkit_micro_version], [5])
7 # This is the version we'll be using as part of our User-Agent string
8 # e.g., AppleWebKit/$(webkit_user_agent_version) ...
10 # Sourced from Source/WebCore/Configurations/Version.xcconfig
11 m4_define([webkit_user_agent_major_version], [537])
12 m4_define([webkit_user_agent_minor_version], [1])
14 AC_INIT([WebKit],[webkit_major_version.webkit_minor_version.webkit_micro_version],[http://bugs.webkit.org/])
16 AC_CONFIG_MACRO_DIR([Source/autotools])
17 AC_CONFIG_AUX_DIR([Source/autotools])
18 AC_SUBST(ACLOCAL_AMFLAGS, "-I Source/autotools")
20 AC_CONFIG_HEADERS([autotoolsconfig.h])
23 WEBKIT_MAJOR_VERSION=webkit_major_version
24 WEBKIT_MINOR_VERSION=webkit_minor_version
25 WEBKIT_MICRO_VERSION=webkit_micro_version
26 WEBKIT_USER_AGENT_MAJOR_VERSION=webkit_user_agent_major_version
27 WEBKIT_USER_AGENT_MINOR_VERSION=webkit_user_agent_minor_version
28 AC_SUBST(WEBKIT_MAJOR_VERSION)
29 AC_SUBST(WEBKIT_MINOR_VERSION)
30 AC_SUBST(WEBKIT_MICRO_VERSION)
31 AC_SUBST(WEBKIT_USER_AGENT_MAJOR_VERSION)
32 AC_SUBST(WEBKIT_USER_AGENT_MINOR_VERSION)
34 AC_CONFIG_SRCDIR([Source/WebCore/config.h])
36 dnl # Libtool library version, not to confuse with API version
37 dnl # see http://www.gnu.org/software/libtool/manual/html_node/Libtool-versioning.html
38 LIBWEBKITGTK_VERSION=15:0:15
39 AC_SUBST([LIBWEBKITGTK_VERSION])
41 LIBJAVASCRIPTCOREGTK_VERSION=13:4:13
42 AC_SUBST([LIBJAVASCRIPTCOREGTK_VERSION])
44 LIBWEBKIT2GTK_VERSION=16:0:16
45 AC_SUBST([LIBWEBKIT2GTK_VERSION])
47 AM_INIT_AUTOMAKE([foreign subdir-objects dist-xz no-dist-gzip tar-ustar])
49 # Use AM_SILENT_RULES if present
50 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
52 # host checking - inspired by the GTK+ configure.in
53 # TODO: move these to webkit.m4?
54 AC_MSG_CHECKING([for native Win32])
63 AC_MSG_RESULT([$os_win32])
78 gnu* | linux* | k*bsd*-gnu)
86 # If CFLAGS and CXXFLAGS are unset, default to empty.
87 # This is to tell automake not to include '-g' if C{XX,}FLAGS is not set
88 # For more info - http://www.gnu.org/software/automake/manual/autoconf.html#C_002b_002b-Compiler
89 if test -z "$CXXFLAGS"; then
92 if test -z "$CFLAGS"; then
98 AC_PATH_PROG(PERL, perl)
99 if test -z "$PERL"; then
100 AC_MSG_ERROR([You need 'perl' to compile WebKit])
103 AC_PATH_PROG(PYTHON, python)
104 if test -z "$PYTHON"; then
105 AC_MSG_ERROR([You need 'python' to compile WebKit])
108 AC_PATH_PROG(RUBY, ruby)
109 if test -z "$RUBY"; then
110 AC_MSG_ERROR([You need 'ruby' to compile WebKit])
113 AC_PATH_PROG(BISON, bison)
114 if test -z "$BISON"; then
115 AC_MSG_ERROR([You need the 'bison' parser generator to compile WebKit])
119 if test -z "$MV"; then
120 AC_MSG_ERROR([You need 'mv' to compile WebKit])
129 # Check whether a C++ was found (AC_PROG_CXX sets $CXX to "g++" even when it
132 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],[],[AC_MSG_ERROR([No C++ compiler found])])
135 # C/C++ Language Features
148 # use dolt to speedup the build
151 AC_PATH_PROG(FLEX, flex)
152 if test -z "$FLEX"; then
153 AC_MSG_ERROR([You need the 'flex' lexer generator to compile WebKit])
155 FLEX_VERSION=`$FLEX --version | sed 's,.*\ \([0-9]*\.[0-9]*\.[0-9]*\)$,\1,'`
156 AX_COMPARE_VERSION([2.5.33],[gt],[$FLEX_VERSION],
157 AC_MSG_WARN([You need at least version 2.5.33 of the 'flex' lexer generator to compile WebKit correctly]))
160 AC_PATH_PROG(GPERF, gperf)
161 if test -z "$GPERF"; then
162 AC_MSG_ERROR([You need the 'gperf' hash function generator to compile WebKit])
165 # check for -fvisibility=hidden compiler support (GCC >= 4)
166 saved_CFLAGS="$CFLAGS"
167 CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
168 AC_MSG_CHECKING([if ${CXX} supports -fvisibility=hidden -fvisibility-inlines-hidden])
169 AC_COMPILE_IFELSE([AC_LANG_SOURCE([char foo;])],
170 [ AC_MSG_RESULT([yes])
171 SYMBOL_VISIBILITY="-fvisibility=hidden" SYMBOL_VISIBILITY_INLINES="-fvisibility-inlines-hidden" ],
173 CFLAGS="$saved_CFLAGS"
174 AC_SUBST(SYMBOL_VISIBILITY)
175 AC_SUBST(SYMBOL_VISIBILITY_INLINES)
177 # Disable C++0x compat warnings for GCC >= 4.6.0 until we build
180 TMPCXXFLAGS=$CXXFLAGS
181 CXXFLAGS="-Wall -Werror"
182 AC_MSG_CHECKING([if we have to disable C++0x compat warnings for GCC >= 4.6.0])
187 extern std::nullptr_t nullptr;
189 disable_cxx0x_compat=no,
190 disable_cxx0x_compat=yes)
191 AC_MSG_RESULT($disable_cxx0x_compat)
192 if test "$disable_cxx0x_compat" = yes; then
193 CXXFLAGS="$TMPCXXFLAGS -Wno-c++0x-compat"
195 CXXFLAGS="$TMPCXXFLAGS"
199 # pthread (not needed on Windows)
200 if test "$os_win32" = "no"; then
201 AC_CHECK_HEADERS([pthread.h],
202 AC_DEFINE([HAVE_PTHREAD_H],[1],[Define if pthread exists]),
203 AC_MSG_ERROR([pthread support is required to build WebKit]))
204 AC_CHECK_LIB(pthread, pthread_rwlock_init,
205 AC_DEFINE([HAVE_PTHREAD_RWLOCK],[1],[Define if pthread rwlock is present]),
206 AC_MSG_WARN([pthread rwlock support is not available]))
209 # check for libjpeg the way Gtk does it.
210 AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
211 jpeg_ok=yes, jpeg_ok=no
212 AC_MSG_ERROR([JPEG library (libjpeg) not found]))
213 if test "$jpeg_ok" = yes; then
214 AC_MSG_CHECKING([for jpeglib])
220 #include <jpeglib.h>],
223 AC_MSG_RESULT($jpeg_ok)
224 if test "$jpeg_ok" = yes; then
226 # should we check for progressive JPEG like GTK+ as well?
228 AC_MSG_ERROR([JPEG library (libjpeg) not found])
231 AC_SUBST([JPEG_LIBS])
233 # Check for libpng the way Gtk+ does it
234 for l in libpng libpng14 libpng12; do
235 AC_MSG_CHECKING(for $l)
236 if $PKG_CONFIG --exists $l ; then
238 PNG_LIBS=`$PKG_CONFIG --libs $l`
246 if test "$png_ok" != yes; then
247 AC_CHECK_LIB(png, png_read_info,
248 [AC_CHECK_HEADER(png.h,
251 AC_MSG_ERROR([PNG library (libpng) not found]), -lz -lm)
252 if test "$png_ok" = yes; then
253 AC_MSG_CHECKING([for png_structp in png.h])
254 AC_TRY_COMPILE([#include <png.h>],
255 [png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;],
258 AC_MSG_RESULT($png_ok)
259 if test "$png_ok" = yes; then
262 AC_MSG_ERROR([PNG library (libpng) not found])
265 AC_MSG_ERROR([PNG library (libpng) not found])
271 if test "$os_win32" = "yes"; then
273 SHLWAPI_LIBS=-lshlwapi
276 AC_SUBST([WINMM_LIBS])
277 AC_SUBST([SHLWAPI_LIBS])
278 AC_SUBST([OLE32_LIBS])
281 # determine the GTK+ version to use
282 AC_MSG_CHECKING([the GTK+ version to use])
284 [AS_HELP_STRING([--with-gtk=2.0|3.0], [the GTK+ version to use (default: 3.0)])],
287 *) AC_MSG_ERROR([invalid GTK+ version specified]) ;;
290 AC_MSG_RESULT([$with_gtk])
292 GTK2_REQUIRED_VERSION=2.10
293 GAIL2_REQUIRED_VERSION=1.8
294 GTK3_REQUIRED_VERSION=3.4.0
295 GAIL3_REQUIRED_VERSION=3.0
298 2.0) GTK_REQUIRED_VERSION=$GTK2_REQUIRED_VERSION
300 WEBKITGTK_API_MAJOR_VERSION=1
301 WEBKITGTK_API_MINOR_VERSION=0
302 WEBKITGTK_API_VERSION=1.0
303 WEBKITGTK_PC_NAME=webkit
305 GAIL_REQUIRED_VERSION=$GAIL2_REQUIRED_VERSION
307 3.0) GTK_REQUIRED_VERSION=$GTK3_REQUIRED_VERSION
309 WEBKITGTK_API_MAJOR_VERSION=3
310 WEBKITGTK_API_MINOR_VERSION=0
311 WEBKITGTK_API_VERSION=3.0
312 WEBKITGTK_PC_NAME=webkitgtk
313 GAIL_PC_NAME=gail-3.0
314 GAIL_REQUIRED_VERSION=$GAIL3_REQUIRED_VERSION
318 AC_SUBST([WEBKITGTK_API_MAJOR_VERSION])
319 AC_SUBST([WEBKITGTK_API_MINOR_VERSION])
320 AC_SUBST([WEBKITGTK_API_VERSION])
321 AC_SUBST([WEBKITGTK_PC_NAME])
322 AC_SUBST([GTK_API_VERSION])
323 AM_CONDITIONAL([GTK_API_VERSION_2],[test "$GTK_API_VERSION" = "2.0"])
325 # determine the GDK/GTK+ target
326 AC_MSG_CHECKING([the target windowing system])
328 AC_HELP_STRING([--with-target=@<:@x11/win32/quartz/directfb@:>@],
329 [Select webkit target [default=x11]]),
330 [],[with_target="x11"])
332 case "$with_target" in
333 x11|win32|quartz|directfb) ;;
334 *) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;;
337 AC_MSG_RESULT([$with_target])
339 AC_MSG_CHECKING([the GStreamer version to use])
340 AC_ARG_WITH([gstreamer],
341 [AS_HELP_STRING([--with-gstreamer=0.10|1.0], [the GStreamer version to use (default: 0.10)])],
342 [case "$with_gstreamer" in
344 *) AC_MSG_ERROR([invalid GStreamer version specified]) ;;
346 [with_gstreamer=0.10])
347 AC_MSG_RESULT([$with_gstreamer])
349 GSTREAMER_0_10_REQUIRED_VERSION=0.10
350 GSTREAMER_0_10_PLUGINS_BASE_REQUIRED_VERSION=0.10.30
351 GSTREAMER_1_0_REQUIRED_VERSION=0.11.90
352 GSTREAMER_1_0_PLUGINS_BASE_REQUIRED_VERSION=0.11.90
354 case "$with_gstreamer" in
355 0.10) GSTREAMER_REQUIRED_VERSION=$GSTREAMER_0_10_REQUIRED_VERSION
356 GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION=$GSTREAMER_0_10_PLUGINS_BASE_REQUIRED_VERSION
359 1.0) GSTREAMER_REQUIRED_VERSION=$GSTREAMER_1_0_REQUIRED_VERSION
360 GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION=$GSTREAMER_1_0_PLUGINS_BASE_REQUIRED_VERSION
365 AC_SUBST([GST_API_VERSION])
366 if test "$GST_API_VERSION" = "1.0"; then
367 AC_DEFINE([GST_USE_UNSTABLE_API], [1], [Using unstable GStreamer API])
368 AC_DEFINE([GST_API_VERSION_1],[1], [Using GStreamer 1.0])
371 # minimum base dependencies
372 CAIRO_REQUIRED_VERSION=1.10
373 FONTCONFIG_REQUIRED_VERSION=2.4
374 FREETYPE2_REQUIRED_VERSION=9.0
375 GLIB_REQUIRED_VERSION=2.32.0
376 LIBSOUP_REQUIRED_VERSION=2.39.2
377 LIBXML_REQUIRED_VERSION=2.6
378 PANGO_REQUIRED_VERSION=1.21.0
381 LIBXSLT_REQUIRED_VERSION=1.1.7
382 SQLITE_REQUIRED_VERSION=3.0
383 ENCHANT_REQUIRED_VERSION=0.22
384 CLUTTER_REQUIRED_VERSION=1.8.2
385 CLUTTER_GTK_REQUIRED_VERSION=1.0.2
386 ATSPI2_REQUIRED_VERSION=2.2.1
388 # Check for glib and required utilities
389 AM_PATH_GLIB_2_0($GLIB_REQUIRED_VERSION, :, :, gmodule gobject gthread gio)
390 if test -z "$GLIB_GENMARSHAL" || test -z "$GLIB_MKENUMS"; then
391 AC_MSG_ERROR([You need the GLib dev tools in your path])
395 # Check and identify which unicode backend to use
396 AC_MSG_CHECKING([which Unicode backend to use])
397 AC_ARG_WITH(unicode_backend,
398 AC_HELP_STRING([--with-unicode-backend=@<:@icu/glib@:>@],
399 [Select Unicode backend (WARNING: the glib-based backend is slow, and incomplete) [default=icu]]),
400 [],[with_unicode_backend="icu"])
402 case "$with_unicode_backend" in
404 *) AC_MSG_ERROR([Invalid Unicode backend: must be icu or glib.]) ;;
407 AC_MSG_RESULT([$with_unicode_backend])
409 if test "$with_unicode_backend" = "icu"; then
410 # TODO: use pkg-config (after CFLAGS in their .pc files are cleaned up)
413 UNICODE_CFLAGS="-I$srcdir/Source/JavaScriptCore/icu -I$srcdir/Source/WebCore/icu"
414 UNICODE_LIBS="-licucore"
418 UNICODE_LIBS="-licui18n -licuuc"
421 AC_PATH_PROG(icu_config, icu-config, no)
422 if test "$icu_config" = "no"; then
423 AC_MSG_ERROR([Cannot find icu-config. The ICU library is needed.])
426 # We don't use --cflags as this gives us a lot of things that we don't
427 # necessarily want, like debugging and optimization flags
428 # See man (1) icu-config for more info.
429 UNICODE_CFLAGS=`$icu_config --cppflags`
430 UNICODE_LIBS=`$icu_config --ldflags-libsonly`
435 if test "$with_unicode_backend" = "glib"; then
436 PKG_CHECK_MODULES([UNICODE], [glib-2.0 pango >= $PANGO_REQUIRED_VERSION])
439 AC_SUBST([UNICODE_CFLAGS])
440 AC_SUBST([UNICODE_LIBS])
442 PKG_CHECK_MODULES([ZLIB], [zlib])
443 AC_SUBST([ZLIB_CFLAGS])
444 AC_SUBST([ZLIB_LIBS])
446 GETTEXT_PACKAGE=$PACKAGE-$GTK_API_VERSION
447 AC_SUBST(GETTEXT_PACKAGE)
448 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
449 [The gettext catalog name])
451 PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED_VERSION)
452 AC_SUBST(LIBXML_CFLAGS)
453 AC_SUBST(LIBXML_LIBS)
455 PKG_CHECK_MODULES(PANGO,
456 [pango >= $PANGO_REQUIRED_VERSION
458 AC_SUBST(PANGO_CFLAGS)
461 AC_MSG_CHECKING([whether to enable spellcheck support])
462 AC_ARG_ENABLE([spellcheck],
463 [AS_HELP_STRING([--enable-spellcheck],[enable support for spellcheck])],
464 [],[enable_spellcheck="yes"])
465 AC_MSG_RESULT([$enable_spellcheck])
467 if test "$enable_spellcheck" = "yes"; then
468 PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED_VERSION, [], [enable_spellcheck="no"])
469 AC_SUBST(ENCHANT_CFLAGS)
470 AC_SUBST(ENCHANT_LIBS)
473 # farstream-0.1 depends on gstreamer 0.10 currently. Disable
474 # media_stream if gstreamer 0.11 build support is enabled.
475 if test "$GST_API_VERSION" = "1.0"; then
476 enable_media_stream=false
478 if test "$enable_media_stream" = "yes"; then
479 PKG_CHECK_MODULES([FARSTREAM], [farstream-0.1],
480 [have_farstream=yes], [enable_media_stream=false])
481 AC_SUBST([FARSTREAM_CFLAGS])
482 AC_SUBST([FARSTREAM_LIBS])
485 PKG_CHECK_MODULES(GAIL, $GAIL_PC_NAME >= $GAIL_REQUIRED_VERSION)
486 AC_SUBST(GAIL_CFLAGS)
489 # check for target-specific dependencies
490 if test "$with_target" = "directfb"; then
491 PKG_CHECK_MODULES(CAIRO, cairo-directfb >= $CAIRO_REQUIRED_VERSION)
492 PKG_CHECK_MODULES(GTK, gtk+-directfb-2.0 >= $GTK_REQUIRED_VERSION)
493 AC_DEFINE([WTF_PLATFORM_DIRECTFB],[1],[Define if target is DirectFB])
495 PKG_CHECK_MODULES(CAIRO, cairo >= $CAIRO_REQUIRED_VERSION)
496 PKG_CHECK_MODULES(GTK, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED_VERSION)
498 if test "$with_target" = "x11" && test "$os_win32" = "no"; then
500 PKG_CHECK_MODULES([XT],
502 [xt_has_pkg_config=yes],
503 [xt_has_pkg_config=no])
504 # some old versions of Xt do not provide xt.pc, so try to link against Xt
505 # and if it's installed fall back to just adding -lXt
506 if test "$xt_has_pkg_config" = "no"; then
507 # using AC_CHECK_LIB instead of AC_SEARCH_LIB is fine in this case as
508 # we don't care about the XtOpenDisplay symbol but only about the
510 AC_CHECK_LIB([Xt], [XtOpenDisplay],
511 [XT_CFLAGS=""; XT_LIBS="-lXt"],
512 [AC_MSG_ERROR([X Toolkit Intrinsics library (libXt) not found])])
514 AC_SUBST([XT_CFLAGS])
516 AC_DEFINE([WTF_PLATFORM_X11],[1],[Define if target is X11])
521 AC_SUBST(CAIRO_CFLAGS)
524 # check whether to build with debugging enabled
525 AC_MSG_CHECKING([whether to do a debug build])
527 AC_HELP_STRING([--enable-debug],
528 [turn on debugging [default=no]]),
529 [],[enable_debug="no"])
530 AC_MSG_RESULT([$enable_debug])
532 # check whether to enable optimized builds
533 AC_MSG_CHECKING([whether to enable optimized builds])
534 AC_ARG_ENABLE(optimizations,
535 AC_HELP_STRING([--enable-optimizations],
536 [turn on optimize builds (GCC only)
538 [enable_optimizations=$enableval],
539 [if test "$enable_debug" = "yes"; then enable_optimizations="no"; else enable_optimizations="yes"; fi])
540 AC_MSG_RESULT([$enable_optimizations])
542 # check whether to enable unstable features
543 AC_MSG_CHECKING([whether to enable unstable features])
544 AC_ARG_ENABLE(unstable_features,
545 AC_HELP_STRING([--enable-unstable-features],
546 [enable unstable features [default=no]]),
547 [],[enable_unstable_features="no"])
548 AC_MSG_RESULT([$enable_unstable_features])
551 if test "$with_target" = "x11"; then
552 AC_CHECK_HEADERS([GL/gl.h], [found_opengl="yes"], [])
553 AC_CHECK_HEADERS([GL/glx.h], [], [found_opengl="no"])
555 AC_MSG_CHECKING([which GPU acceleration backend to use])
556 AC_ARG_WITH(acceleration_backend,
557 AC_HELP_STRING([--with-acceleration-backend=@<:@opengl/clutter/none@:>@],
558 [Select accelerated backend (Clutter currently unsupported, OpenGL autodetected) [default=autodetect]]), [],
560 if test "$found_opengl" = "yes"; then
561 with_acceleration_backend="opengl";
563 with_acceleration_backend="none";
566 AC_MSG_RESULT([$with_acceleration_backend])
568 # OpenGL is turned on by default (along with WebGL and accelerated compositing), but if
569 # Clutter is chosen as the accelerated drawing backend, we want to disable it. COGL does
570 # not play well with OpenGL.
571 AC_MSG_CHECKING([whether to enable WebGL support])
573 AC_HELP_STRING([--enable-webgl], [enable support for WebGL [default=check]]), [],
575 if test "$with_acceleration_backend" = "opengl"; then
581 AC_MSG_RESULT([$enable_webgl])
582 if test "$enable_webgl" = "yes" && test "$with_acceleration_backend" != "opengl"; then
583 AC_MSG_ERROR([OpenGL must be active (and Clutter disabled) to use WebGL.])
586 AC_MSG_CHECKING([whether to enable accelerated compositing support])
587 AC_ARG_ENABLE(accelerated_compositing,
588 AC_HELP_STRING([--enable-accelerated-compositing], [enable support for accelerated compositing [default=check]]),
590 if test "$enableval" = "yes" && test "$with_acceleration_backend" = "none"; then
591 AC_MSG_ERROR([OpenGL or Clutter must be active to use accelerated compositing.])
593 enable_accelerated_compositing=$enableval;
596 if test "$with_acceleration_backend" != "none"; then
597 enable_accelerated_compositing="yes";
599 enable_accelerated_compositing="no";
602 AC_MSG_RESULT([$enable_accelerated_compositing])
604 # check whether to enable channel messaging support
605 AC_MSG_CHECKING([whether to enable HTML5 Channel Messaging support])
606 AC_ARG_ENABLE(channel_messaging,
607 AC_HELP_STRING([--enable-channel-messaging],
608 [enable HTML5 channel messaging support [default=yes]]),
609 [],[enable_channel_messaging="yes"])
610 AC_MSG_RESULT([$enable_channel_messaging])
612 # check whether to enable legacy notifications
613 AC_MSG_CHECKING([whether to enable legacy notifications])
614 AC_ARG_ENABLE(legacy_notifications,
615 AC_HELP_STRING([--enable-legacy-notifications],
616 [enable legacy notifications [default=no]]),
617 [],[enable_legacy_notifications="no"])
618 AC_MSG_RESULT([$enable_legacy_notifications])
620 # check whether to enable notifications
621 AC_MSG_CHECKING([whether to enable notifications])
622 AC_ARG_ENABLE(notifications,
623 AC_HELP_STRING([--enable-notifications],
624 [enable notifications [default=no]]),
625 [],[enable_notifications="no"])
626 AC_MSG_RESULT([$enable_notifications])
628 # check whether to enable the meter tag
629 AC_MSG_CHECKING([whether to enable HTML5 meter tag])
630 AC_ARG_ENABLE(meter_tag,
631 AC_HELP_STRING([--enable-meter-tag],
632 [enable HTML5 meter [default=yes]]),
633 [],[enable_meter_tag="yes"])
634 AC_MSG_RESULT([$enable_meter_tag])
636 # check whether to enable HTML5 Microdata support
637 AC_MSG_CHECKING([whether to enable HTML5 Microdata support])
638 AC_ARG_ENABLE(microdata,
639 AC_HELP_STRING([--enable-microdata],
640 [enable HTML5 microdata support [default=no]]),
641 [],[enable_microdata="no"])
642 AC_MSG_RESULT([$enable_microdata])
644 # check whether to enable page visibility API.
645 AC_MSG_CHECKING([whether to enable Page Visibility API support])
646 AC_ARG_ENABLE(page_visibility_api,
647 AC_HELP_STRING([--enable-page-visibility-api],
648 [enable page visibility api[default=no]]),
649 [],[enable_page_visibility_api="no"])
650 AC_MSG_RESULT([$enable_page_visibility_api])
652 # check whether to enable the progress tag
653 AC_MSG_CHECKING([whether to enable HTML5 progress tag])
654 AC_ARG_ENABLE(progress_tag,
655 AC_HELP_STRING([--enable-progress-tag],
656 [enable HTML5 progress [default=yes]]),
657 [],[enable_progress_tag="yes"])
658 AC_MSG_RESULT([$enable_progress_tag])
660 # check whether to enable JavaScript debugger/profiler support
661 AC_MSG_CHECKING([whether to enable JavaScript debugger/profiler support])
662 AC_ARG_ENABLE(javascript_debugger,
663 AC_HELP_STRING([--enable-javascript-debugger],
664 [enable JavaScript debugger/profiler support [default=yes]]),
665 [],[enable_javascript_debugger="yes"])
666 AC_MSG_RESULT([$enable_javascript_debugger])
668 # check whether to enable Gamepad support
669 AC_MSG_CHECKING([whether to enable Gamepad support])
670 AC_ARG_ENABLE(gamepad,
671 AC_HELP_STRING([--enable-gamepad],
672 [enable Gamepad support [default=no]]),
673 [],[enable_gamepad=$enable_unstable_features])
674 AC_MSG_RESULT([$enable_gamepad])
676 if test "$enable_gamepad" = "yes" && test "$os_linux" = no; then
677 AC_MSG_WARN([Gamepad support is only available on Linux. Disabling Gamepad support.])
681 # check whether to build with data transfer items support
682 AC_MSG_CHECKING([whether to enable HTML5 data transfer items support])
683 AC_ARG_ENABLE(data_transfer_items,
684 AC_HELP_STRING([--enable-data-transfer-items],
685 [enable HTML5 data transfer items support [default=no]]),
686 [],[enable_data_transfer_items="no"])
687 AC_MSG_RESULT([$enable_data_transfer_items])
689 # check whether to enable DOM mutation observer support
690 AC_MSG_CHECKING([whether to enable DOM mutation observer support])
691 AC_ARG_ENABLE(mutation_observers,
692 AC_HELP_STRING([--enable-mutation-observers],
693 [enable DOM mutation observer support [default=no]]),
694 [],[enable_mutation_observers=$enable_unstable_features])
695 AC_MSG_RESULT([$enable_mutation_observers])
697 # check whether to enable the indexed database API
698 AC_MSG_CHECKING([whether to enable the indexed database API])
699 AC_ARG_ENABLE(indexed_database,
700 AC_HELP_STRING([--enable-indexed-database],
701 [enable the indexed database API (incomplete) [default=no]]),
702 [],[enable_indexed_database="no"])
703 AC_MSG_RESULT([$enable_indexed_database])
705 # check whether to enable the color input
706 AC_MSG_CHECKING([whether to enable the color input])
707 AC_ARG_ENABLE(input_type_color,
708 AC_HELP_STRING([--enable-input-type-color],
709 [enable the color input [default=no]]),
710 [],[enable_input_type_color="no"])
711 AC_MSG_RESULT([$enable_input_type_color])
713 # check whether to enable the speech input API
714 AC_MSG_CHECKING([whether to enable the speech input API])
715 AC_ARG_ENABLE(input_speech,
716 AC_HELP_STRING([--enable-input-speech],
717 [enable the speech input API [default=no]]),
718 [],[enable_input_speech="no"])
719 AC_MSG_RESULT([$enable_input_speech])
721 # check whether to enable the scripted speech API
722 AC_MSG_CHECKING([whether to enable the scripted speech API])
723 AC_ARG_ENABLE(scripted_speech,
724 AC_HELP_STRING([--enable-scripted-speech],
725 [enable the scripted speech API [default=no]]),
726 [],[enable_scripted_speech="no"])
727 AC_MSG_RESULT([$enable_scripted_speech])
729 # check whether to build with SQL database support
730 AC_MSG_CHECKING([whether to enable SQL client-side database storage support])
731 AC_ARG_ENABLE(sql_database,
732 AC_HELP_STRING([--enable-sql-database],
733 [enable SQL client-side database storage support [default=yes]]),
734 [],[enable_sql_database="yes"])
735 AC_MSG_RESULT([$enable_sql_database])
737 # check whether to build with icon database support
738 AC_MSG_CHECKING([whether to enable icon database support])
739 AC_ARG_ENABLE(icon_database,
740 AC_HELP_STRING([--enable-icon-database],
741 [enable icon database [default=yes]]),
742 [],[enable_icon_database="yes"])
743 AC_MSG_RESULT([$enable_icon_database])
745 # check whether to enable HTML5 datalist support
746 AC_MSG_CHECKING([whether to enable HTML5 datalist support])
747 AC_ARG_ENABLE(datalist,
748 AC_HELP_STRING([--enable-datalist],
749 [enable HTML5 datalist support [default=yes]]),
750 [],[enable_datalist="yes"])
751 AC_MSG_RESULT([$enable_datalist])
753 # check whether to enable HTML5 iframe seamless attribute support
754 AC_MSG_CHECKING([whether to enable HTML5 iframe seamless attribute support])
755 AC_ARG_ENABLE(iframe-seamless,
756 AC_HELP_STRING([--enable-iframe-seamless],
757 [enable HTML5 iframe seamless attribute support [default=yes]]),
758 [],[enable_iframe_seamless="yes"])
759 AC_MSG_RESULT([$enable_iframe_seamless])
761 # check whether to enable HTML5 audio/video support
762 AC_MSG_CHECKING([whether to enable HTML5 video support])
764 AC_HELP_STRING([--enable-video],
765 [enable HTML5 video support [default=yes]]),
766 [],[enable_video="yes"])
767 AC_MSG_RESULT([$enable_video])
769 # turn off video features if --disable-video is requested
770 if test "$enable_video" = "no"; then
771 enable_video_track=no
774 # check whether to enable HTML5 video track support
775 AC_MSG_CHECKING([whether to enable HTML5 video track support])
776 AC_ARG_ENABLE(video_track,
777 AC_HELP_STRING([--enable-video-track],
778 [enable HTML5 video track support [default=no]]),
779 [],[enable_video_track=$enable_unstable_features])
780 AC_MSG_RESULT([$enable_video_track])
782 # check whether to enable media source support
783 AC_MSG_CHECKING([whether to enable media source support])
784 AC_ARG_ENABLE(media_source,
785 AC_HELP_STRING([--enable-media-source],
786 [enable support for media source [default=no]]),
787 [], [enable_media_source="no"])
788 AC_MSG_RESULT([$enable_media_source])
790 # check whether to enable media statistics support
791 AC_MSG_CHECKING([whether to enable media statistics support])
792 AC_ARG_ENABLE(media_statistics,
793 AC_HELP_STRING([--enable-media-statistics],
794 [enable support for media statistics [default=no]]),
795 [], [enable_media_statistics="no"])
796 AC_MSG_RESULT([$enable_media_statistics])
798 # check whether to enable Javascript Fullscreen API support
799 AC_MSG_CHECKING([whether to enable Fullscreen API support])
800 AC_ARG_ENABLE(fullscreen_api,
801 AC_HELP_STRING([--enable-fullscreen-api],
802 [enable the Fullscreen API support [default=yes]]),
803 [],[enable_fullscreen_api="yes"])
804 AC_MSG_RESULT([$enable_fullscreen_api])
806 # check whether to enable media stream support
807 AC_MSG_CHECKING([whether to enable media stream support])
808 AC_ARG_ENABLE(media_stream,
809 AC_HELP_STRING([--enable-media-stream],
810 [enable media stream support (incomplete) [default=no]]),
811 [],[enable_media_stream=$enable_unstable_features])
812 AC_MSG_RESULT([$enable_media_stream])
814 # check whether to enable XSLT support
815 AC_MSG_CHECKING([whether to enable XSLT support])
817 AC_HELP_STRING([--enable-xslt],
818 [enable support for XSLT [default=yes]]),
819 [],[enable_xslt="yes"])
820 AC_MSG_RESULT([$enable_xslt])
822 # check whether to enable geolocation support
823 AC_MSG_CHECKING([whether to enable geolocation support])
824 AC_ARG_ENABLE(geolocation,
825 AC_HELP_STRING([--enable-geolocation],
826 [enable support for geolocation [default=yes]]),
827 [],[enable_geolocation="yes"])
828 AC_MSG_RESULT([$enable_geolocation])
830 # check whether to enable MathML support
831 AC_MSG_CHECKING([whether to enable MathML support])
832 AC_ARG_ENABLE(mathml,
833 AC_HELP_STRING([--enable-mathml],
834 [enable support for MathML [default=yes]]),
835 [],[enable_mathml="yes"])
836 AC_MSG_RESULT([$enable_mathml])
838 # check whether to enable MHTML support
839 AC_MSG_CHECKING([whether to enable MHTML support])
841 AC_HELP_STRING([--enable-mhtml],
842 [enable support for MHTML [default=yes]]),
843 [],[enable_mhtml="yes"])
844 AC_MSG_RESULT([$enable_mhtml])
846 # check whether to enable SVG support
847 AC_MSG_CHECKING([whether to enable SVG support])
849 AC_HELP_STRING([--enable-svg],
850 [enable support for SVG [default=yes]]),
851 [],[enable_svg="yes"])
852 AC_MSG_RESULT([$enable_svg])
854 # check whether to enable Shadow DOM support
855 AC_MSG_CHECKING([whether to enable Shadow DOM support])
856 AC_ARG_ENABLE(shadow_dom,
857 AC_HELP_STRING([--enable-shadow-dom],
858 [enable support for Shadow DOM [default=yes]]),
859 [],[enable_shadow_dom="yes"])
860 AC_MSG_RESULT([$enable_shadow_dom])
862 # check whether to enable SharedWorkers support
863 AC_MSG_CHECKING([whether to enable SharedWorkers support])
864 AC_ARG_ENABLE(shared_workers,
865 AC_HELP_STRING([--enable-shared-workers],
866 [enable support for SharedWorkers [default=yes]]),
867 [],[enable_shared_workers="yes"])
868 AC_MSG_RESULT([$enable_shared_workers])
870 # check whether to enable Web Workers support
871 AC_MSG_CHECKING([whether to enable Web Workers support])
872 AC_ARG_ENABLE(workers,
873 AC_HELP_STRING([--enable-workers],
874 [enable support for Web Workers [default=yes]]),
875 [],[enable_workers="yes"])
876 AC_MSG_RESULT([$enable_workers])
878 # check whether to enable directory upload support
879 AC_MSG_CHECKING([whether to enable directory upload support])
880 AC_ARG_ENABLE(directory_upload,
881 AC_HELP_STRING([--enable-directory-upload],
882 [enable support for directory upload [default=no]]),
883 [], [enable_directory_upload="no"])
884 AC_MSG_RESULT([$enable_directory_upload])
886 # check whether to enable HTML5 FileSystem API support
887 AC_MSG_CHECKING([whether to enable HTML5 FileSystem API support])
888 AC_ARG_ENABLE(file_system,
889 AC_HELP_STRING([--enable-file-system],
890 [enable support for HTML5 FileSystem API [default=no]]),
891 [], [enable_file_system="no"])
892 AC_MSG_RESULT([$enable_file_system])
894 # check whether to enable HTML5 <style scoped> support
895 AC_MSG_CHECKING([whether to enable HTML5 <style scoped> support])
896 AC_ARG_ENABLE(style_scoped,
897 AC_HELP_STRING([--enable-style-scoped],
898 [enable support for HTML5 <style scoped> [default=no]]),
899 [], [enable_style_scoped="no"])
900 AC_MSG_RESULT([$enable_style_scoped])
902 # check whether to enable Quota API support
903 AC_MSG_CHECKING([whether to enable Quota API support])
905 AC_HELP_STRING([--enable-quota],
906 [enable support for Quota API [default=no]]),
907 [], [enable_quota="no"])
908 AC_MSG_RESULT([$enable_quota])
910 # turn off svg features if --disable-svg is requested
911 if test "$enable_svg" = "no"; then
915 # check whether to enable support for CSS box-decoration-break
916 AC_MSG_CHECKING([whether to enable support for CSS box-decoration-break])
917 AC_ARG_ENABLE(css_box_decoration_break,
918 AC_HELP_STRING([--enable-css-box-decoration-break],
919 [enable support for CSS box-decoration-break (experimental) [default=yes]]),
920 [],[enable_css_box_decoration_break="yes"])
921 AC_MSG_RESULT([$enable_css_box_decoration_break])
923 # check whether to enable support for filters
924 AC_MSG_CHECKING([whether to enable support for filters])
925 AC_ARG_ENABLE(filters,
926 AC_HELP_STRING([--enable-filters],
927 [enable support for filters (experimental) [default=yes]]),
928 [],[enable_filters="yes"])
929 AC_MSG_RESULT([$enable_filters])
931 # check whether to enable support for SVG fonts
932 AC_MSG_CHECKING([whether to enable support for SVG fonts])
933 AC_ARG_ENABLE(svg_fonts,
934 AC_HELP_STRING([--enable-svg-fonts],
935 [enable support for SVG fonts (experimental) [default=yes]]),
936 [],[enable_svg_fonts="yes"])
937 AC_MSG_RESULT([$enable_svg_fonts])
939 # check for SVG features, enabling SVG if necessary
940 if test "$enable_svg_fonts" = "yes"; then
942 if test "$enable_svg" = "no"; then
943 AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support])
948 # check whether to enable Web Socket support
949 AC_MSG_CHECKING([whether to enable Web Sockets support])
950 AC_ARG_ENABLE(web_sockets,
951 AC_HELP_STRING([--enable-web-sockets],
952 [enable support for Web Sockets [default=yes]]),
953 [],[enable_web_sockets="yes"])
954 AC_MSG_RESULT([$enable_web_sockets])
956 # check whether to enable Web Audio support
957 AC_MSG_CHECKING([whether to enable Web Audio support])
958 AC_ARG_ENABLE(web_audio,
959 AC_HELP_STRING([--enable-web-audio],
960 [enable support for Web Audio [default=no]]),
961 [],[enable_web_audio="no"])
962 AC_MSG_RESULT([$enable_web_audio])
964 # check whether to enable Web Timing support
965 AC_MSG_CHECKING([whether to enable Web Timing support])
966 AC_ARG_ENABLE(web_timing,
967 AC_HELP_STRING([--enable-web-timing],
968 [enable support for Web Timing [default=no]]),
969 [],[enable_web_timing=$enable_unstable_features])
970 AC_MSG_RESULT([$enable_web_timing])
972 # check whether to enable Blob support
973 AC_MSG_CHECKING([whether to enable Blob support])
975 AC_HELP_STRING([--enable-blob],
976 [enable support for Blob [default=yes]]),
977 [],[enable_blob="yes"])
978 AC_MSG_RESULT([$enable_blob])
980 # check whether to enable Legacy WebKitBlobBuilder support
981 AC_MSG_CHECKING([whether to enable Legacy WebKitBlobBuilder support])
982 AC_ARG_ENABLE(legacy_webkit_blob_builder,
983 AC_HELP_STRING([--enable-legacy-webkit-blob-builder],
984 [enable support for Legacy WebKitBlobBuilder [default=yes]]),
985 [],[enable_legacy_webkit_blob_builder="yes"])
986 AC_MSG_RESULT([$legacy_webkit_blob_builder])
988 # check whether to enable Fast Mobile Scrolling support
989 AC_MSG_CHECKING([whether to enable Fast Mobile Scrolling])
990 AC_ARG_ENABLE(fast_mobile_scrolling,
991 AC_HELP_STRING([--enable-fast-mobile-scrolling],
992 [enable support for Fast Mobile Scrolling [default=no]]),
993 [],[enable_fast_mobile_scrolling="no"])
994 AC_MSG_RESULT([$enable_fast_mobile_scrolling])
996 # check whether to enable code coverage
997 AC_MSG_CHECKING([whether to enable code coverage support])
998 AC_ARG_ENABLE(coverage,
999 AC_HELP_STRING([--enable-coverage],
1000 [enable code coverage support [default=no]]),
1001 [],[enable_coverage="no"])
1002 AC_MSG_RESULT([$enable_coverage])
1004 # check whether to enable CSS flaxbox support
1005 AC_MSG_CHECKING([whether to enable CSS3 flexbox support])
1006 AC_ARG_ENABLE(css3_flexbox,
1007 AC_HELP_STRING([--enable-css3-flexbox],
1008 [enable CSS3 flexbox support [default=no]]),
1009 [],[enable_css3_flexbox=$enable_unstable_features])
1010 AC_MSG_RESULT([$enable_css3_flexbox])
1012 # check whether to enable FastMalloc
1013 AC_MSG_CHECKING([whether to enable optimized memory allocator])
1014 AC_ARG_ENABLE(fast_malloc,
1015 AC_HELP_STRING([--enable-fast-malloc],
1016 [enable optimized memory allocator default=yes, default=no for debug builds]),
1017 [],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi])
1018 AC_MSG_RESULT([$enable_fast_malloc])
1020 # check whether to enable debug symbols
1021 AC_MSG_CHECKING([whether to enable debug symbols])
1022 AC_ARG_ENABLE(debug_symbols,
1023 AC_HELP_STRING([--enable-debug-symbols],
1024 [enable debug symbols default=no, default=yes for debug builds]),
1025 [],[if test "$enable_debug" = "yes"; then enable_debug_symbols="yes"; else enable_debug_symbols="no"; fi])
1026 AC_MSG_RESULT([$enable_debug_symbols])
1028 # check whether to enable debug features
1029 AC_MSG_CHECKING([whether to enable debug features])
1030 AC_ARG_ENABLE(debug_features,
1031 AC_HELP_STRING([--enable-debug-features],
1032 [enable debug features default=no, default=yes for debug builds]),
1033 [],[if test "$enable_debug" = "yes"; then enable_debug_features="yes"; else enable_debug_features="no"; fi])
1034 AC_MSG_RESULT([$enable_debug_features])
1036 AC_MSG_CHECKING([whether to enable JIT compilation])
1038 AS_HELP_STRING([--enable-jit],
1039 [Enable JIT compilation (default: autodetect)]))
1040 case "$enable_jit" in
1041 yes) JSC_CPPFLAGS="-DENABLE_JIT=1" ;;
1042 no) JSC_CPPFLAGS="-DENABLE_JIT=0" ;;
1043 *) enable_jit="autodetect" ;;
1045 AC_SUBST(JSC_CPPFLAGS)
1046 AC_MSG_RESULT([$enable_jit])
1049 AC_MSG_CHECKING([whether to enable opcode stats])
1050 AC_ARG_ENABLE([opcode-stats],
1051 [AS_HELP_STRING([--enable-opcode-stats], [Enable Opcode statistics (default: disabled)])],
1052 [], [enable_opcode_stats=no])
1053 AC_MSG_RESULT([$enable_opcode_stats])
1055 if test "$enable_opcode_stats" = "yes"; then
1056 if test "$enable_jit" = "yes"; then
1057 AC_MSG_ERROR([JIT must be disabled for Opcode stats to work.])
1059 AC_DEFINE([ENABLE_OPCODE_STATS], [1], [Define to enable Opcode statistics])
1063 AC_MSG_CHECKING([whether to enable link prefetch support])
1064 AC_ARG_ENABLE([link-prefetch],
1065 [AS_HELP_STRING([--enable-link-prefetch], [Enable Link prefetch support (default: disabled)])],
1066 [],[enable_link_prefetch=$enable_unstable_features])
1067 AC_MSG_RESULT([$enable_link_prefetch])
1069 # GObject Introspection
1070 AC_MSG_CHECKING([whether to enable GObject introspection support])
1071 AC_ARG_ENABLE([introspection],
1072 [AS_HELP_STRING([--enable-introspection],[Enable GObject introspection (default: disabled)])],
1073 [],[enable_introspection=no])
1074 AC_MSG_RESULT([$enable_introspection])
1076 # check whether to enable animation API
1077 AC_MSG_CHECKING([whether to enable Animation API support])
1078 AC_ARG_ENABLE(animation_api,
1079 AC_HELP_STRING([--enable-animation-api],
1080 [enable support for Animation API (experimental) [default=no]]),
1081 [], [enable_animation_api="no"])
1082 AC_MSG_RESULT([$enable_animation_api])
1084 # check whether to enable requestAnimationFrame support
1085 AC_MSG_CHECKING([whether to enable requestAnimationFrame support])
1086 AC_ARG_ENABLE(request_animation_frame,
1087 AC_HELP_STRING([--enable-request-animation-frame],
1088 [enable support for requestAnimationFrame (experimental) [default=yes]]),
1089 [],[enable_request_animation_frame="yes"])
1090 AC_MSG_RESULT([$enable_request_animation_frame])
1092 # check whether to enable touch icon loading
1093 AC_MSG_CHECKING([whether to enable touch icon loading])
1094 AC_ARG_ENABLE(touch_icon_loading,
1095 AC_HELP_STRING([--enable-touch-icon-loading],
1096 [enable support for loading touch icons [default=no]]),
1097 [], [enable_touch_icon_loading="no"])
1098 AC_MSG_RESULT([$enable_touch_icon_loading])
1100 # check whether to enable Register Protocol Handler support
1101 AC_MSG_CHECKING([whether to enable Register Protocol Handler])
1102 AC_ARG_ENABLE(register_protocol_handler,
1103 AC_HELP_STRING([--enable-register-protocol-handler],
1104 [enable support for Register Protocol Handler (experimental) [default=no]]),
1105 [],[enable_register_protocol_handler="no"])
1106 AC_MSG_RESULT([$enable_register_protocol_handler])
1108 # check whether to enable DeviceOrientation support
1109 AC_MSG_CHECKING([whether to enable DeviceOrientation])
1110 AC_ARG_ENABLE(device_orientation,
1111 AC_HELP_STRING([--enable-device-orientation],
1112 [enable support for DeviceOrientation (experimental and incomplete) [default=no]]),
1113 [],[enable_device_orientation="no"])
1114 AC_MSG_RESULT([$enable_device_orientation])
1116 # check whether to enable Text Autosizing support
1117 AC_MSG_CHECKING([whether to enable Text Autosizing])
1118 AC_ARG_ENABLE(text_autosizing,
1119 AC_HELP_STRING([--enable-text-autosizing],
1120 [enable support for Text Autosizing (incomplete) [default=no]]),
1121 [],[enable_text_autosizing="no"])
1122 AC_MSG_RESULT([$enable_text_autosizing])
1124 # check whether to enable CSS Exclusions support
1125 AC_MSG_CHECKING([whether to enable CSS Exclusions])
1126 AC_ARG_ENABLE(css_exclusions,
1127 AC_HELP_STRING([--enable-css-exclusions],
1128 [enable support for CSS Exclusions [default=yes]]),
1129 [],[enable_css_exclusions="yes"])
1130 AC_MSG_RESULT([$enable_css_exclusions])
1132 # check whether to enable CSS Regions support
1133 AC_MSG_CHECKING([whether to enable CSS Regions])
1134 AC_ARG_ENABLE(css_regions,
1135 AC_HELP_STRING([--enable-css-regions],
1136 [enable support for CSS Regions [default=yes]]),
1137 [],[enable_css_regions="yes"])
1138 AC_MSG_RESULT([$enable_css_regions])
1140 # check whether to enable CSS Filters support
1141 AC_MSG_CHECKING([whether to enable CSS Filters])
1142 AC_ARG_ENABLE(css_filters,
1143 AC_HELP_STRING([--enable-css-filters],
1144 [enable support for CSS Filters [default=no]]),
1145 [],[enable_css_filters="no"])
1146 AC_MSG_RESULT([$enable_css_filters])
1154 if test "$enable_introspection" = "yes"; then
1155 GOBJECT_INTROSPECTION_REQUIRED=0.9.5
1156 PKG_CHECK_MODULES([INTROSPECTION],[gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED])
1158 G_IR_SCANNER="$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)"
1159 G_IR_COMPILER="$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)"
1160 G_IR_GENERATE="$($PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0)"
1161 AC_DEFINE([ENABLE_INTROSPECTION],[1],[Define to enable GObject introspection support])
1164 AC_SUBST([G_IR_SCANNER])
1165 AC_SUBST([G_IR_COMPILER])
1166 AC_SUBST([G_IR_GENERATE])
1168 # determine the font backend
1169 AC_MSG_CHECKING([the font backend to use])
1170 AC_ARG_WITH(font_backend,
1171 AC_HELP_STRING([--with-font-backend=@<:@freetype/pango@:>@],
1172 [Select font backend [default=freetype]]),
1173 [],[with_font_backend="freetype"])
1175 case "$with_font_backend" in
1177 *) AC_MSG_ERROR([Invalid font backend: must be freetype or pango.]) ;;
1179 AC_MSG_RESULT([$with_font_backend])
1181 if test "$host_cpu" = "sh4"; then
1182 CXXFLAGS="$CXXFLAGS -mieee -w"
1183 CFLAGS="$CFLAGS -mieee -w"
1186 # Add '-g' flag to gcc to build with debug symbols
1187 if test "$enable_debug_symbols" = "yes"; then
1188 CXXFLAGS="$CXXFLAGS -g"
1192 if test "$enable_debug_features" = "no"; then
1193 AC_DEFINE([NDEBUG], [1], [Define to disable debugging features])
1196 # Add the appropriate 'O' level for optimized builds
1197 if test "$enable_optimizations" = "yes"; then
1198 CXXFLAGS="$CXXFLAGS -O2"
1199 CFLAGS="$CFLAGS -O2"
1201 CXXFLAGS="$CXXFLAGS -O0"
1202 CFLAGS="$CFLAGS -O0"
1205 PKG_CHECK_MODULES([LIBSOUP],
1206 [libsoup-2.4 >= $LIBSOUP_REQUIRED_VERSION])
1207 AC_SUBST([LIBSOUP_CFLAGS])
1208 AC_SUBST([LIBSOUP_LIBS])
1210 # check if FreeType/FontConfig are available
1211 if test "$with_font_backend" = "freetype"; then
1212 if test "$with_target" = "directfb"; then
1213 PKG_CHECK_MODULES([FREETYPE],
1214 [fontconfig >= $FONTCONFIG_REQUIRED_VERSION
1215 freetype2 >= $FREETYPE2_REQUIRED_VERSION])
1217 PKG_CHECK_MODULES([FREETYPE],
1219 fontconfig >= $FONTCONFIG_REQUIRED_VERSION
1220 freetype2 >= $FREETYPE2_REQUIRED_VERSION])
1222 AC_SUBST([FREETYPE_CFLAGS])
1223 AC_SUBST([FREETYPE_LIBS])
1226 # check if SQLite3 is available. Error out only if one of the
1227 # features hard-depending on it is enabled while SQLite3 is
1229 PKG_CHECK_MODULES([SQLITE3],
1230 [sqlite3 >= $SQLITE_REQUIRED_VERSION],
1231 [sqlite3_has_pkg_config=yes],
1232 [sqlite3_has_pkg_config=no])
1233 if test "$sqlite3_has_pkg_config" = "no"; then
1234 AC_SEARCH_LIBS([sqlite3_open16], [sqlite3],
1235 [sqlite3_found=yes;SQLITE3_LIBS="$LIBS";SQLITE3_CFLAGS="-I $srcdir/WebKitLibraries/WebCoreSQLite3"],
1238 AC_SUBST([SQLITE3_CFLAGS])
1239 AC_SUBST([SQLITE3_LIBS])
1241 if (test "$sqlite3_found" = "no"); then
1242 AC_MSG_ERROR([SQLite3 is required for the Database related features])
1245 # check if libxslt is available
1246 if test "$enable_xslt" = "yes"; then
1247 PKG_CHECK_MODULES([LIBXSLT],[libxslt >= $LIBXSLT_REQUIRED_VERSION])
1248 AC_SUBST([LIBXSLT_CFLAGS])
1249 AC_SUBST([LIBXSLT_LIBS])
1252 # check if geoclue is available
1253 if test "$enable_geolocation" = "yes"; then
1254 PKG_CHECK_MODULES([GEOCLUE], [geoclue])
1255 AC_SUBST([GEOCLUE_CFLAGS])
1256 AC_SUBST([GEOCLUE_LIBS])
1259 # check for XRender under Linux/Unix. Some linkers require explicit
1260 # linkage (like GNU Gold), so we cannot rely on GTK+ pulling XRender
1261 if test "$os_win32" = "no"; then
1262 PKG_CHECK_MODULES([XRENDER], [xrender])
1263 AC_SUBST([XRENDER_CFLAGS])
1264 AC_SUBST([XRENDER_LIBS])
1267 # check if gstreamer is available
1268 if test "$enable_video" = "yes" || test "$enable_web_audio" = "yes"; then
1269 gstreamer_modules="gstreamer-$GST_API_VERSION >= $GSTREAMER_REQUIRED_VERSION
1270 gstreamer-app-$GST_API_VERSION
1271 gstreamer-audio-$GST_API_VERSION
1272 gstreamer-fft-$GST_API_VERSION
1273 gstreamer-base-$GST_API_VERSION
1274 gstreamer-pbutils-$GST_API_VERSION
1275 gstreamer-plugins-base-$GST_API_VERSION >= $GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION
1276 gstreamer-video-$GST_API_VERSION";
1277 if test "$GST_API_VERSION" != "1.0"; then
1278 gstreamer_modules="$gstreamer_modules gstreamer-interfaces-$GST_API_VERSION";
1280 PKG_CHECK_MODULES([GSTREAMER], [$gstreamer_modules], [have_gstreamer=yes])
1281 AC_SUBST([GSTREAMER_CFLAGS])
1282 AC_SUBST([GSTREAMER_LIBS])
1286 if test "$with_acceleration_backend" = "clutter"; then
1287 PKG_CHECK_MODULES(CLUTTER, clutter-1.0 >= $CLUTTER_REQUIRED_VERSION)
1288 PKG_CHECK_MODULES([CLUTTER_GTK],
1289 [clutter-gtk-1.0 >= $CLUTTER_GTK_REQUIRED_VERSION])
1291 AC_SUBST(CLUTTER_CFLAGS)
1292 AC_SUBST(CLUTTER_LIBS)
1293 AC_SUBST(CLUTTER_GTK_CFLAGS)
1294 AC_SUBST(CLUTTER_GTK_LIBS)
1297 if test "$with_acceleration_backend" = "opengl"; then
1298 OPENGL_LIBS="-lGL -ldl"
1300 AC_SUBST([OPENGL_LIBS])
1302 # check if atspi2 is available (only needed for Webkit2 unit tests)
1303 if test "$enable_webkit2" = "yes"; then
1304 PKG_CHECK_MODULES([ATSPI2],
1305 [atspi-2 >= $ATSPI2_REQUIRED_VERSION],
1306 [have_atspi2=yes], [have_atspi2=no])
1308 AC_SUBST([ATSPI2_CFLAGS])
1309 AC_SUBST([ATSPI2_LIBS])
1312 if test "$enable_gamepad" = "yes"; then
1313 PKG_CHECK_MODULES([GAMEPAD], [gio-unix-2.0 gudev-1.0])
1315 AC_SUBST(GAMEPAD_CFLAGS)
1316 AC_SUBST(GAMEPAD_LIBS)
1319 # check for code coverage support
1320 if test "$enable_coverage" = "yes"; then
1321 COVERAGE_CFLAGS="-MD"
1322 COVERAGE_LDFLAGS="-ftest-coverage -fprofile-arcs"
1323 AC_SUBST([COVERAGE_CFLAGS])
1324 AC_SUBST([COVERAGE_LDFLAGS])
1327 # check for HTML features
1328 if test "$enable_video" = "yes"; then
1333 # If you change the default here, please also make sure the assumptions made
1334 # in Tools/Scripts/webkitdirs.pm:buildAutotoolsProject still make sense.
1335 AC_MSG_CHECKING([whether to build Webkit2])
1336 AC_ARG_ENABLE(webkit2,
1337 AC_HELP_STRING([--enable-webkit2], [build webkit2 [default=yes]]),
1338 [], [enable_webkit2="yes"])
1339 AC_MSG_RESULT([$enable_webkit2])
1340 if test "$enable_webkit2" = "yes"; then
1341 if test "$GTK_API_VERSION" = "2.0"; then
1342 AC_MSG_ERROR([WebKit2 requires GTK+ 3.x, use --with-gtk=3.0])
1345 # Check Unix printing
1346 PKG_CHECK_MODULES(GTK_UNIX_PRINTING, gtk+-unix-print-3.0,
1347 [have_gtk_unix_printing=yes],
1348 [have_gtk_unix_printing=no])
1349 AC_SUBST(GTK_UNIX_PRINTING_CFLAGS)
1350 AC_SUBST(GTK_UNIX_PRINTING_LIBS)
1351 if test "$have_gtk_unix_printing" = "yes"; then
1352 AC_DEFINE([HAVE_GTK_UNIX_PRINTING], [1], [Define if GTK+ UNIX Printing is available])
1357 AC_MSG_CHECKING([whether to build plugin process for WebKit2])
1358 AC_ARG_ENABLE(plugin_process,
1359 AC_HELP_STRING([--enable-plugin-process], [build plugin process for WebKit2 [default=yes]]),
1360 [], [enable_plugin_process="yes"])
1361 AC_MSG_RESULT([$enable_plugin_process])
1363 # Build the plugin process only when building Webkit2.
1364 if test "$enable_webkit2" = "no"; then
1365 enable_plugin_process=no
1368 # Make sure we have GTK+ 2.x to build the plugin process.
1369 if test "$enable_plugin_process" = "yes"; then
1370 PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= $GTK2_REQUIRED_VERSION gail >= $GAIL2_REQUIRED_VERSION)
1372 AC_SUBST(GTK2_CFLAGS)
1375 GTK_DOC_CHECK([1.10])
1378 AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])
1379 AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"])
1380 AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
1381 AM_CONDITIONAL([OS_GNU],[test "$os_gnu" = "yes"])
1382 AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
1384 # target conditionals
1385 AM_CONDITIONAL([TARGET_X11], [test "$with_target" = "x11"])
1386 AM_CONDITIONAL([TARGET_WIN32], [test "$with_target" = "win32"])
1387 AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"])
1388 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"])
1390 # Unicode backend conditionals
1391 AM_CONDITIONAL([USE_ICU_UNICODE], [test "$with_unicode_backend" = "icu"])
1392 AM_CONDITIONAL([USE_GLIB_UNICODE], [test "$with_unicode_backend" = "glib"])
1394 # Font backend conditionals
1395 AM_CONDITIONAL([USE_FREETYPE], [test "$with_font_backend" = "freetype"])
1396 AM_CONDITIONAL([USE_PANGO], [test "$with_font_backend" = "pango"])
1398 # GStreamer feature conditional
1399 AM_CONDITIONAL([USE_GSTREAMER], [test "$have_gstreamer" = "yes"])
1400 AM_CONDITIONAL([USE_WEBAUDIO_GSTREAMER], [test "$enable_web_audio" = "yes"])
1402 # ATSPI2 conditional
1403 AM_CONDITIONAL([HAVE_ATSPI2], [test "$have_atspi2" = "yes"])
1405 # Accelerated compositing conditional
1406 AM_CONDITIONAL([USE_ACCELERATED_COMPOSITING], [test "$enable_accelerated_compositing" = "yes"])
1407 AM_CONDITIONAL([USE_TEXTURE_MAPPER_CAIRO], [test "$enable_accelerated_compositing" = "yes" && test "$with_acceleration_backend" = "none"])
1408 AM_CONDITIONAL([USE_TEXTURE_MAPPER_GL], [test "$enable_accelerated_compositing" = "yes" && test "$with_acceleration_backend" = "opengl"])
1409 AM_CONDITIONAL([USE_CLUTTER], [test "$with_acceleration_backend" = "clutter"])
1411 # These are the same now, but they will soon be separate.
1412 AM_CONDITIONAL([USE_GLX], [test "$with_acceleration_backend" = "opengl"])
1413 AM_CONDITIONAL([USE_OPENGL], [test "$with_acceleration_backend" = "opengl"])
1415 # IndexedDB implies LevelDB, but other features may one day require LevelDB.
1416 AM_CONDITIONAL([ENABLE_INDEXED_DATABASE],[test "$enable_indexed_database" = "yes"])
1417 AM_CONDITIONAL([USE_LEVELDB],[test "$enable_indexed_database" = "yes"])
1419 # WebKit feature conditionals
1420 AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug_features" = "yes"])
1421 AM_CONDITIONAL([ENABLE_UNSTABLE_FEATURES],[test "$enable_unstable_features" = "yes"])
1422 AM_CONDITIONAL([ENABLE_WEBGL],[test "$enable_webgl" = "yes"])
1423 AM_CONDITIONAL([ENABLE_BLOB],[test "$enable_blob" = "yes"])
1424 AM_CONDITIONAL([ENABLE_LEGACY_WEBKIT_BLOB_BUILDER],[test "$enable_legacy_webkit_blob_builder" = "yes"])
1425 AM_CONDITIONAL([ENABLE_METER_ELEMENT],[test "$enable_meter_tag" = "yes"])
1426 AM_CONDITIONAL([ENABLE_MICRODATA],[test "$enable_microdata" = "yes"])
1427 AM_CONDITIONAL([ENABLE_PAGE_VISIBILITY_API],[test "$enable_page_visibility_api" = "yes"])
1428 AM_CONDITIONAL([ENABLE_PROGRESS_ELEMENT],[test "$enable_progress_tag" = "yes"])
1429 AM_CONDITIONAL([ENABLE_CHANNEL_MESSAGING],[test "$enable_channel_messaging" = "yes"])
1430 AM_CONDITIONAL([ENABLE_JAVASCRIPT_DEBUGGER],[test "$enable_javascript_debugger" = "yes"])
1431 AM_CONDITIONAL([ENABLE_GAMEPAD],[test "$enable_gamepad" = "yes"])
1432 AM_CONDITIONAL([ENABLE_DIRECTORY_UPLOAD],[test "$enable_directory_upload" = "yes"])
1433 AM_CONDITIONAL([ENABLE_DATA_TRANSFER_ITEMS],[test "$enable_data_transfer_items" = "yes"])
1434 AM_CONDITIONAL([ENABLE_SQL_DATABASE],[test "$enable_sql_database" = "yes"])
1435 AM_CONDITIONAL([ENABLE_DATALIST_ELEMENT],[test "$enable_datalist" = "yes"])
1436 AM_CONDITIONAL([ENABLE_DETAILS_ELEMENT],[test "$enable_details" = "yes"])
1437 AM_CONDITIONAL([ENABLE_FAST_MOBILE_SCROLLING],[test "$enable_fast_mobile_scrolling" = "yes"])
1438 AM_CONDITIONAL([ENABLE_FILE_SYSTEM],[test "$enable_file_system" = "yes"])
1439 AM_CONDITIONAL([ENABLE_STYLE_SCOPED],[test "$enable_style_scoped" = "yes"])
1440 AM_CONDITIONAL([ENABLE_QUOTA],[test "$enable_quota" = "yes"])
1441 AM_CONDITIONAL([ENABLE_ICONDATABASE],[test "$enable_icon_database" = "yes"])
1442 AM_CONDITIONAL([ENABLE_INPUT_TYPE_COLOR],[test "$enable_input_type_color" = "yes"])
1443 AM_CONDITIONAL([ENABLE_INPUT_SPEECH],[test "$enable_input_speech" = "yes"])
1444 AM_CONDITIONAL([ENABLE_SCRIPTED_SPEECH],[test "$enable_scripted_speech" = "yes"])
1445 AM_CONDITIONAL([ENABLE_XSLT],[test "$enable_xslt" = "yes"])
1446 AM_CONDITIONAL([ENABLE_CSS_BOX_DECORATION_BREAK],[test "$enable_css_box_decoration_break" = "yes"])
1447 AM_CONDITIONAL([ENABLE_FILTERS],[test "$enable_filters" = "yes"])
1448 AM_CONDITIONAL([ENABLE_GEOLOCATION], [test "$enable_geolocation" = "yes"])
1449 AM_CONDITIONAL([ENABLE_MATHML], [test "$enable_mathml" = "yes"])
1450 AM_CONDITIONAL([ENABLE_MHTML], [test "$enable_mhtml" = "yes"])
1451 AM_CONDITIONAL([ENABLE_VIDEO],[test "$enable_video" = "yes"])
1452 AM_CONDITIONAL([ENABLE_MEDIA_SOURCE],[test "$enable_media_source" = "yes"])
1453 AM_CONDITIONAL([ENABLE_MEDIA_STATISTICS],[test "$enable_media_statistics" = "yes"])
1454 AM_CONDITIONAL([ENABLE_VIDEO_TRACK],[test "$enable_video_track" = "yes"])
1455 AM_CONDITIONAL([ENABLE_FULLSCREEN_API],[test "$enable_fullscreen_api" = "yes"])
1456 AM_CONDITIONAL([ENABLE_MEDIA_STREAM],[test "$enable_media_stream" = "yes"])
1457 AM_CONDITIONAL([ENABLE_LEGACY_NOTIFICATIONS],[test "$enable_legacy_notifications" = "yes"])
1458 AM_CONDITIONAL([ENABLE_NOTIFICATIONS],[test "$enable_notifications" = "yes"])
1459 AM_CONDITIONAL([ENABLE_ORIENTATION_EVENTS],[test "$enable_orientation_events" = "yes"])
1460 AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"])
1461 AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"])
1462 AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"])
1463 AM_CONDITIONAL([ENABLE_CSS3_FLEXBOX],[test "$enable_css3_flexbox" = "yes"])
1464 AM_CONDITIONAL([ENABLE_FAST_MALLOC],[test "$enable_fast_malloc" = "yes"])
1465 AM_CONDITIONAL([ENABLE_WORKERS],[test "$enable_workers" = "yes"])
1466 AM_CONDITIONAL([ENABLE_SHADOW_DOM],[test "$enable_shadow_dom" = "yes"])
1467 AM_CONDITIONAL([ENABLE_SHARED_WORKERS],[test "$enable_shared_workers" = "yes"])
1468 AM_CONDITIONAL([SVG_FLAGS],[test "$svg_flags" = "yes"])
1469 AM_CONDITIONAL([HTML_FLAGS],[test "$html_flags" = "yes"])
1470 AM_CONDITIONAL([ENABLE_WEB_SOCKETS],[test "$enable_web_sockets" = "yes"])
1471 AM_CONDITIONAL([ENABLE_WEB_AUDIO],[test "$enable_web_audio" = "yes"])
1472 AM_CONDITIONAL([ENABLE_WEB_TIMING],[test "$enable_web_timing" = "yes"])
1473 AM_CONDITIONAL([ENABLE_OPCODE_STATS],[test "$enable_opcode_stats" = "yes"])
1474 AM_CONDITIONAL([ENABLE_WEBKIT2],[test "$enable_webkit2" = "yes"])
1475 AM_CONDITIONAL([ENABLE_PLUGIN_PROCESS],[test "$enable_plugin_process" = "yes"])
1476 AM_CONDITIONAL([ENABLE_SPELLCHECK],[test "$enable_spellcheck" = "yes"])
1477 AM_CONDITIONAL([ENABLE_LINK_PREFETCH],[test "$enable_link_prefetch" = "yes"])
1478 AM_CONDITIONAL([ENABLE_ANIMATION_API],[test "$enable_animation_api" = "yes"])
1479 AM_CONDITIONAL([ENABLE_REQUEST_ANIMATION_FRAME],[test "$enable_request_animation_frame" = "yes"])
1480 AM_CONDITIONAL([ENABLE_TOUCH_ICON_LOADING],[test "$enable_touch_icon_loading" = "yes"])
1481 AM_CONDITIONAL([ENABLE_REGISTER_PROTOCOL_HANDLER],[test "$enable_register_protocol_handler" = "yes"])
1482 AM_CONDITIONAL([ENABLE_DEVICE_ORIENTATION],[test "$enable_device_orientation" = "yes"])
1483 AM_CONDITIONAL([ENABLE_MUTATION_OBSERVERS],[test "$enable_mutation_observers" = "yes"])
1484 AM_CONDITIONAL([ENABLE_IFRAME_SEAMLESS],[test "$enable_iframe_seamless" = "yes"])
1485 AM_CONDITIONAL([ENABLE_TEXT_AUTOSIZING],[test "$enable_text_autosizing" = "yes"])
1486 AM_CONDITIONAL([ENABLE_CSS_EXCLUSIONS],[test "$enable_css_exclusions" = "yes"])
1487 AM_CONDITIONAL([ENABLE_CSS_REGIONS],[test "$enable_css_regions" = "yes"])
1488 AM_CONDITIONAL([ENABLE_CSS_FILTERS],[test "$enable_css_filters" = "yes"])
1491 AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"])
1499 Source/WebKit/gtk/webkit/webkitversion.h
1503 Source/WebKit/gtk/${WEBKITGTK_PC_NAME}-${WEBKITGTK_API_VERSION}.pc:Source/WebKit/gtk/webkit.pc.in
1504 Source/WebKit/gtk/JSCore-${WEBKITGTK_API_VERSION}.gir:Source/WebKit/gtk/JSCore.gir.in
1505 Source/JavaScriptCore/javascriptcoregtk-${WEBKITGTK_API_VERSION}.pc:Source/JavaScriptCore/javascriptcoregtk.pc.in
1507 ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
1511 if test "$enable_webkit2" = "yes"; then
1513 DerivedSources/WebKit2/webkit2gtk/webkit2/WebKitVersion.h:Source/WebKit2/UIProcess/API/gtk/WebKitVersion.h.in
1517 Source/WebKit2/webkit2gtk-${WEBKITGTK_API_VERSION}.pc:Source/WebKit2/webkit2gtk.pc.in
1519 ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
1526 WebKit was configured with the following options:
1528 Build configuration:
1529 Enable debugging (slow) : $enable_debug
1530 Compile with debug symbols (slow) : $enable_debug_symbols
1531 Enable debug features (slow) : $enable_debug_features
1532 Enable GCC build optimization : $enable_optimizations
1533 Code coverage support : $enable_coverage
1534 Unicode backend : $with_unicode_backend
1535 Font backend : $with_font_backend
1536 Optimized memory allocator : $enable_fast_malloc
1537 Accelerated rendering backend : $with_acceleration_backend
1541 WebGL : $enable_webgl
1542 Accelerated Compositing : $enable_accelerated_compositing
1543 Animation API : $enable_animation_api
1544 Blob support : $enable_blob
1545 Color input support : $enable_input_type_color
1546 CSS3 Flexbox support : $enable_css3_flexbox
1547 CSS box-decoration-break support : $enable_css_box_decoration_break
1548 CSS Exclusions support : $enable_css_exclusions
1549 CSS Regions support : $enable_css_regions
1550 CSS Filters support : $enable_css_filters
1551 DeviceOrientation support : $enable_device_orientation
1552 Directory upload : $enable_directory_upload
1553 DOM mutation observer support : $enable_mutation_observers
1554 Fast Mobile Scrolling : $enable_fast_mobile_scrolling
1555 Filters support : $enable_filters
1556 Fullscreen API support : $enable_fullscreen_api
1557 Gamepad support : $enable_gamepad
1558 Geolocation support : $enable_geolocation
1559 HTML5 channel messaging support : $enable_channel_messaging
1560 HTML5 data transfer items support : $enable_data_transfer_items
1561 HTML5 FileSystem API support : $enable_file_system
1562 HTML5 iframe seamless attribute support : $enable_iframe_seamless
1563 HTML5 meter element support : $enable_meter_tag
1564 HTML5 microdata support : $enable_microdata
1565 HTML5 progress element support : $enable_progress_tag
1566 HTML5 track element support : $enable_video_track
1567 HTML5 video element support : $enable_video
1568 Icon database support : $enable_icon_database
1569 JavaScript debugger/profiler support : $enable_javascript_debugger
1570 JIT compilation : $enable_jit
1571 Legacy WebKitBlobBuilder support : $enable_legacy_webkit_blob_builder
1572 Link prefetch support : $enable_link_prefetch
1573 MathML support : $enable_mathml
1574 Media source : $enable_media_source
1575 Media statistics : $enable_media_statistics
1576 Media stream support : $enable_media_stream
1577 MHTML support : $enable_mhtml
1578 Opcode stats : $enable_opcode_stats
1579 Page Visibility API support : $enable_page_visibility_api
1580 Quota API support : $enable_quota
1581 Register Protocol Handler support : $enable_register_protocol_handler
1582 RequestAnimationFrame support : $enable_request_animation_frame
1583 Scripted speech support : $enable_scripted_speech
1584 Shadow DOM support : $enable_shadow_dom
1585 SharedWorkers support : $enable_shared_workers
1586 Speech input support : $enable_input_speech
1587 Spellcheck support : $enable_spellcheck
1588 SQL client-side database storage support : $enable_sql_database
1589 SVG fonts support : $enable_svg_fonts
1590 SVG support : $enable_svg
1591 Text Autosizing support : $enable_text_autosizing
1592 Touch Icon Loading support : $enable_touch_icon_loading
1593 Web Audio support : $enable_web_audio
1594 WebGL : $enable_webgl
1595 Web Sockets support : $enable_web_sockets
1596 Web Timing support : $enable_web_timing
1597 Web Workers support : $enable_workers
1598 XSLT support : $enable_xslt
1601 WebKit2 support : $enable_webkit2
1602 WebKit2 plugin process : $enable_plugin_process
1605 GTK+ version : $with_gtk
1606 GDK target : $with_target
1607 GStreamer version : $with_gstreamer
1608 Introspection support : $enable_introspection
1609 Generate documentation : $enable_gtk_doc
1611 if test "$with_unicode_backend" = "glib"; then
1612 echo " >> WARNING: the glib-based unicode backend is slow and incomplete <<"