3 m4_define([webkit_major_version], [1])
4 m4_define([webkit_minor_version], [7])
5 m4_define([webkit_micro_version], [3])
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], [535])
12 m4_define([webkit_user_agent_minor_version], [14])
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=11:3:11
39 AC_SUBST([LIBWEBKITGTK_VERSION])
41 AM_INIT_AUTOMAKE([foreign subdir-objects dist-xz no-dist-gzip tar-ustar])
43 # Use AM_SILENT_RULES if present
44 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
46 # host checking - inspired by the GTK+ configure.in
47 # TODO: move these to webkit.m4?
48 AC_MSG_CHECKING([for native Win32])
57 AC_MSG_RESULT([$os_win32])
72 gnu* | linux* | k*bsd*-gnu)
80 # initialize webkit options
85 # use dolt to speedup the build
88 AC_PATH_PROG(FLEX, flex)
89 if test -z "$FLEX"; then
90 AC_MSG_ERROR([You need the 'flex' lexer generator to compile WebKit])
92 FLEX_VERSION=`$FLEX --version | sed 's,.*\ \([0-9]*\.[0-9]*\.[0-9]*\)$,\1,'`
93 AX_COMPARE_VERSION([2.5.33],[gt],[$FLEX_VERSION],
94 AC_MSG_WARN([You need at least version 2.5.33 of the 'flex' lexer generator to compile WebKit correctly]))
97 AC_PATH_PROG(GPERF, gperf)
98 if test -z "$GPERF"; then
99 AC_MSG_ERROR([You need the 'gperf' hash function generator to compile WebKit])
102 # Disable C++0x compat warnings for GCC >= 4.6.0 until we build
105 TMPCXXFLAGS=$CXXFLAGS
106 CXXFLAGS="-Wall -Werror"
107 AC_MSG_CHECKING([if we have to disable C++0x compat warnings for GCC >= 4.6.0])
112 extern std::nullptr_t nullptr;
114 CXXFLAGS="$TMPCXXFLAGS", CXXFLAGS="$TMPCXXFLAGS -Wno-c++0x-compat")
117 # pthread (not needed on Windows)
118 if test "$os_win32" = "no"; then
119 AC_CHECK_HEADERS([pthread.h],
120 AC_DEFINE([HAVE_PTHREAD_H],[1],[Define if pthread exists])
121 AC_DEFINE([WTF_USE_PTHREADS],[1],[Use pthreads]),
122 AC_MSG_ERROR([pthread support is required to build WebKit]))
123 AC_CHECK_LIB(pthread, pthread_rwlock_init,
124 AC_DEFINE([HAVE_PTHREAD_RWLOCK],[1],[Define if pthread rwlock is present]),
125 AC_MSG_WARN([pthread rwlock support is not available]))
128 # check for libjpeg the way Gtk does it.
129 AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
130 jpeg_ok=yes, jpeg_ok=no
131 AC_MSG_ERROR([JPEG library (libjpeg) not found]))
132 if test "$jpeg_ok" = yes; then
133 AC_MSG_CHECKING([for jpeglib])
139 #include <jpeglib.h>],
142 AC_MSG_RESULT($jpeg_ok)
143 if test "$jpeg_ok" = yes; then
145 # should we check for progressive JPEG like GTK+ as well?
147 AC_MSG_ERROR([JPEG library (libjpeg) not found])
150 AC_SUBST([JPEG_LIBS])
152 # Check for libpng the way Gtk+ does it
153 for l in libpng libpng14 libpng12; do
154 AC_MSG_CHECKING(for $l)
155 if $PKG_CONFIG --exists $l ; then
157 PNG_LIBS=`$PKG_CONFIG --libs $l`
165 if test "$png_ok" != yes; then
166 AC_CHECK_LIB(png, png_read_info,
167 [AC_CHECK_HEADER(png.h,
170 AC_MSG_ERROR([PNG library (libpng) not found]), -lz -lm)
171 if test "$png_ok" = yes; then
172 AC_MSG_CHECKING([for png_structp in png.h])
173 AC_TRY_COMPILE([#include <png.h>],
174 [png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;],
177 AC_MSG_RESULT($png_ok)
178 if test "$png_ok" = yes; then
181 AC_MSG_ERROR([PNG library (libpng) not found])
184 AC_MSG_ERROR([PNG library (libpng) not found])
190 if test "$os_win32" = "yes"; then
192 SHLWAPI_LIBS=-lshlwapi
195 AC_SUBST([WINMM_LIBS])
196 AC_SUBST([SHLWAPI_LIBS])
197 AC_SUBST([OLE32_LIBS])
200 # determine the GTK+ version to use
201 AC_MSG_CHECKING([the GTK+ version to use])
203 [AS_HELP_STRING([--with-gtk=2.0|3.0], [the GTK+ version to use (default: 3.0)])],
206 *) AC_MSG_ERROR([invalid GTK+ version specified]) ;;
209 AC_MSG_RESULT([$with_gtk])
211 GTK2_REQUIRED_VERSION=2.10
212 GAIL2_REQUIRED_VERSION=1.8
213 GTK3_REQUIRED_VERSION=3.0
214 GAIL3_REQUIRED_VERSION=3.0
217 2.0) GTK_REQUIRED_VERSION=$GTK2_REQUIRED_VERSION
219 WEBKITGTK_API_MAJOR_VERSION=1
220 WEBKITGTK_API_MINOR_VERSION=0
221 WEBKITGTK_API_VERSION=1.0
222 WEBKITGTK_PC_NAME=webkit
224 GAIL_REQUIRED_VERSION=$GAIL2_REQUIRED_VERSION
226 3.0) GTK_REQUIRED_VERSION=$GTK3_REQUIRED_VERSION
228 WEBKITGTK_API_MAJOR_VERSION=3
229 WEBKITGTK_API_MINOR_VERSION=0
230 WEBKITGTK_API_VERSION=3.0
231 WEBKITGTK_PC_NAME=webkitgtk
232 GAIL_PC_NAME=gail-3.0
233 GAIL_REQUIRED_VERSION=$GAIL3_REQUIRED_VERSION
237 AC_SUBST([WEBKITGTK_API_MAJOR_VERSION])
238 AC_SUBST([WEBKITGTK_API_MINOR_VERSION])
239 AC_SUBST([WEBKITGTK_API_VERSION])
240 AC_SUBST([WEBKITGTK_PC_NAME])
241 AC_SUBST([GTK_API_VERSION])
242 AM_CONDITIONAL([GTK_API_VERSION_2],[test "$GTK_API_VERSION" = "2.0"])
244 # determine the GDK/GTK+ target
245 AC_MSG_CHECKING([the target windowing system])
247 AC_HELP_STRING([--with-target=@<:@x11/win32/quartz/directfb@:>@],
248 [Select webkit target [default=x11]]),
249 [],[with_target="x11"])
251 case "$with_target" in
252 x11|win32|quartz|directfb) ;;
253 *) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;;
256 AC_MSG_RESULT([$with_target])
258 AC_MSG_CHECKING([for Hildon UI extensions])
260 AC_HELP_STRING([--with-hildon],
261 [Use Hildon UI extensions [default=no]]),
262 [],[with_hildon="no"])
263 AC_MSG_RESULT([$with_hildon])
265 if test "$with_hildon" = "yes"; then
266 HILDON_CPPFLAGS="-DMAEMO_CHANGES"
267 PKG_CHECK_MODULES([HILDON], [hildon-1])
268 AC_SUBST([HILDON_CPPFLAGS])
269 AC_SUBST([HILDON_CFLAGS])
270 AC_SUBST([HILDON_LIBS])
273 # determine the efl target
274 AC_MSG_CHECKING([the efl target to build])
275 AC_ARG_WITH(efl_target,
276 AC_HELP_STRING([--with-efl-target=@<:@arm/i386@:>@],
277 [Select Network backend [default=arm]]),
278 [],[with_efl_target="arm"])
279 case "$with_efl_target" in
281 *) AC_MSG_ERROR([Invalid efl target: must be arm, i386.]) ;;
283 AC_MSG_RESULT([$with_efl_target])
285 # check whether to enable SLP multimedia player
286 AC_MSG_CHECKING([whether to enable multimedia player support])
287 AC_ARG_ENABLE(mm-player,
288 AC_HELP_STRING([--enable-mm-player],
289 [enable multimedia player support [default=yes]]),
290 [],[enable_mm_player="yes"])
291 AC_MSG_RESULT([$enable_mm_player])
293 # determine the http backend
294 AC_MSG_CHECKING([the HTTP backend to use])
295 AC_ARG_WITH(http_backend,
296 AC_HELP_STRING([--with-http-backend=@<:@curl/soup@:>@],
297 [Select HTTP backend [default=soup]]),
298 [],[with_http_backend="soup"])
299 case "$with_http_backend" in
301 *) AC_MSG_ERROR([Invalid HTTP backend: must be curl, soup.]) ;;
303 AC_MSG_RESULT([$with_http_backend])
305 # check whether to enable enchant support
306 AC_MSG_CHECKING([whether to enable enchant support])
307 AC_ARG_ENABLE(enchant,
308 AC_HELP_STRING([--enable-enchant],
309 [enable support for enchant [default=no]]), [],[enable_enchant="no"])
310 AC_MSG_RESULT([$enable_enchant])
312 if test "$enable_enchant" = "yes"; then
313 PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED_VERSION)
314 AC_SUBST(ENCHANT_CFLAGS)
315 AC_SUBST(ENCHANT_LIBS)
318 # minimum base dependencies
319 LIBSOUP_REQUIRED_VERSION=2.37.2.1
320 CAIRO_REQUIRED_VERSION=1.10
321 FONTCONFIG_REQUIRED_VERSION=2.4
322 FREETYPE2_REQUIRED_VERSION=9.0
323 LIBXML_REQUIRED_VERSION=2.6
325 # minimum GTK+ base dependencies
326 PANGO_REQUIRED_VERSION=1.12
329 LIBXSLT_REQUIRED_VERSION=1.1.7
330 SQLITE_REQUIRED_VERSION=3.0
331 GSTREAMER_REQUIRED_VERSION=0.10
332 GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION=0.10.30
333 ENCHANT_REQUIRED_VERSION=0.22
334 LIBFFTW_REQUIRED_VERSION=3.2.2
335 CLUTTER_REQUIRED_VERSION=1.8.2
336 CLUTTER_GTK_REQUIRED_VERSION=1.0.2
340 # glib - glib and includes gthread
341 # unicode - check and identify which unicode backend to use
344 WEBKIT_CHECK_DEPENDENCIES([glib unicode])
346 GETTEXT_PACKAGE=$PACKAGE-$GTK_API_VERSION
347 AC_SUBST(GETTEXT_PACKAGE)
348 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
349 [The gettext catalog name])
351 PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED_VERSION)
352 AC_SUBST(LIBXML_CFLAGS)
353 AC_SUBST(LIBXML_LIBS)
355 PKG_CHECK_MODULES(PANGO,
356 [pango >= $PANGO_REQUIRED_VERSION
358 AC_SUBST(PANGO_CFLAGS)
361 AC_MSG_CHECKING([whether to enable spellcheck support])
362 AC_ARG_ENABLE([spellcheck],
363 [AS_HELP_STRING([--enable-spellcheck],[enable support for spellcheck])],
364 [],[enable_spellcheck="yes"])
365 AC_MSG_RESULT([$enable_spellcheck])
367 if test "$enable_spellcheck" = "yes"; then
368 PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED_VERSION, [], [enable_spellcheck="no"])
369 AC_SUBST(ENCHANT_CFLAGS)
370 AC_SUBST(ENCHANT_LIBS)
373 PKG_CHECK_MODULES(GAIL, $GAIL_PC_NAME >= $GAIL_REQUIRED_VERSION)
374 AC_SUBST(GAIL_CFLAGS)
377 # check for target-specific dependencies
378 if test "$with_target" = "directfb"; then
379 PKG_CHECK_MODULES(CAIRO, cairo-directfb >= $CAIRO_REQUIRED_VERSION)
380 PKG_CHECK_MODULES(GTK, gtk+-directfb-2.0 >= $GTK_REQUIRED_VERSION)
381 AC_DEFINE([WTF_PLATFORM_DIRECTFB],[1],[Define if target is DirectFB])
383 PKG_CHECK_MODULES(CAIRO, cairo >= $CAIRO_REQUIRED_VERSION)
384 PKG_CHECK_MODULES(GTK, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED_VERSION)
386 if test "$with_target" = "x11" && test "$os_win32" = "no"; then
388 PKG_CHECK_MODULES([XT],
390 [xt_has_pkg_config=yes],
391 [xt_has_pkg_config=no])
392 # some old versions of Xt do not provide xt.pc, so try to link against Xt
393 # and if it's installed fall back to just adding -lXt
394 if test "$xt_has_pkg_config" = "no"; then
395 # using AC_CHECK_LIB instead of AC_SEARCH_LIB is fine in this case as
396 # we don't care about the XtOpenDisplay symbol but only about the
398 AC_CHECK_LIB([Xt], [XtOpenDisplay],
399 [XT_CFLAGS=""; XT_LIBS="-lXt"],
400 [AC_MSG_ERROR([X Toolkit Intrinsics library (libXt) not found])])
402 AC_SUBST([XT_CFLAGS])
404 AC_DEFINE([WTF_PLATFORM_X11],[1],[Define if target is X11])
407 if test "$with_port" = "efl"; then
408 AC_DEFINE([WTF_PLATFORM_CAIRO],[1],[Define if platform is Cairo])
413 AC_SUBST(CAIRO_CFLAGS)
416 if test "$with_port" = "efl"; then
417 # minimum EFL base dependencies
418 EINA_REQUIRED_VERSION=0.0.1
419 EVAS_REQUIRED_VERSION=0.1
420 ECORE_REQUIRED_VERSION=0.9
421 ECORE_EVAS_REQUIRED_VERSION=0.9
422 ECORE_X_REQUIRED_VERSION=0.9
423 EDJE_REQUIRED_VERSION=0.9.9.050
424 CAIRO_REQUIRED_VERSION=1.6
425 FONTCONFIG_REQUIRED_VERSION=2.4
426 FREETYPE2_REQUIRED_VERSION=9.0
427 GSTREAMER_REQUIRED_VERSION=0.10
429 LIBSOUP_REQUIRED_VERSION=2.28.2
430 LIBXSLT_REQUIRED_VERSION=1.1.7
431 SQLITE_REQUIRED_VERSION=3.0
433 WEBKIT_CHECK_DEPENDENCIES_MODULES="unicode"
437 AC_ARG_ENABLE(ecore_x,
440 [disable ecore_x specific support. [[default=enabled]]]
442 [ want_ecore_x=$enableval ]
445 if test "x$want_ecore_x" = "xyes" -o "x$want_ecore_x" = "xauto" ; then
446 # Check if really available
447 PKG_CHECK_MODULES(ECORE_X, [ecore-x >= $ECORE_X_REQUIRED_VERSION],
450 AC_DEFINE(HAVE_ECORE_X, 1, [have ecore_x specific support])
451 AC_SUBST([ECORE_X_CFLAGS])
452 AC_SUBST([ECORE_X_LIBS])
455 if test "x$want_ecore_x" = "xyes" -a "x$use_strict" = "xyes" ; then
456 AC_MSG_ERROR([Ecore_X not found (strict dependencies checking)])
461 PKG_CHECK_MODULES([EFLDEPS],
462 [eina >= $EINA_REQUIRED_VERSION
463 evas >= $EVAS_REQUIRED_VERSION
464 ecore >= $ECORE_REQUIRED_VERSION
465 ecore-file >= $ECORE_REQUIRED_VERSION
466 ecore-evas >= $ECORE_EVAS_REQUIRED_VERSION
467 edje >= $EDJE_REQUIRED_VERSION
468 cairo >= $CAIRO_REQUIRED_VERSION
471 AC_SUBST([EFLDEPS_CFLAGS])
472 AC_SUBST([EFLDEPS_LIBS])
475 # check whether to build with debugging enabled
476 AC_MSG_CHECKING([whether to do a debug build])
478 AC_HELP_STRING([--enable-debug],
479 [turn on debugging [default=no]]),
480 [],[enable_debug="no"])
481 AC_MSG_RESULT([$enable_debug])
483 # check whether to enable optimized builds
484 AC_MSG_CHECKING([whether to enable optimized builds])
485 AC_ARG_ENABLE(optimizations,
486 AC_HELP_STRING([--enable-optimizations],
487 [turn on optimize builds (GCC only)
489 [enable_optimizations=$enableval],
490 [if test "$enable_debug" = "yes"; then enable_optimizations="no"; else enable_optimizations="yes"; fi])
491 AC_MSG_RESULT([$enable_optimizations])
493 # check whether to enable 3D rendering support
494 AC_MSG_CHECKING([whether to enable support for 3D Rendering])
495 AC_ARG_ENABLE(3d_rendering,
496 AC_HELP_STRING([--enable-3d-rendering],
497 [enable support for 3D Rendering (experimental) [default=no]]),
498 [],[enable_3d_rendering="no"])
499 AC_MSG_RESULT([$enable_3d_rendering])
501 # check whether to enable WebGL support
502 AC_MSG_CHECKING([whether to enable WebGL support])
504 AC_HELP_STRING([--enable-webgl], [enable support for WebGL [default=yes]]),
505 [], [if test "$with_target" = "x11"; then enable_webgl="yes"; else enable_webgl="no"; fi])
506 AC_MSG_RESULT([$enable_webgl])
508 # check whether to enable accelerated compositing support
509 AC_MSG_CHECKING([whether to enable accelerated compositing support])
510 AC_ARG_WITH(accelerated_compositing,
511 AC_HELP_STRING([--with-accelerated-compositing=@<:@no/opengl/cairo/clutter@:>@],
512 [use accelerated compositing (experimental) [default=no]]),
513 [], [with_accelerated_compositing="no"])
514 AC_MSG_RESULT([$with_accelerated_compositing])
516 if test "$enable_webgl" = "yes" || test "$with_accelerated_compositing" = "opengl" ; then
517 AC_CHECK_HEADERS([GL/gl.h], [], AC_MSG_ERROR([OpenGL header not found]))
518 AC_CHECK_HEADERS([GL/glx.h], [], AC_MSG_ERROR([GLX header not found]))
519 OPENGL_LIBS="-lGL -ldl"
521 AC_SUBST([OPENGL_LIBS])
523 # check whether to enable channel messaging support
524 AC_MSG_CHECKING([whether to enable HTML5 Channel Messaging support])
525 AC_ARG_ENABLE(channel_messaging,
526 AC_HELP_STRING([--enable-channel-messaging],
527 [enable HTML5 channel messaging support [default=yes]]),
528 [],[enable_channel_messaging="yes"])
529 AC_MSG_RESULT([$enable_channel_messaging])
531 # check whether to enable notifications
532 AC_MSG_CHECKING([whether to enable notifications])
533 AC_ARG_ENABLE(notifications,
534 AC_HELP_STRING([--enable-notifications],
535 [enable notifications [default=no]]),
536 [],[enable_notifications="no"])
537 AC_MSG_RESULT([$enable_notifications])
539 # check whether to enable the meter tag
540 AC_MSG_CHECKING([whether to enable HTML5 meter tag])
541 AC_ARG_ENABLE(meter_tag,
542 AC_HELP_STRING([--enable-meter-tag],
543 [enable HTML5 meter [default=yes]]),
544 [],[enable_meter_tag="yes"])
545 AC_MSG_RESULT([$enable_meter_tag])
547 # check whether to enable HTML5 Microdata support
548 AC_MSG_CHECKING([whether to enable HTML5 Microdata support])
549 AC_ARG_ENABLE(microdata,
550 AC_HELP_STRING([--enable-microdata],
551 [enable HTML5 microdata support [default=no]]),
552 [],[enable_microdata="no"])
553 AC_MSG_RESULT([$enable_microdata])
555 # check whether to enable page visibility API.
556 AC_MSG_CHECKING([whether to enable Page Visibility API support])
557 AC_ARG_ENABLE(page_visibility_api,
558 AC_HELP_STRING([--enable-page-visibility-api],
559 [enable page visibility api[default=no]]),
560 [],[enable_page_visibility_api="no"])
561 AC_MSG_RESULT([$enable_page_visibility_api])
563 # check whether to enable the progress tag
564 AC_MSG_CHECKING([whether to enable HTML5 progress tag])
565 AC_ARG_ENABLE(progress_tag,
566 AC_HELP_STRING([--enable-progress-tag],
567 [enable HTML5 progress [default=yes]]),
568 [],[enable_progress_tag="yes"])
569 AC_MSG_RESULT([$enable_progress_tag])
571 # check whether to enable JavaScript debugger/profiler support
572 AC_MSG_CHECKING([whether to enable JavaScript debugger/profiler support])
573 AC_ARG_ENABLE(javascript_debugger,
574 AC_HELP_STRING([--enable-javascript-debugger],
575 [enable JavaScript debugger/profiler support [default=yes]]),
576 [],[enable_javascript_debugger="yes"])
577 AC_MSG_RESULT([$enable_javascript_debugger])
579 # check whether to enable Gamepad support
580 AC_MSG_CHECKING([whether to enable Gamepad support])
581 AC_ARG_ENABLE(gamepad,
582 AC_HELP_STRING([--enable-gamepad],
583 [enable Gamepad support [default=no]]),
584 [],[enable_gamepad="no"])
585 AC_MSG_RESULT([$enable_gamepad])
587 # check whether to build with datagrid support
588 AC_MSG_CHECKING([whether to enable HTML5 datagrid support])
589 AC_ARG_ENABLE(datagrid,
590 AC_HELP_STRING([--enable-datagrid],
591 [enable HTML5 datagrid support [default=no]]),
592 [],[enable_datagrid="no"])
593 AC_MSG_RESULT([$enable_datagrid])
595 # check whether to build with data transfer items support
596 AC_MSG_CHECKING([whether to enable HTML5 data transfer items support])
597 AC_ARG_ENABLE(data_transfer_items,
598 AC_HELP_STRING([--enable-data-transfer-items],
599 [enable HTML5 data transfer items support [default=no]]),
600 [],[enable_data_transfer_items="no"])
601 AC_MSG_RESULT([$enable_data_transfer_items])
603 # check whether to enable DOM mutation observer support
604 AC_MSG_CHECKING([whether to enable DOM mutation observer support])
605 AC_ARG_ENABLE(mutation_observers,
606 AC_HELP_STRING([--enable-mutation-observers],
607 [enable DOM mutation observer support [default=no]]),
608 [],[enable_mutation_observers="no"])
609 AC_MSG_RESULT([$enable_mutation_observers])
611 # check whether to enable HTML5 client-side session and persitent storage support
612 AC_MSG_CHECKING([whether to enable HTML5 client-side session and persistent storage support])
613 AC_ARG_ENABLE(dom_storage,
614 AC_HELP_STRING([--enable-dom-storage],
615 [enable HTML5 client-side session and persistent storage support [default=yes]]),
616 [],[enable_dom_storage="yes"])
617 AC_MSG_RESULT([$enable_dom_storage])
619 # check whether to enable the indexed database API
620 AC_MSG_CHECKING([whether to enable the indexed database API])
621 AC_ARG_ENABLE(indexed_database,
622 AC_HELP_STRING([--enable-indexed-database],
623 [enable the indexed database API [default=no]]),
624 [],[enable_indexed_database="no"])
625 AC_MSG_RESULT([$enable_indexed_database])
627 # check whether to enable the color input
628 AC_MSG_CHECKING([whether to enable the color input])
629 AC_ARG_ENABLE(input_color,
630 AC_HELP_STRING([--enable-input-color],
631 [enable the color input [default=no]]),
632 [],[enable_input_color="no"])
633 AC_MSG_RESULT([$enable_input_color])
635 # check whether to enable the speech input API
636 AC_MSG_CHECKING([whether to enable the speech input API])
637 AC_ARG_ENABLE(input_speech,
638 AC_HELP_STRING([--enable-input-speech],
639 [enable the speech input API [default=no]]),
640 [],[enable_input_speech="no"])
641 AC_MSG_RESULT([$enable_input_speech])
643 # check whether to build with SQL database support
644 AC_MSG_CHECKING([whether to enable SQL client-side database storage support])
645 AC_ARG_ENABLE(sql_database,
646 AC_HELP_STRING([--enable-sql-database],
647 [enable SQL client-side database storage support [default=yes]]),
648 [],[enable_sql_database="yes"])
649 AC_MSG_RESULT([$enable_sql_database])
651 # check whether to build with icon database support
652 AC_MSG_CHECKING([whether to enable icon database support])
653 AC_ARG_ENABLE(icon_database,
654 AC_HELP_STRING([--enable-icon-database],
655 [enable icon database [default=yes]]),
656 [],[enable_icon_database="yes"])
657 AC_MSG_RESULT([$enable_icon_database])
659 # check whether to build with image resizer API support
660 AC_MSG_CHECKING([whether to enable image resizer API support])
661 AC_ARG_ENABLE(image_resizer,
662 AC_HELP_STRING([--enable-image-resizer],
663 [enable image resizer [default=no]]),
664 [],[enable_image_resizer="no"])
665 AC_MSG_RESULT([$enable_image_resizer])
667 # check whether to enable HTML5 datalist support
668 AC_MSG_CHECKING([whether to enable HTML5 datalist support])
669 AC_ARG_ENABLE(datalist,
670 AC_HELP_STRING([--enable-datalist],
671 [enable HTML5 datalist support [default=yes]]),
672 [],[enable_datalist="yes"])
673 AC_MSG_RESULT([$enable_datalist])
675 # check whether to enable HTML5 sandbox iframe support
676 AC_MSG_CHECKING([whether to enable HTML5 sandboxed iframe support])
677 AC_ARG_ENABLE(sandbox,
678 AC_HELP_STRING([--enable-sandbox],
679 [enable HTML5 sandboxed iframe support [default=yes]]),
680 [],[enable_sandbox="yes"])
681 AC_MSG_RESULT([$enable_sandbox])
683 # check whether to enable HTML5 audio/video support
684 AC_MSG_CHECKING([whether to enable HTML5 video support])
686 AC_HELP_STRING([--enable-video],
687 [enable HTML5 video support [default=yes]]),
688 [],[enable_video="yes"])
689 AC_MSG_RESULT([$enable_video])
691 # turn off video features if --disable-video is requested
692 if test "$enable_video" = "no"; then
693 enable_video_track=no
696 # check whether to enable HTML5 video track support
697 AC_MSG_CHECKING([whether to enable HTML5 video track support])
698 AC_ARG_ENABLE(video_track,
699 AC_HELP_STRING([--enable-video-track],
700 [enable HTML5 video track support [default=no]]),
701 [],[enable_video_track="no"])
702 AC_MSG_RESULT([$enable_video_track])
704 # check whether to enable media source support
705 AC_MSG_CHECKING([whether to enable media source support])
706 AC_ARG_ENABLE(media_source,
707 AC_HELP_STRING([--enable-media-source],
708 [enable support for media source [default=no]]),
709 [], [enable_media_source="no"])
710 AC_MSG_RESULT([$enable_media_source])
712 # check whether to enable media statistics support
713 AC_MSG_CHECKING([whether to enable media statistics support])
714 AC_ARG_ENABLE(media_statistics,
715 AC_HELP_STRING([--enable-media-statistics],
716 [enable support for media statistics [default=no]]),
717 [], [enable_media_statistics="no"])
718 AC_MSG_RESULT([$enable_media_statistics])
720 # check whether to enable Javascript Fullscreen API support
721 AC_MSG_CHECKING([whether to enable Fullscreen API support])
722 AC_ARG_ENABLE(fullscreen_api,
723 AC_HELP_STRING([--enable-fullscreen-api],
724 [enable the Fullscreen API support [default=yes]]),
725 [],[enable_fullscreen_api="yes"])
726 AC_MSG_RESULT([$enable_fullscreen_api])
728 # check whether to enable media stream support
729 AC_MSG_CHECKING([whether to enable media stream support])
730 AC_ARG_ENABLE(media_stream,
731 AC_HELP_STRING([--enable-media-stream],
732 [enable media stream support (incomplete) [default=no]]),
733 [],[enable_media_stream="no"])
734 AC_MSG_RESULT([$enable_media_stream])
736 # check whether to enable XSLT support
737 AC_MSG_CHECKING([whether to enable XSLT support])
739 AC_HELP_STRING([--enable-xslt],
740 [enable support for XSLT [default=yes]]),
741 [],[enable_xslt="yes"])
742 AC_MSG_RESULT([$enable_xslt])
744 # check whether to enable geolocation support
745 AC_MSG_CHECKING([whether to enable geolocation support])
746 AC_ARG_ENABLE(geolocation,
747 AC_HELP_STRING([--enable-geolocation],
748 [enable support for geolocation [default=no]]),
749 [],[enable_geolocation="no"])
750 AC_MSG_RESULT([$enable_geolocation])
752 # check whether to enable MathML support
753 AC_MSG_CHECKING([whether to enable MathML support])
754 AC_ARG_ENABLE(mathml,
755 AC_HELP_STRING([--enable-mathml],
756 [enable support for MathML [default=no]]),
757 [],[enable_mathml="no"])
758 AC_MSG_RESULT([$enable_mathml])
760 # check whether to enable SVG support
761 AC_MSG_CHECKING([whether to enable SVG support])
763 AC_HELP_STRING([--enable-svg],
764 [enable support for SVG [default=yes]]),
765 [],[enable_svg="yes"])
766 AC_MSG_RESULT([$enable_svg])
768 # check whether to enable SharedWorkers support
769 AC_MSG_CHECKING([whether to enable SharedWorkers support])
770 AC_ARG_ENABLE(shared_workers,
771 AC_HELP_STRING([--enable-shared-workers],
772 [enable support for SharedWorkers [default=yes]]),
773 [],[enable_shared_workers="yes"])
774 AC_MSG_RESULT([$enable_shared_workers])
776 # check whether to enable Web Workers support
777 AC_MSG_CHECKING([whether to enable Web Workers support])
778 AC_ARG_ENABLE(workers,
779 AC_HELP_STRING([--enable-workers],
780 [enable support for Web Workers [default=yes]]),
781 [],[enable_workers="yes"])
782 AC_MSG_RESULT([$enable_workers])
784 # check whether to enable directory upload support
785 AC_MSG_CHECKING([whether to enable directory upload support])
786 AC_ARG_ENABLE(directory_upload,
787 AC_HELP_STRING([--enable-directory-upload],
788 [enable support for directory upload [default=no]]),
789 [], [enable_directory_upload="no"])
790 AC_MSG_RESULT([$enable_directory_upload])
792 # check whether to enable HTML5 FileSystem API support
793 AC_MSG_CHECKING([whether to enable HTML5 FileSystem API support])
794 AC_ARG_ENABLE(file_system,
795 AC_HELP_STRING([--enable-file-system],
796 [enable support for HTML5 FileSystem API [default=no]]),
797 [], [enable_file_system="no"])
798 AC_MSG_RESULT([$enable_file_system])
800 # check whether to enable HTML5 <style scoped> support
801 AC_MSG_CHECKING([whether to enable HTML5 <style scoped> support])
802 AC_ARG_ENABLE(file_system,
803 AC_HELP_STRING([--enable-style-scoped],
804 [enable support for HTML5 <style scoped> [default=no]]),
805 [], [enable_style_scoped="no"])
806 AC_MSG_RESULT([$enable_style_scoped])
808 # check whether to enable Quota API support
809 AC_MSG_CHECKING([whether to enable Quota API support])
811 AC_HELP_STRING([--enable-quota],
812 [enable support for Quota API [default=no]]),
813 [], [enable_quota="no"])
814 AC_MSG_RESULT([$enable_quota])
816 # turn off svg features if --disable-svg is requested
817 if test "$enable_svg" = "no"; then
821 # check whether to enable support for filters
822 AC_MSG_CHECKING([whether to enable support for filters])
823 AC_ARG_ENABLE(filters,
824 AC_HELP_STRING([--enable-filters],
825 [enable support for filters (experimental) [default=yes]]),
826 [],[enable_filters="yes"])
827 AC_MSG_RESULT([$enable_filters])
829 # check whether to enable support for SVG fonts
830 AC_MSG_CHECKING([whether to enable support for SVG fonts])
831 AC_ARG_ENABLE(svg_fonts,
832 AC_HELP_STRING([--enable-svg-fonts],
833 [enable support for SVG fonts (experimental) [default=yes]]),
834 [],[enable_svg_fonts="yes"])
835 AC_MSG_RESULT([$enable_svg_fonts])
837 # check for SVG features, enabling SVG if necessary
838 if test "$enable_svg_fonts" = "yes"; then
840 if test "$enable_svg" = "no"; then
841 AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support])
846 # check whether to enable Web Socket support
847 AC_MSG_CHECKING([whether to enable Web Sockets support])
848 AC_ARG_ENABLE(web_sockets,
849 AC_HELP_STRING([--enable-web-sockets],
850 [enable support for Web Sockets [default=yes]]),
851 [],[enable_web_sockets="yes"])
852 AC_MSG_RESULT([$enable_web_sockets])
854 # check whether to enable Web Audio support
856 AC_MSG_RESULT([$enable_web_audio])
858 # check whether to enable Web Timing support
859 AC_MSG_CHECKING([whether to enable Web Timing support])
860 AC_ARG_ENABLE(web_timing,
861 AC_HELP_STRING([--enable-web-timing],
862 [enable support for Web Timing [default=no]]),
863 [],[enable_web_timing="no"])
864 AC_MSG_RESULT([$enable_web_timing])
866 # check whether to enable Blob support
867 AC_MSG_CHECKING([whether to enable Blob support])
869 AC_HELP_STRING([--enable-blob],
870 [enable support for Blob [default=yes]]),
871 [],[enable_blob="yes"])
872 AC_MSG_RESULT([$enable_blob])
874 # check whether to enable Fast Mobile Scrolling support
875 AC_MSG_CHECKING([whether to enable Fast Mobile Scrolling])
876 AC_ARG_ENABLE(fast_mobile_scrolling,
877 AC_HELP_STRING([--enable-fast-mobile-scrolling],
878 [enable support for Fast Mobile Scrolling [default=no]]),
879 [],[enable_fast_mobile_scrolling="no"])
880 AC_MSG_RESULT([$enable_fast_mobile_scrolling])
882 # check whether to enable code coverage
883 AC_MSG_CHECKING([whether to enable code coverage support])
884 AC_ARG_ENABLE(coverage,
885 AC_HELP_STRING([--enable-coverage],
886 [enable code coverage support [default=no]]),
887 [],[enable_coverage="no"])
888 AC_MSG_RESULT([$enable_coverage])
890 # check whether to enable FastMalloc
891 AC_MSG_CHECKING([whether to enable optimized memory allocator])
892 AC_ARG_ENABLE(fast_malloc,
893 AC_HELP_STRING([--enable-fast-malloc],
894 [enable optimized memory allocator default=yes, default=no for debug builds]),
895 [],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi])
896 AC_MSG_RESULT([$enable_fast_malloc])
898 # check whether to enable debug symbols
899 AC_MSG_CHECKING([whether to enable debug symbols])
900 AC_ARG_ENABLE(debug_symbols,
901 AC_HELP_STRING([--enable-debug-symbols],
902 [enable debug symbols default=no, default=yes for debug builds]),
903 [],[if test "$enable_debug" = "yes"; then enable_debug_symbols="yes"; else enable_debug_symbols="no"; fi])
904 AC_MSG_RESULT([$enable_debug_symbols])
906 # check whether to enable debug features
907 AC_MSG_CHECKING([whether to enable debug features])
908 AC_ARG_ENABLE(debug_features,
909 AC_HELP_STRING([--enable-debug-features],
910 [enable debug features default=no, default=yes for debug builds]),
911 [],[if test "$enable_debug" = "yes"; then enable_debug_features="yes"; else enable_debug_features="no"; fi])
912 AC_MSG_RESULT([$enable_debug_features])
914 # Determine JavaScript engine to use.
915 AC_MSG_CHECKING([Javascript engine])
916 AC_ARG_WITH(jsengine,
917 AC_HELP_STRING([--with-jsengine=@<:@jsc@:>@],
918 [Select Javascript engine [default=jsc]]),
919 [],[with_jsengine="jsc"])
921 case "$with_jsengine" in
923 *) AC_MSG_ERROR([Invalid JS engine: Must be jsc]) ;;
925 AC_MSG_RESULT([$with_jsengine])
927 AC_MSG_CHECKING([whether to enable JIT compilation])
929 AS_HELP_STRING([--enable-jit],
930 [Enable JIT compilation (default: autodetect)]))
931 case "$enable_jit" in
932 yes) JSC_CPPFLAGS="-DENABLE_JIT=1" ;;
933 no) JSC_CPPFLAGS="-DENABLE_JIT=0" ;;
934 *) enable_jit="autodetect" ;;
936 AC_SUBST(JSC_CPPFLAGS)
937 AC_MSG_RESULT([$enable_jit])
940 AC_MSG_CHECKING([whether to enable opcode stats])
941 AC_ARG_ENABLE([opcode-stats],
942 [AS_HELP_STRING([--enable-opcode-stats], [Enable Opcode statistics (default: disabled)])],
943 [], [enable_opcode_stats=no])
944 AC_MSG_RESULT([$enable_opcode_stats])
946 if test "$enable_opcode_stats" = "yes"; then
947 if test "$enable_jit" = "yes"; then
948 AC_MSG_ERROR([JIT must be disabled for Opcode stats to work.])
950 AC_DEFINE([ENABLE_OPCODE_STATS], [1], [Define to enable Opcode statistics])
953 if test "$with_http_backend" = "curl"; then
954 PKG_CHECK_MODULES(LIBCURL, libcurl)
955 AC_SUBST([LIBCURL_CFLAGS])
956 AC_SUBST([LIBCURL_LIBS])
959 if test "$with_http_backend" = "soup"; then
960 PKG_CHECK_MODULES([LIBSOUP],
961 [libsoup-2.4 >= $LIBSOUP_REQUIRED_VERSION])
962 AC_SUBST([LIBSOUP_CFLAGS])
963 AC_SUBST([LIBSOUP_LIBS])
967 AC_MSG_CHECKING([whether to enable link prefetch support])
968 AC_ARG_ENABLE([link-prefetch],
969 [AS_HELP_STRING([--enable-link-prefetch], [Enable Link prefetch support (default: disabled)])],
970 [],[enable_link_prefetch=no])
971 AC_MSG_RESULT([$enable_link_prefetch])
973 if test "$enable_link_prefetch" = "yes"; then
974 AC_DEFINE([ENABLE_LINK_PREFETCH], [1], [Define to enable link prefetch support])
977 # GObject Introspection
978 AC_MSG_CHECKING([whether to enable GObject introspection support])
979 AC_ARG_ENABLE([introspection],
980 [AS_HELP_STRING([--enable-introspection],[Enable GObject introspection (default: disabled)])],
981 [],[enable_introspection=no])
982 AC_MSG_RESULT([$enable_introspection])
984 # check whether to enable animation API
985 AC_MSG_CHECKING([whether to enable Animation API support])
986 AC_ARG_ENABLE(animation_api,
987 AC_HELP_STRING([--enable-animation-api],
988 [enable support for Animation API (experimental) [default=no]]),
989 [], [enable_animation_api="no"])
990 AC_MSG_RESULT([$enable_animation_api])
992 # check whether to enable requestAnimationFrame support
993 AC_MSG_CHECKING([whether to enable requestAnimationFrame support])
994 AC_ARG_ENABLE(request_animation_frame,
995 AC_HELP_STRING([--enable-request-animation-frame],
996 [enable support for requestAnimationFrame (experimental) [default=no]]),
997 [],[enable_request_animation_frame="no"])
998 AC_MSG_RESULT([$enable_request_animation_frame])
1000 # check whether to enable touch icon loading
1001 AC_MSG_CHECKING([whether to enable touch icon loading])
1002 AC_ARG_ENABLE(touch_icon_loading,
1003 AC_HELP_STRING([--enable-touch-icon-loading],
1004 [enable support for loading touch icons [default=no]]),
1005 [], [enable_touch_icon_loading="no"])
1006 AC_MSG_RESULT([$enable_touch_icon_loading])
1008 # check whether to enable Register Protocol Handler support
1009 AC_MSG_CHECKING([whether to enable Register Protocol Handler])
1010 AC_ARG_ENABLE(register_protocol_handler,
1011 AC_HELP_STRING([--enable-register-protocol-handler],
1012 [enable support for Register Protocol Handler (experimental) [default=no]]),
1013 [],[enable_register_protocol_handler="no"])
1014 AC_MSG_RESULT([$enable_register_protocol_handler])
1016 # check whether to enable DeviceOrientation support
1017 AC_MSG_CHECKING([whether to enable DeviceOrientation])
1018 AC_ARG_ENABLE(device_orientation,
1019 AC_HELP_STRING([--enable-device-orientation],
1020 [enable support for DeviceOrientation (experimental and incomplete) [default=no]]),
1021 [],[enable_device_orientation="no"])
1022 AC_MSG_RESULT([$enable_device_orientation])
1030 if test "$enable_introspection" = "yes"; then
1031 GOBJECT_INTROSPECTION_REQUIRED=0.9.5
1032 PKG_CHECK_MODULES([INTROSPECTION],[gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED])
1034 G_IR_SCANNER="$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)"
1035 G_IR_COMPILER="$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)"
1036 G_IR_GENERATE="$($PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0)"
1037 AC_DEFINE([ENABLE_INTROSPECTION],[1],[Define to enable GObject introspection support])
1040 AC_SUBST([G_IR_SCANNER])
1041 AC_SUBST([G_IR_COMPILER])
1042 AC_SUBST([G_IR_GENERATE])
1044 if test "$with_port" = "efl"; then
1045 # check whether to build with glib support
1046 AC_MSG_CHECKING([whether to enable Glib support (adds main loop integration when using EFL)])
1047 AC_ARG_ENABLE(glib_support,
1048 AC_HELP_STRING([--enable-glib-support],
1049 [enable Glib support [default=yes]]),
1050 [],[enable_glib_support="yes"])
1051 AC_MSG_RESULT([$enable_glib_support])
1053 # check for SVG features, enabling SVG if necessary
1054 if test "$enable_glib_support" = "no" && \
1055 test "$enable_video" = "yes"; then
1056 AC_MSG_ERROR([Video support requires glib-support. See --enable-glib-support configure option.])
1059 AC_MSG_CHECKING([whether to enable GTK plugins support (requires glib support)])
1060 AC_ARG_ENABLE(gtk_plugins_support,
1061 AC_HELP_STRING([--enable-gtk-plugins-support],
1062 [enable gtk plugins support [default=yes]]),
1063 [],[enable_gtk_plugins_support="auto"])
1064 AC_MSG_RESULT([$enable_gtk_plugins_support])
1066 if test "$enable_gtk_plugins_support" = "yes" -a "$enable_glib_support" = "no"; then
1067 AC_MSG_ERROR([required gtk plugins support, but no glib support.])
1070 if test "$enable_gtk_plugins_support" != "no"; then
1071 PKG_CHECK_MODULES(GTK, [gtk+-2.0], [has_gtk="yes"], [has_gtk="no"])
1072 AC_SUBST([GTK_CFLAGS])
1073 AC_SUBST([GTK_LIBS])
1076 if test "$enable_gtk_plugins_support" = "yes" -a "$has_gtk" = "no"; then
1077 AC_MSG_ERROR([required gtk plugins support but no gtk+-2.0 pkg-config found.])
1078 elif test "$enable_gtk_plugins_support" = "auto" -a "$has_gtk" = "yes"; then
1079 enable_gtk_plugins_support="yes"
1084 # determine the font backend
1085 AC_MSG_CHECKING([the font backend to use])
1086 AC_ARG_WITH(font_backend,
1087 AC_HELP_STRING([--with-font-backend=@<:@freetype/pango@:>@],
1088 [Select font backend [default=freetype]]),
1089 [],[with_font_backend="freetype"])
1091 case "$with_font_backend" in
1093 *) AC_MSG_ERROR([Invalid font backend: must be freetype or pango.]) ;;
1095 AC_MSG_RESULT([$with_font_backend])
1097 if test "$host_cpu" = "sh4"; then
1098 CXXFLAGS="$CXXFLAGS -mieee -w"
1099 CFLAGS="$CFLAGS -mieee -w"
1102 # Add '-g' flag to gcc to build with debug symbols
1103 if test "$enable_debug_symbols" = "yes"; then
1104 CXXFLAGS="$CXXFLAGS -g"
1108 if test "$enable_debug_features" = "no"; then
1109 AC_DEFINE([NDEBUG], [1], [Define to disable debugging features])
1112 # Add the appropriate 'O' level for optimized builds
1113 if test "$enable_optimizations" = "yes"; then
1114 CXXFLAGS="$CXXFLAGS -O2"
1115 CFLAGS="$CFLAGS -O2"
1117 CXXFLAGS="$CXXFLAGS -O0"
1118 CFLAGS="$CFLAGS -O0"
1122 # check if FreeType/FontConfig are available
1123 if test "$with_font_backend" = "freetype"; then
1124 if test "$with_target" = "directfb"; then
1125 PKG_CHECK_MODULES([FREETYPE],
1126 [fontconfig >= $FONTCONFIG_REQUIRED_VERSION
1127 freetype2 >= $FREETYPE2_REQUIRED_VERSION])
1129 PKG_CHECK_MODULES([FREETYPE],
1131 fontconfig >= $FONTCONFIG_REQUIRED_VERSION
1132 freetype2 >= $FREETYPE2_REQUIRED_VERSION])
1134 AC_SUBST([FREETYPE_CFLAGS])
1135 AC_SUBST([FREETYPE_LIBS])
1138 # check if SQLite3 is available. Error out only if one of the
1139 # features hard-depending on it is enabled while SQLite3 is
1141 PKG_CHECK_MODULES([SQLITE3],
1142 [sqlite3 >= $SQLITE_REQUIRED_VERSION],
1143 [sqlite3_has_pkg_config=yes],
1144 [sqlite3_has_pkg_config=no])
1145 if test "$sqlite3_has_pkg_config" = "no"; then
1146 AC_SEARCH_LIBS([sqlite3_open16], [sqlite3],
1147 [sqlite3_found=yes;SQLITE3_LIBS="$LIBS";SQLITE3_CFLAGS="-I $srcdir/WebKitLibraries/WebCoreSQLite3"],
1150 AC_SUBST([SQLITE3_CFLAGS])
1151 AC_SUBST([SQLITE3_LIBS])
1153 if (test "$sqlite3_found" = "no"); then
1154 AC_MSG_ERROR([SQLite3 is required for the Database related features])
1157 # check if glib is available
1158 if test "$enable_glib_support" = "yes"; then
1159 GLIB_REQUIRED_VERSION=2.0
1160 GTHREAD_REQUIRED_VERSION=2.0
1161 PKG_CHECK_MODULES([GLIB],
1162 [glib-2.0 >= $GLIB_REQUIRED_VERSION
1163 gthread-2.0 >= $GTHREAD_REQUIRED_VERSION])
1164 AC_SUBST([GLIB_CFLAGS])
1165 AC_SUBST([GLIB_LIBS])
1168 # check if libxslt is available
1169 if test "$enable_xslt" = "yes"; then
1170 PKG_CHECK_MODULES([LIBXSLT],[libxslt >= $LIBXSLT_REQUIRED_VERSION])
1171 AC_SUBST([LIBXSLT_CFLAGS])
1172 AC_SUBST([LIBXSLT_LIBS])
1175 # check if geoclue is available
1176 if test "$enable_geolocation" = "yes"; then
1177 PKG_CHECK_MODULES([GEOCLUE], [geoclue location])
1178 AC_DEFINE([ENABLE_GEOLOCATION], [1], [Define to enable geolocation])
1179 AC_SUBST([GEOCLUE_CFLAGS])
1180 AC_SUBST([GEOCLUE_LIBS])
1183 # check for XRender under Linux/Unix. Some linkers require explicit
1184 # linkage (like GNU Gold), so we cannot rely on GTK+ pulling XRender
1185 if test "$os_win32" = "no"; then
1186 PKG_CHECK_MODULES([XRENDER], [xrender])
1187 AC_SUBST([XRENDER_CFLAGS])
1188 AC_SUBST([XRENDER_LIBS])
1191 # check if gstreamer is available
1192 if test "$enable_video" = "yes" || test "$enable_web_audio" = "yes"; then
1193 PKG_CHECK_MODULES([GSTREAMER],
1194 [gstreamer-0.10 >= $GSTREAMER_REQUIRED_VERSION
1196 gstreamer-audio-0.10
1198 gstreamer-interfaces-0.10
1199 gstreamer-pbutils-0.10
1200 gstreamer-plugins-base-0.10 >= $GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION
1201 gstreamer-video-0.10],
1202 [have_gstreamer=yes])
1204 AC_SUBST([GSTREAMER_CFLAGS])
1205 AC_SUBST([GSTREAMER_LIBS])
1208 # check if libfftw is available
1209 if test "$enable_web_audio" = "yes"; then
1210 PKG_CHECK_MODULES([LIBFFTW],
1211 [fftw3 >= $LIBFFTW_REQUIRED_VERSION
1212 fftw3f >= $LIBFFTW_REQUIRED_VERSION],
1215 AC_SUBST([LIBFFTW_CFLAGS])
1216 AC_SUBST([LIBFFTW_LIBS])
1219 if test "$with_accelerated_compositing" = "clutter"; then
1220 PKG_CHECK_MODULES(CLUTTER, clutter-1.0 >= $CLUTTER_REQUIRED_VERSION)
1221 PKG_CHECK_MODULES([CLUTTER_GTK],
1222 [clutter-gtk-1.0 >= $CLUTTER_GTK_REQUIRED_VERSION])
1224 AC_SUBST(CLUTTER_CFLAGS)
1225 AC_SUBST(CLUTTER_LIBS)
1226 AC_SUBST(CLUTTER_GTK_CFLAGS)
1227 AC_SUBST(CLUTTER_GTK_LIBS)
1230 # check for code coverage support
1231 if test "$enable_coverage" = "yes"; then
1232 COVERAGE_CFLAGS="-MD"
1233 COVERAGE_LDFLAGS="-ftest-coverage -fprofile-arcs"
1234 AC_SUBST([COVERAGE_CFLAGS])
1235 AC_SUBST([COVERAGE_LDFLAGS])
1238 # check for HTML features
1239 if test "$enable_video" = "yes"; then
1244 AC_MSG_CHECKING([whether to build Webkit2])
1245 AC_ARG_ENABLE(webkit2,
1246 AC_HELP_STRING([--enable-webkit2], [build webkit2 [default=no]]),
1247 [], [enable_webkit2="no"])
1248 AC_MSG_RESULT([$enable_webkit2])
1249 if test "$enable_webkit2" = "yes"; then
1250 if test "$GTK_API_VERSION" = "2.0"; then
1251 AC_MSG_ERROR([WebKit2 requires GTK+ 3.x, use --with-gtk=3.0])
1256 AC_MSG_CHECKING([whether to build plugin process for WebKit2])
1257 AC_ARG_ENABLE(plugin_process,
1258 AC_HELP_STRING([--enable-plugin-process], [build plugin process for WebKit2 [default=yes]]),
1259 [], [enable_plugin_process="yes"])
1260 AC_MSG_RESULT([$enable_plugin_process])
1262 # Build the plugin process only when building Webkit2.
1263 if test "$enable_webkit2" = "no"; then
1264 enable_plugin_process=no
1267 # Make sure we have GTK+ 2.x to build the plugin process.
1268 if test "$enable_plugin_process" = "yes"; then
1269 PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= $GTK2_REQUIRED_VERSION gail >= $GAIL2_REQUIRED_VERSION)
1271 AC_SUBST(GTK2_CFLAGS)
1274 GTK_DOC_CHECK([1.10])
1277 AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])
1278 AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"])
1279 AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
1280 AM_CONDITIONAL([OS_GNU],[test "$os_gnu" = "yes"])
1281 AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
1283 # target conditionals
1284 AM_CONDITIONAL([TARGET_X11], [test "$with_target" = "x11"])
1285 AM_CONDITIONAL([TARGET_WIN32], [test "$with_target" = "win32"])
1286 AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"])
1287 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"])
1288 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "arm"])
1289 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "i386"])
1291 # JS engine conditionals
1292 AM_CONDITIONAL([USE_JSC], [test "$with_jsengine" = "jsc"])
1294 # Unicode backend conditionals
1295 AM_CONDITIONAL([USE_ICU_UNICODE], [test "$with_unicode_backend" = "icu"])
1296 AM_CONDITIONAL([USE_GLIB_UNICODE], [test "$with_unicode_backend" = "glib"])
1298 # Font backend conditionals
1299 AM_CONDITIONAL([USE_FREETYPE], [test "$with_font_backend" = "freetype"])
1300 AM_CONDITIONAL([USE_PANGO], [test "$with_font_backend" = "pango"])
1302 # GStreamer feature conditional
1303 AM_CONDITIONAL([USE_GSTREAMER], [test "$have_gstreamer" = "yes"])
1305 # Accelerated compositing conditional
1306 AM_CONDITIONAL([USE_ACCELERATED_COMPOSITING], [test "$with_accelerated_compositing" = "cairo" || test "$with_accelerated_compositing" = "opengl" || test "$with_accelerated_compositing" = "clutter"])
1307 AM_CONDITIONAL([USE_TEXTURE_MAPPER_CAIRO], [test "$with_accelerated_compositing" = "cairo"])
1308 AM_CONDITIONAL([USE_TEXTURE_MAPPER_GL], [test "$with_accelerated_compositing" = "opengl"])
1309 AM_CONDITIONAL([USE_CLUTTER], [test "$with_accelerated_compositing" = "clutter"])
1311 # WebKit feature conditionals
1312 AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug_features" = "yes"])
1313 AM_CONDITIONAL([ENABLE_3D_RENDERING],[test "$enable_3d_rendering" = "yes"])
1314 AM_CONDITIONAL([ENABLE_WEBGL],[test "$enable_webgl" = "yes"])
1315 AM_CONDITIONAL([ENABLE_BLOB],[test "$enable_blob" = "yes"])
1316 AM_CONDITIONAL([ENABLE_METER_TAG],[test "$enable_meter_tag" = "yes"])
1317 AM_CONDITIONAL([ENABLE_MICRODATA],[test "$enable_microdata" = "yes"])
1318 AM_CONDITIONAL([ENABLE_PAGE_VISIBILITY_API],[test "$enable_page_visibility_api" = "yes"])
1319 AM_CONDITIONAL([ENABLE_PROGRESS_TAG],[test "$enable_progress_tag" = "yes"])
1320 AM_CONDITIONAL([ENABLE_CHANNEL_MESSAGING],[test "$enable_channel_messaging" = "yes"])
1321 AM_CONDITIONAL([ENABLE_JAVASCRIPT_DEBUGGER],[test "$enable_javascript_debugger" = "yes"])
1322 AM_CONDITIONAL([ENABLE_SLP_SUPPORT_BLUE_RUNNER],[test "$enable_slp_support_blue_runner" = "yes"])
1323 AM_CONDITIONAL([ENABLE_OFFLINE_WEB_APPLICATIONS],[test "$enable_offline_web_applications" = "yes"])
1324 AM_CONDITIONAL([ENABLE_GAMEPAD],[test "$enable_gamepad" = "yes"])
1325 AM_CONDITIONAL([ENABLE_DIRECTORY_UPLOAD],[test "$enable_directory_upload" = "yes"])
1326 AM_CONDITIONAL([ENABLE_DATAGRID],[test "$enable_datagrid" = "yes"])
1327 AM_CONDITIONAL([ENABLE_DATA_TRANSFER_ITEMS],[test "$enable_data_transfer_items" = "yes"])
1328 AM_CONDITIONAL([ENABLE_SQL_DATABASE],[test "$enable_sql_database" = "yes"])
1329 AM_CONDITIONAL([ENABLE_DATALIST],[test "$enable_datalist" = "yes"])
1330 AM_CONDITIONAL([ENABLE_DETAILS],[test "$enable_details" = "yes"])
1331 AM_CONDITIONAL([ENABLE_FAST_MOBILE_SCROLLING],[test "$enable_fast_mobile_scrolling" = "yes"])
1332 AM_CONDITIONAL([ENABLE_FILE_SYSTEM],[test "$enable_file_system" = "yes"])
1333 AM_CONDITIONAL([ENABLE_STYLE_SCOPED],[test "$enable_style_scoped" = "yes"])
1334 AM_CONDITIONAL([ENABLE_QUOTA],[test "$enable_quota" = "yes"])
1335 AM_CONDITIONAL([ENABLE_ICONDATABASE],[test "$enable_icon_database" = "yes"])
1336 AM_CONDITIONAL([ENABLE_IMAGE_RESIZER],[test "$enable_image_resizer" = "yes"])
1337 AM_CONDITIONAL([ENABLE_INDEXED_DATABASE],[test "$enable_indexed_database" = "yes"])
1338 AM_CONDITIONAL([ENABLE_INPUT_COLOR],[test "$enable_input_color" = "yes"])
1339 AM_CONDITIONAL([ENABLE_INPUT_SPEECH],[test "$enable_input_speech" = "yes"])
1340 AM_CONDITIONAL([ENABLE_XSLT],[test "$enable_xslt" = "yes"])
1341 AM_CONDITIONAL([ENABLE_FILTERS],[test "$enable_filters" = "yes"])
1342 AM_CONDITIONAL([ENABLE_GEOLOCATION], [test "$enable_geolocation" = "yes"])
1343 AM_CONDITIONAL([ENABLE_MATHML], [test "$enable_mathml" = "yes"])
1344 AM_CONDITIONAL([ENABLE_MHTML], [test "$enable_mhtml" = "yes"])
1345 AM_CONDITIONAL([ENABLE_VIDEO],[test "$enable_video" = "yes"])
1346 AM_CONDITIONAL([ENABLE_MEDIA_SOURCE],[test "$enable_media_source" = "yes"])
1347 AM_CONDITIONAL([ENABLE_MEDIA_STATISTICS],[test "$enable_media_statistics" = "yes"])
1348 AM_CONDITIONAL([ENABLE_VIDEO_TRACK],[test "$enable_video_track" = "yes"])
1349 AM_CONDITIONAL([ENABLE_FULLSCREEN_API],[test "$enable_fullscreen_api" = "yes"])
1350 AM_CONDITIONAL([ENABLE_MEDIA_STREAM],[test "$enable_media_stream" = "yes"])
1351 AM_CONDITIONAL([ENABLE_NOTIFICATIONS],[test "$enable_notifications" = "yes"])
1352 AM_CONDITIONAL([ENABLE_ORIENTATION_EVENTS],[test "$enable_orientation_events" = "yes"])
1353 AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"])
1354 AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"])
1355 AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"])
1356 AM_CONDITIONAL([ENABLE_FAST_MALLOC],[test "$enable_fast_malloc" = "yes"])
1357 AM_CONDITIONAL([ENABLE_WORKERS],[test "$enable_workers" = "yes"])
1358 AM_CONDITIONAL([ENABLE_SHARED_WORKERS],[test "$enable_shared_workers" = "yes"])
1359 AM_CONDITIONAL([SVG_FLAGS],[test "$svg_flags" = "yes"])
1360 AM_CONDITIONAL([HTML_FLAGS],[test "$html_flags" = "yes"])
1361 AM_CONDITIONAL([ENABLE_WEB_SOCKETS],[test "$enable_web_sockets" = "yes"])
1362 AM_CONDITIONAL([ENABLE_WEB_AUDIO],[test "$enable_web_audio" = "yes"])
1363 AM_CONDITIONAL([ENABLE_WEB_TIMING],[test "$enable_web_timing" = "yes"])
1364 AM_CONDITIONAL([ENABLE_OPCODE_STATS],[test "$enable_opcode_stats" = "yes"])
1365 AM_CONDITIONAL([ENABLE_WEBKIT2],[test "$enable_webkit2" = "yes"])
1366 AM_CONDITIONAL([ENABLE_PLUGIN_PROCESS],[test "$enable_plugin_process" = "yes"])
1367 AM_CONDITIONAL([ENABLE_SPELLCHECK],[test "$enable_spellcheck" = "yes"])
1368 AM_CONDITIONAL([ENABLE_ANIMATION_API],[test "$enable_animation_api" = "yes"])
1369 AM_CONDITIONAL([ENABLE_REQUEST_ANIMATION_FRAME],[test "$enable_request_animation_frame" = "yes"])
1370 AM_CONDITIONAL([ENABLE_TOUCH_ICON_LOADING],[test "$enable_touch_icon_loading" = "yes"])
1371 AM_CONDITIONAL([ENABLE_REGISTER_PROTOCOL_HANDLER],[test "$enable_register_protocol_handler" = "yes"])
1372 AM_CONDITIONAL([ENABLE_DEVICE_ORIENTATION],[test "$enable_device_orientation" = "yes"])
1373 AM_CONDITIONAL([ENABLE_MUTATION_OBSERVERS],[test "$enable_mutation_observers" = "yes"])
1376 AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"])
1384 Source/WebKit/gtk/webkit/webkitversion.h
1388 Source/WebKit/gtk/${WEBKITGTK_PC_NAME}-${WEBKITGTK_API_VERSION}.pc:Source/WebKit/gtk/webkit.pc.in
1389 Source/WebKit/gtk/JSCore-${WEBKITGTK_API_VERSION}.gir:Source/WebKit/gtk/JSCore.gir.in
1390 Source/WebKit/gtk/org.webkitgtk-${WEBKITGTK_API_VERSION}.gschema.xml:Source/WebKit/gtk/org.webkitgtk.gschema.xml.in
1391 Source/JavaScriptCore/javascriptcoregtk-${WEBKITGTK_API_VERSION}.pc:Source/JavaScriptCore/javascriptcoregtk.pc.in
1393 ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
1397 if test "$enable_webkit2" = "yes"; then
1399 Source/WebKit2/webkit2gtk-${WEBKITGTK_API_VERSION}.pc:Source/WebKit2/webkit2gtk.pc.in
1401 ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
1408 WebKit was configured with the following options:
1410 Build configuration:
1411 Enable debugging (slow) : $enable_debug
1412 Compile with debug symbols (slow) : $enable_debug_symbols
1413 Enable debug features (slow) : $enable_debug_features
1414 Enable GCC build optimization : $enable_optimizations
1415 Code coverage support : $enable_coverage
1416 Unicode backend : $with_unicode_backend
1417 Font backend : $with_font_backend
1418 Optimized memory allocator : $enable_fast_malloc
1419 JavaScript Engine : $with_jsengine
1420 Accelerated Compositing : $with_accelerated_compositing
1423 3D Rendering : $enable_3d_rendering
1424 WebGL : $enable_webgl
1425 Blob support : $enable_blob
1426 DOM mutation observer support : $enable_mutation_observers
1427 DeviceOrientation support : $enable_device_orientation
1428 Directory upload : $enable_directory_upload
1429 Fast Mobile Scrolling : $enable_fast_mobile_scrolling
1430 JIT compilation : $enable_jit
1431 Filters support : $enable_filters
1432 Geolocation support : $enable_geolocation
1433 JavaScript debugger/profiler support : $enable_javascript_debugger
1434 Gamepad support : $enable_gamepad
1435 MathML support : $enable_mathml
1436 Media source : $enable_media_source
1437 Media statistics : $enable_media_statistics
1438 HTML5 channel messaging support : $enable_channel_messaging
1439 HTML5 meter element support : $enable_meter_tag
1440 HTML5 microdata support : $enable_microdata
1441 Page Visibility API support : $enable_page_visibility_api
1442 HTML5 progress element support : $enable_progress_tag
1443 HTML5 client-side session and persistent storage support : $enable_dom_storage
1444 SQL client-side database storage support : $enable_sql_database
1445 HTML5 datagrid support : $enable_datagrid
1446 HTML5 data transfer items support : $enable_data_transfer_items
1447 HTML5 FileSystem API support : $enable_file_system
1448 Quota API support : $enable_quota
1449 HTML5 sandboxed iframe support : $enable_sandbox
1450 HTML5 video element support : $enable_video
1451 HTML5 track element support : $enable_video_track
1452 Fullscreen API support : $enable_fullscreen_api
1453 Media stream support : $enable_media_stream
1454 Icon database support : $enable_icon_database
1455 Image resizer support : $enable_image_resizer
1456 Link prefetch support : $enable_link_prefetch
1457 Opcode stats : $enable_opcode_stats
1458 SharedWorkers support : $enable_shared_workers
1459 Color input support : $enable_input_color
1460 Speech input support : $enable_input_speech
1461 SVG support : $enable_svg
1462 SVG fonts support : $enable_svg_fonts
1463 Web Audio support : $enable_web_audio
1464 Web Sockets support : $enable_web_sockets
1465 Web Timing support : $enable_web_timing
1466 Web Workers support : $enable_workers
1467 XSLT support : $enable_xslt
1468 Spellcheck support : $enable_spellcheck
1469 Animation API : $enable_animation_api
1470 RequestAnimationFrame support : $enable_request_animation_frame
1471 Touch Icon Loading support : $enable_touch_icon_loading
1472 Register Protocol Handler support : $enable_register_protocol_handler
1473 WebKit2 support : $enable_webkit2
1474 WebKit2 plugin process : $enable_plugin_process
1477 GTK+ version : $with_gtk
1478 GDK target : $with_target
1479 Hildon UI extensions : $with_hildon
1480 Introspection support : $enable_introspection
1481 Generate documentation : $enable_gtk_doc
1483 if test "$with_unicode_backend" = "glib"; then
1484 echo " >> WARNING: the glib-based unicode backend is slow and incomplete <<"