Web Inspector: reuse edge_count field of heap snapshot to store retained size
[WebKit-https.git] / configure.ac
1 AC_PREREQ(2.59)
2
3 m4_define([webkit_major_version], [1])
4 m4_define([webkit_minor_version], [9])
5 m4_define([webkit_micro_version], [3])
6
7 # This is the version we'll be using as part of our User-Agent string
8 # e.g., AppleWebKit/$(webkit_user_agent_version) ...
9 #
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])
13
14 AC_INIT([WebKit],[webkit_major_version.webkit_minor_version.webkit_micro_version],[http://bugs.webkit.org/])
15
16 AC_CONFIG_MACRO_DIR([Source/autotools])
17 AC_CONFIG_AUX_DIR([Source/autotools])
18 AC_SUBST(ACLOCAL_AMFLAGS, "-I Source/autotools")
19
20 AC_CONFIG_HEADERS([autotoolsconfig.h])
21 AC_CANONICAL_HOST
22
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)
33
34 AC_CONFIG_SRCDIR([Source/WebCore/config.h])
35
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=13:2:13
39 AC_SUBST([LIBWEBKITGTK_VERSION])
40
41 LIBJAVASCRIPTCOREGTK_VERSION=13:2:13
42 AC_SUBST([LIBJAVASCRIPTCOREGTK_VERSION])
43
44 LIBWEBKIT2GTK_VERSION=14:0:14
45 AC_SUBST([LIBWEBKIT2GTK_VERSION])
46
47 AM_INIT_AUTOMAKE([foreign subdir-objects dist-xz no-dist-gzip tar-ustar])
48
49 # Use AM_SILENT_RULES if present
50 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
51
52 # host checking - inspired by the GTK+ configure.in
53 # TODO: move these to webkit.m4?
54 AC_MSG_CHECKING([for native Win32])
55 case "$host" in
56      *-*-mingw*)
57        os_win32=yes
58        ;;
59      *)
60        os_win32=no
61        ;;
62 esac
63 AC_MSG_RESULT([$os_win32])
64
65 case "$host" in
66      *-*-linux*)
67        os_linux=yes
68        ;;
69      *-*-freebsd*)
70        os_freebsd=yes
71        ;;
72      *-*-darwin*)
73        os_darwin=yes
74        ;;
75 esac
76
77 case "$host_os" in
78      gnu* | linux* | k*bsd*-gnu)
79        os_gnu=yes
80        ;;
81      *)
82        os_gnu=no
83        ;;
84 esac
85
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
90    CXXFLAGS=""
91 fi
92 if test -z "$CFLAGS"; then
93    CFLAGS=""
94 fi
95
96 PKG_PROG_PKG_CONFIG
97
98 AC_PATH_PROG(PERL, perl)
99 if test -z "$PERL"; then
100    AC_MSG_ERROR([You need 'perl' to compile WebKit])
101 fi
102
103 AC_PATH_PROG(PYTHON, python)
104 if test -z "$PYTHON"; then
105    AC_MSG_ERROR([You need 'python' to compile WebKit])
106 fi
107
108 AC_PATH_PROG(RUBY, ruby)
109 if test -z "$RUBY"; then
110    AC_MSG_ERROR([You need 'ruby' to compile WebKit])
111 fi
112
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])
116 fi
117
118 AC_PATH_PROG(MV, mv)
119 if test -z "$MV"; then
120    AC_MSG_ERROR([You need 'mv' to compile WebKit])
121 fi
122
123 AC_PROG_CC
124 AC_PROG_CXX
125 AM_PROG_CC_C_O
126 AC_PROG_INSTALL
127 AC_SYS_LARGEFILE
128
129 # Check whether a C++ was found (AC_PROG_CXX sets $CXX to "g++" even when it
130 # doesn't exist)
131 AC_LANG_PUSH([C++])
132 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],[],[AC_MSG_ERROR([No C++ compiler found])])
133 AC_LANG_POP([C++])
134
135 # C/C++ Language Features
136 AC_C_CONST
137 AC_C_INLINE
138 AC_C_VOLATILE
139
140 # C/C++ Headers
141 AC_HEADER_STDC
142 AC_HEADER_STDBOOL
143
144 # Linker
145 AC_DISABLE_STATIC
146 AC_LIBTOOL_WIN32_DLL
147 AC_PROG_LIBTOOL
148 # use dolt to speedup the build
149 DOLT
150
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])
154 else
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]))
158 fi
159
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])
163 fi
164
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" ],
172         AC_MSG_RESULT([no]))
173 CFLAGS="$saved_CFLAGS"
174 AC_SUBST(SYMBOL_VISIBILITY)
175 AC_SUBST(SYMBOL_VISIBILITY_INLINES)
176
177 # Disable C++0x compat warnings for GCC >= 4.6.0 until we build
178 # cleanly with that.
179 AC_LANG_PUSH(C++)
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])
183 AC_TRY_COMPILE([
184 namespace std {
185     class nullptr_t { };
186 }
187 extern std::nullptr_t nullptr;
188 ], [return 0;],
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"
194 else
195   CXXFLAGS="$TMPCXXFLAGS"
196 fi
197 AC_LANG_POP(C++)
198
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]))
207 fi
208
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])
215    AC_TRY_CPP(
216 [#include <stdio.h>
217 #undef PACKAGE
218 #undef VERSION
219 #undef HAVE_STDLIB_H
220 #include <jpeglib.h>],
221          jpeg_ok=yes,
222          jpeg_ok=no)
223    AC_MSG_RESULT($jpeg_ok)
224    if test "$jpeg_ok" = yes; then
225       JPEG_LIBS="-ljpeg"
226       # should we check for progressive JPEG like GTK+ as well?
227    else
228       AC_MSG_ERROR([JPEG library (libjpeg) not found])
229    fi
230 fi
231 AC_SUBST([JPEG_LIBS])
232
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
237     AC_MSG_RESULT(yes)
238     PNG_LIBS=`$PKG_CONFIG --libs $l`
239     png_ok=yes
240     break
241   else
242     AC_MSG_RESULT(no)
243     png_ok=no
244   fi
245 done
246 if test "$png_ok" != yes; then
247   AC_CHECK_LIB(png, png_read_info,
248     [AC_CHECK_HEADER(png.h,
249       png_ok=yes,
250       png_ok=no)],
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;],
256       png_ok=yes,
257       png_ok=no)
258     AC_MSG_RESULT($png_ok)
259     if test "$png_ok" = yes; then
260       PNG_LIBS='-lpng -lz'
261     else
262       AC_MSG_ERROR([PNG library (libpng) not found])
263     fi
264   else
265     AC_MSG_ERROR([PNG library (libpng) not found])
266   fi
267 fi
268 AC_SUBST([PNG_LIBS])
269
270
271 if test "$os_win32" = "yes"; then
272   WINMM_LIBS=-lwinmm
273   SHLWAPI_LIBS=-lshlwapi
274   OLE32_LIBS=-lole32
275 fi
276 AC_SUBST([WINMM_LIBS])
277 AC_SUBST([SHLWAPI_LIBS])
278 AC_SUBST([OLE32_LIBS])
279
280
281 # determine the GTK+ version to use
282 AC_MSG_CHECKING([the GTK+ version to use])
283 AC_ARG_WITH([gtk],
284         [AS_HELP_STRING([--with-gtk=2.0|3.0], [the GTK+ version to use (default: 3.0)])],
285         [case "$with_gtk" in
286         2.0|3.0) ;;
287         *) AC_MSG_ERROR([invalid GTK+ version specified]) ;;
288         esac],
289         [with_gtk=3.0])
290 AC_MSG_RESULT([$with_gtk])
291
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
296
297 case "$with_gtk" in
298      2.0) GTK_REQUIRED_VERSION=$GTK2_REQUIRED_VERSION
299           GTK_API_VERSION=2.0
300           WEBKITGTK_API_MAJOR_VERSION=1
301           WEBKITGTK_API_MINOR_VERSION=0
302           WEBKITGTK_API_VERSION=1.0
303           WEBKITGTK_PC_NAME=webkit
304           GAIL_PC_NAME=gail
305           GAIL_REQUIRED_VERSION=$GAIL2_REQUIRED_VERSION
306           ;;
307      3.0) GTK_REQUIRED_VERSION=$GTK3_REQUIRED_VERSION
308           GTK_API_VERSION=3.0
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
315           ;;
316 esac
317
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"])
324
325 # determine the GDK/GTK+ target
326 AC_MSG_CHECKING([the target windowing system])
327 AC_ARG_WITH(target,
328             AC_HELP_STRING([--with-target=@<:@x11/win32/quartz/directfb@:>@],
329                            [Select webkit target [default=x11]]),
330             [],[with_target="x11"])
331
332 case "$with_target" in
333      x11|win32|quartz|directfb) ;;
334      *) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;;
335 esac
336
337 AC_MSG_RESULT([$with_target])
338
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
343         0.10|1.0) ;;
344         *) AC_MSG_ERROR([invalid GStreamer version specified]) ;;
345         esac],
346         [with_gstreamer=0.10])
347 AC_MSG_RESULT([$with_gstreamer])
348
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=1.0
352 GSTREAMER_1_0_PLUGINS_BASE_REQUIRED_VERSION=0.11.90
353
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
357            GST_API_VERSION=0.10
358            ;;
359      1.0) GSTREAMER_REQUIRED_VERSION=$GSTREAMER_1_0_REQUIRED_VERSION
360            GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION=$GSTREAMER_1_0_PLUGINS_BASE_REQUIRED_VERSION
361            GST_API_VERSION=1.0
362            ;;
363 esac
364
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])
369 fi
370
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.37.92
377 LIBXML_REQUIRED_VERSION=2.6
378 PANGO_REQUIRED_VERSION=1.21.0
379
380 # optional modules
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
387
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])
392 fi
393 GLIB_GSETTINGS
394
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"])
401
402 case "$with_unicode_backend" in
403      icu|glib) ;;
404      *) AC_MSG_ERROR([Invalid Unicode backend: must be icu or glib.]) ;;
405 esac
406
407 AC_MSG_RESULT([$with_unicode_backend])
408
409 if test "$with_unicode_backend" = "icu"; then
410     # TODO: use pkg-config (after CFLAGS in their .pc files are cleaned up)
411     case "$host" in
412         *-*-darwin*)
413             UNICODE_CFLAGS="-I$srcdir/Source/JavaScriptCore/icu -I$srcdir/Source/WebCore/icu"
414             UNICODE_LIBS="-licucore"
415             ;;
416         *-*-mingw*)
417             UNICODE_CFLAGS=""
418             UNICODE_LIBS="-licui18n -licuuc"
419             ;;
420         *)
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.])
424             fi
425
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`
431             ;;
432     esac
433 fi
434
435 if test "$with_unicode_backend" = "glib"; then
436     PKG_CHECK_MODULES([UNICODE], [glib-2.0 pango >= $PANGO_REQUIRED_VERSION])
437 fi
438
439 AC_SUBST([UNICODE_CFLAGS])
440 AC_SUBST([UNICODE_LIBS])
441
442 PKG_CHECK_MODULES([ZLIB], [zlib])
443 AC_SUBST([ZLIB_CFLAGS])
444 AC_SUBST([ZLIB_LIBS])
445
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])
450
451 PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED_VERSION)
452 AC_SUBST(LIBXML_CFLAGS)
453 AC_SUBST(LIBXML_LIBS)
454
455 PKG_CHECK_MODULES(PANGO, 
456                   [pango >= $PANGO_REQUIRED_VERSION
457                    pangoft2])
458 AC_SUBST(PANGO_CFLAGS)
459 AC_SUBST(PANGO_LIBS)
460
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])
466
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)
471 fi
472
473 PKG_CHECK_MODULES(GAIL, $GAIL_PC_NAME >= $GAIL_REQUIRED_VERSION)
474 AC_SUBST(GAIL_CFLAGS)
475 AC_SUBST(GAIL_LIBS)
476
477 # check for target-specific dependencies
478 if test "$with_target" = "directfb"; then
479    PKG_CHECK_MODULES(CAIRO, cairo-directfb >= $CAIRO_REQUIRED_VERSION)
480    PKG_CHECK_MODULES(GTK, gtk+-directfb-2.0 >= $GTK_REQUIRED_VERSION)
481    AC_DEFINE([WTF_PLATFORM_DIRECTFB],[1],[Define if target is DirectFB])
482 else
483    PKG_CHECK_MODULES(CAIRO, cairo >= $CAIRO_REQUIRED_VERSION)
484    PKG_CHECK_MODULES(GTK, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED_VERSION)
485
486    if test "$with_target" = "x11" && test "$os_win32" = "no"; then
487       # check for XT
488       PKG_CHECK_MODULES([XT],
489                         [xt],
490                         [xt_has_pkg_config=yes],
491                         [xt_has_pkg_config=no])
492       # some old versions of Xt do not provide xt.pc, so try to link against Xt
493       # and if it's installed fall back to just adding -lXt
494       if test "$xt_has_pkg_config" = "no"; then
495          # using AC_CHECK_LIB instead of AC_SEARCH_LIB is fine in this case as
496          # we don't care about the XtOpenDisplay symbol but only about the
497          # existence of libXt
498          AC_CHECK_LIB([Xt], [XtOpenDisplay],
499                       [XT_CFLAGS=""; XT_LIBS="-lXt"],
500                       [AC_MSG_ERROR([X Toolkit Intrinsics library (libXt) not found])])
501       fi
502       AC_SUBST([XT_CFLAGS])
503       AC_SUBST([XT_LIBS])
504       AC_DEFINE([WTF_PLATFORM_X11],[1],[Define if target is X11])
505    fi
506 fi
507 AC_SUBST(GTK_CFLAGS)
508 AC_SUBST(GTK_LIBS)
509 AC_SUBST(CAIRO_CFLAGS)
510 AC_SUBST(CAIRO_LIBS)
511
512 # check whether to build with debugging enabled
513 AC_MSG_CHECKING([whether to do a debug build])
514 AC_ARG_ENABLE(debug,
515               AC_HELP_STRING([--enable-debug],
516                              [turn on debugging [default=no]]),
517               [],[enable_debug="no"])
518 AC_MSG_RESULT([$enable_debug])
519
520 # check whether to enable optimized builds
521 AC_MSG_CHECKING([whether to enable optimized builds])
522 AC_ARG_ENABLE(optimizations,
523               AC_HELP_STRING([--enable-optimizations],
524                              [turn on optimize builds (GCC only)
525                              [default=yes]]),
526               [enable_optimizations=$enableval],
527               [if test "$enable_debug" = "yes"; then enable_optimizations="no"; else enable_optimizations="yes"; fi])
528 AC_MSG_RESULT([$enable_optimizations])
529
530 # check whether to enable WebGL support
531 AC_MSG_CHECKING([whether to enable WebGL support])
532 AC_ARG_ENABLE(webgl,
533               AC_HELP_STRING([--enable-webgl], [enable support for WebGL [default=yes]]),
534               [], [if test "$with_target" = "x11"; then enable_webgl="yes"; else enable_webgl="no"; fi])
535 AC_MSG_RESULT([$enable_webgl])
536
537 # check whether to enable accelerated compositing support
538 AC_MSG_CHECKING([whether to enable accelerated compositing support])
539 AC_ARG_WITH(accelerated_compositing,
540             AC_HELP_STRING([--with-accelerated-compositing=@<:@no/opengl/cairo/clutter@:>@],
541                            [use accelerated compositing (experimental) [default=no]]),
542             [], [with_accelerated_compositing="no"])
543 AC_MSG_RESULT([$with_accelerated_compositing])
544
545 if test "$enable_webgl" = "yes" ||  test "$with_accelerated_compositing" = "opengl" ; then
546     if test "$with_target" != "x11"; then
547         AC_MSG_ERROR([OpenGL support is only available on X11 currently.])
548     fi
549     AC_CHECK_HEADERS([GL/gl.h], [], AC_MSG_ERROR([OpenGL header not found]))
550     AC_CHECK_HEADERS([GL/glx.h], [], AC_MSG_ERROR([GLX header not found]))
551     OPENGL_LIBS="-lGL -ldl"
552 fi
553 AC_SUBST([OPENGL_LIBS])
554
555 if test "$with_accelerated_compositing" = "clutter"; then
556    PKG_CHECK_MODULES(CLUTTER, clutter-1.0 >= $CLUTTER_REQUIRED_VERSION)
557    PKG_CHECK_MODULES([CLUTTER_GTK], [clutter-gtk-1.0 >= $CLUTTER_GTK_REQUIRED_VERSION])
558
559    AC_SUBST(CLUTTER_CFLAGS)
560    AC_SUBST(CLUTTER_LIBS)
561    AC_SUBST(CLUTTER_GTK_CFLAGS)
562    AC_SUBST(CLUTTER_GTK_LIBS)
563 fi
564
565 # check whether to enable channel messaging support
566 AC_MSG_CHECKING([whether to enable HTML5 Channel Messaging support])
567 AC_ARG_ENABLE(channel_messaging,
568               AC_HELP_STRING([--enable-channel-messaging],
569                              [enable HTML5 channel messaging support [default=yes]]),
570               [],[enable_channel_messaging="yes"])
571 AC_MSG_RESULT([$enable_channel_messaging])
572
573 # check whether to enable legacy notifications
574 AC_MSG_CHECKING([whether to enable legacy notifications])
575 AC_ARG_ENABLE(legacy_notifications,
576               AC_HELP_STRING([--enable-legacy-notifications],
577                              [enable legacy notifications [default=no]]),
578               [],[enable_legacy_notifications="no"])
579 AC_MSG_RESULT([$enable_legacy_notifications])
580
581 # check whether to enable notifications
582 AC_MSG_CHECKING([whether to enable notifications])
583 AC_ARG_ENABLE(notifications,
584               AC_HELP_STRING([--enable-notifications],
585                              [enable notifications [default=no]]),
586               [],[enable_notifications="no"])
587 AC_MSG_RESULT([$enable_notifications])
588
589 # check whether to enable the meter tag
590 AC_MSG_CHECKING([whether to enable HTML5 meter tag])
591 AC_ARG_ENABLE(meter_tag,
592               AC_HELP_STRING([--enable-meter-tag],
593                              [enable HTML5 meter [default=yes]]),
594               [],[enable_meter_tag="yes"])
595 AC_MSG_RESULT([$enable_meter_tag])
596
597 # check whether to enable HTML5 Microdata support
598 AC_MSG_CHECKING([whether to enable HTML5 Microdata support])
599 AC_ARG_ENABLE(microdata,
600               AC_HELP_STRING([--enable-microdata],
601                              [enable HTML5 microdata support [default=no]]),
602               [],[enable_microdata="no"])
603 AC_MSG_RESULT([$enable_microdata])
604
605 # check whether to enable page visibility API.
606 AC_MSG_CHECKING([whether to enable Page Visibility API support])
607 AC_ARG_ENABLE(page_visibility_api,
608               AC_HELP_STRING([--enable-page-visibility-api],
609                              [enable page visibility api[default=no]]),
610               [],[enable_page_visibility_api="no"])
611 AC_MSG_RESULT([$enable_page_visibility_api])
612
613 # check whether to enable the progress tag
614 AC_MSG_CHECKING([whether to enable HTML5 progress tag])
615 AC_ARG_ENABLE(progress_tag,
616               AC_HELP_STRING([--enable-progress-tag],
617                              [enable HTML5 progress [default=yes]]),
618               [],[enable_progress_tag="yes"])
619 AC_MSG_RESULT([$enable_progress_tag])
620
621 # check whether to enable JavaScript debugger/profiler support
622 AC_MSG_CHECKING([whether to enable JavaScript debugger/profiler support])
623 AC_ARG_ENABLE(javascript_debugger,
624               AC_HELP_STRING([--enable-javascript-debugger],
625                              [enable JavaScript debugger/profiler support [default=yes]]),
626               [],[enable_javascript_debugger="yes"])
627 AC_MSG_RESULT([$enable_javascript_debugger])
628
629 # check whether to enable Gamepad support
630 AC_MSG_CHECKING([whether to enable Gamepad support])
631 AC_ARG_ENABLE(gamepad,
632               AC_HELP_STRING([--enable-gamepad],
633                              [enable Gamepad support [default=no]]),
634               [],[enable_gamepad="no"])
635 AC_MSG_RESULT([$enable_gamepad])
636
637 # check whether to build with data transfer items support
638 AC_MSG_CHECKING([whether to enable HTML5 data transfer items support])
639 AC_ARG_ENABLE(data_transfer_items,
640               AC_HELP_STRING([--enable-data-transfer-items],
641                              [enable HTML5 data transfer items support [default=no]]),
642               [],[enable_data_transfer_items="no"])
643 AC_MSG_RESULT([$enable_data_transfer_items])
644
645 # check whether to enable DOM mutation observer support
646 AC_MSG_CHECKING([whether to enable DOM mutation observer support])
647 AC_ARG_ENABLE(mutation_observers,
648               AC_HELP_STRING([--enable-mutation-observers],
649                              [enable DOM mutation observer support [default=no]]),
650               [],[enable_mutation_observers="no"])
651 AC_MSG_RESULT([$enable_mutation_observers])
652
653 # check whether to enable the indexed database API
654 AC_MSG_CHECKING([whether to enable the indexed database API])
655 AC_ARG_ENABLE(indexed_database,
656               AC_HELP_STRING([--enable-indexed-database],
657                              [enable the indexed database API (incomplete) [default=no]]),
658               [],[enable_indexed_database="no"])
659 AC_MSG_RESULT([$enable_indexed_database])
660
661 # check whether to enable the color input
662 AC_MSG_CHECKING([whether to enable the color input])
663 AC_ARG_ENABLE(input_type_color,
664               AC_HELP_STRING([--enable-input-type-color],
665                              [enable the color input [default=no]]),
666               [],[enable_input_type_color="no"])
667 AC_MSG_RESULT([$enable_input_type_color])
668
669 # check whether to enable the speech input API
670 AC_MSG_CHECKING([whether to enable the speech input API])
671 AC_ARG_ENABLE(input_speech,
672               AC_HELP_STRING([--enable-input-speech],
673                              [enable the speech input API [default=no]]),
674               [],[enable_input_speech="no"])
675 AC_MSG_RESULT([$enable_input_speech])
676
677 # check whether to enable the scripted speech API
678 AC_MSG_CHECKING([whether to enable the scripted speech API])
679 AC_ARG_ENABLE(scripted_speech,
680               AC_HELP_STRING([--enable-scripted-speech],
681                              [enable the scripted speech API [default=no]]),
682               [],[enable_scripted_speech="no"])
683 AC_MSG_RESULT([$enable_scripted_speech])
684
685 # check whether to build with SQL database support
686 AC_MSG_CHECKING([whether to enable SQL client-side database storage support])
687 AC_ARG_ENABLE(sql_database,
688               AC_HELP_STRING([--enable-sql-database],
689                              [enable SQL client-side database storage support [default=yes]]),
690               [],[enable_sql_database="yes"])
691 AC_MSG_RESULT([$enable_sql_database])
692
693 # check whether to build with icon database support
694 AC_MSG_CHECKING([whether to enable icon database support])
695 AC_ARG_ENABLE(icon_database,
696               AC_HELP_STRING([--enable-icon-database],
697                              [enable icon database [default=yes]]),
698               [],[enable_icon_database="yes"])
699 AC_MSG_RESULT([$enable_icon_database])
700
701 # check whether to enable HTML5 datalist support
702 AC_MSG_CHECKING([whether to enable HTML5 datalist support])
703 AC_ARG_ENABLE(datalist,
704               AC_HELP_STRING([--enable-datalist],
705                              [enable HTML5 datalist support [default=yes]]),
706               [],[enable_datalist="yes"])
707 AC_MSG_RESULT([$enable_datalist])
708
709 # check whether to enable HTML5 iframe seamless attribute support
710 AC_MSG_CHECKING([whether to enable HTML5 iframe seamless attribute support])
711 AC_ARG_ENABLE(iframe-seamless,
712               AC_HELP_STRING([--enable-iframe-seamless],
713                              [enable HTML5 iframe seamless attribute support [default=yes]]),
714               [],[enable_iframe_seamless="yes"])
715 AC_MSG_RESULT([$enable_iframe_seamless])
716
717 # check whether to enable HTML5 audio/video support
718 AC_MSG_CHECKING([whether to enable HTML5 video support])
719 AC_ARG_ENABLE(video,
720               AC_HELP_STRING([--enable-video],
721                              [enable HTML5 video support [default=yes]]),
722               [],[enable_video="yes"])
723 AC_MSG_RESULT([$enable_video])
724
725 # turn off video features if --disable-video is requested
726 if test "$enable_video" = "no"; then
727    enable_video_track=no
728 fi
729
730 # check whether to enable HTML5 video track support
731 AC_MSG_CHECKING([whether to enable HTML5 video track support])
732 AC_ARG_ENABLE(video_track,
733               AC_HELP_STRING([--enable-video-track],
734                              [enable HTML5 video track support [default=no]]),
735               [],[enable_video_track="no"])
736 AC_MSG_RESULT([$enable_video_track])
737
738 # check whether to enable media source support
739 AC_MSG_CHECKING([whether to enable media source support])
740 AC_ARG_ENABLE(media_source,
741               AC_HELP_STRING([--enable-media-source],
742                              [enable support for media source [default=no]]),
743               [], [enable_media_source="no"])
744 AC_MSG_RESULT([$enable_media_source])
745
746 # check whether to enable media statistics support
747 AC_MSG_CHECKING([whether to enable media statistics support])
748 AC_ARG_ENABLE(media_statistics,
749               AC_HELP_STRING([--enable-media-statistics],
750                              [enable support for media statistics [default=no]]),
751               [], [enable_media_statistics="no"])
752 AC_MSG_RESULT([$enable_media_statistics])
753
754 # check whether to enable Javascript Fullscreen API support
755 AC_MSG_CHECKING([whether to enable Fullscreen API support])
756 AC_ARG_ENABLE(fullscreen_api,
757               AC_HELP_STRING([--enable-fullscreen-api],
758                              [enable the Fullscreen API support [default=yes]]),
759               [],[enable_fullscreen_api="yes"])
760 AC_MSG_RESULT([$enable_fullscreen_api])
761
762 # check whether to enable media stream support
763 AC_MSG_CHECKING([whether to enable media stream support])
764 AC_ARG_ENABLE(media_stream,
765               AC_HELP_STRING([--enable-media-stream],
766                              [enable media stream support (incomplete) [default=no]]),
767               [],[enable_media_stream="no"])
768 AC_MSG_RESULT([$enable_media_stream])
769
770 # check whether to enable XSLT support
771 AC_MSG_CHECKING([whether to enable XSLT support])
772 AC_ARG_ENABLE(xslt,
773               AC_HELP_STRING([--enable-xslt],
774                              [enable support for XSLT [default=yes]]),
775               [],[enable_xslt="yes"])
776 AC_MSG_RESULT([$enable_xslt])
777
778 # check whether to enable geolocation support
779 AC_MSG_CHECKING([whether to enable geolocation support])
780 AC_ARG_ENABLE(geolocation,
781               AC_HELP_STRING([--enable-geolocation],
782                              [enable support for geolocation [default=yes]]),
783               [],[enable_geolocation="yes"])
784 AC_MSG_RESULT([$enable_geolocation])
785
786 # check whether to enable MathML support
787 AC_MSG_CHECKING([whether to enable MathML support])
788 AC_ARG_ENABLE(mathml,
789               AC_HELP_STRING([--enable-mathml],
790                              [enable support for MathML [default=yes]]),
791               [],[enable_mathml="yes"])
792 AC_MSG_RESULT([$enable_mathml])
793
794 # check whether to enable MHTML support
795 AC_MSG_CHECKING([whether to enable MHTML support])
796 AC_ARG_ENABLE(mhtml,
797               AC_HELP_STRING([--enable-mhtml],
798                              [enable support for MHTML [default=no]]),
799               [],[enable_mhtml="no"])
800 AC_MSG_RESULT([$enable_mhtml])
801
802 # check whether to enable SVG support
803 AC_MSG_CHECKING([whether to enable SVG support])
804 AC_ARG_ENABLE(svg,
805               AC_HELP_STRING([--enable-svg],
806                              [enable support for SVG [default=yes]]),
807               [],[enable_svg="yes"])
808 AC_MSG_RESULT([$enable_svg])
809
810 # check whether to enable Shadow DOM support
811 AC_MSG_CHECKING([whether to enable Shadow DOM support])
812 AC_ARG_ENABLE(shadow_dom,
813               AC_HELP_STRING([--enable-shadow-dom],
814                              [enable support for Shadow DOM [default=yes]]),
815               [],[enable_shadow_dom="yes"])
816 AC_MSG_RESULT([$enable_shadow_dom])
817
818 # check whether to enable SharedWorkers support
819 AC_MSG_CHECKING([whether to enable SharedWorkers support])
820 AC_ARG_ENABLE(shared_workers,
821               AC_HELP_STRING([--enable-shared-workers],
822                              [enable support for SharedWorkers [default=yes]]),
823               [],[enable_shared_workers="yes"])
824 AC_MSG_RESULT([$enable_shared_workers])
825
826 # check whether to enable Web Workers support
827 AC_MSG_CHECKING([whether to enable Web Workers support])
828 AC_ARG_ENABLE(workers,
829               AC_HELP_STRING([--enable-workers],
830                              [enable support for Web Workers [default=yes]]),
831               [],[enable_workers="yes"])
832 AC_MSG_RESULT([$enable_workers])
833
834 # check whether to enable directory upload support
835 AC_MSG_CHECKING([whether to enable directory upload support])
836 AC_ARG_ENABLE(directory_upload,
837               AC_HELP_STRING([--enable-directory-upload],
838                              [enable support for directory upload [default=no]]),
839               [], [enable_directory_upload="no"])
840 AC_MSG_RESULT([$enable_directory_upload])
841
842 # check whether to enable HTML5 FileSystem API support
843 AC_MSG_CHECKING([whether to enable HTML5 FileSystem API support])
844 AC_ARG_ENABLE(file_system,
845               AC_HELP_STRING([--enable-file-system],
846                              [enable support for HTML5 FileSystem API [default=no]]),
847               [], [enable_file_system="no"])
848 AC_MSG_RESULT([$enable_file_system])
849
850 # check whether to enable HTML5 <style scoped> support
851 AC_MSG_CHECKING([whether to enable HTML5 <style scoped> support])
852 AC_ARG_ENABLE(style_scoped,
853               AC_HELP_STRING([--enable-style-scoped],
854                              [enable support for HTML5 <style scoped> [default=no]]),
855               [], [enable_style_scoped="no"])
856 AC_MSG_RESULT([$enable_style_scoped])
857
858 # check whether to enable Quota API support
859 AC_MSG_CHECKING([whether to enable Quota API support])
860 AC_ARG_ENABLE(quota,
861               AC_HELP_STRING([--enable-quota],
862                              [enable support for Quota API [default=no]]),
863               [], [enable_quota="no"])
864 AC_MSG_RESULT([$enable_quota])
865
866 # turn off svg features if --disable-svg is requested
867 if test "$enable_svg" = "no"; then
868    enable_svg_fonts=no
869 fi
870
871 # check whether to enable support for filters
872 AC_MSG_CHECKING([whether to enable support for filters])
873 AC_ARG_ENABLE(filters,
874               AC_HELP_STRING([--enable-filters],
875                              [enable support for filters (experimental) [default=yes]]),
876               [],[enable_filters="yes"])
877 AC_MSG_RESULT([$enable_filters])
878
879 # check whether to enable support for SVG fonts
880 AC_MSG_CHECKING([whether to enable support for SVG fonts])
881 AC_ARG_ENABLE(svg_fonts,
882               AC_HELP_STRING([--enable-svg-fonts],
883                              [enable support for SVG fonts (experimental) [default=yes]]),
884               [],[enable_svg_fonts="yes"])
885 AC_MSG_RESULT([$enable_svg_fonts])
886
887 # check for SVG features, enabling SVG if necessary
888 if test "$enable_svg_fonts" = "yes"; then
889    svg_flags=yes
890    if test "$enable_svg" = "no"; then
891        AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support])
892        enable_svg=yes
893    fi
894 fi
895
896 # check whether to enable Web Socket support
897 AC_MSG_CHECKING([whether to enable Web Sockets support])
898 AC_ARG_ENABLE(web_sockets,
899               AC_HELP_STRING([--enable-web-sockets],
900                              [enable support for Web Sockets [default=yes]]),
901               [],[enable_web_sockets="yes"])
902 AC_MSG_RESULT([$enable_web_sockets])
903
904 # check whether to enable Web Audio support
905 AC_MSG_CHECKING([whether to enable Web Audio support])
906 AC_ARG_ENABLE(web_audio,
907               AC_HELP_STRING([--enable-web-audio],
908                              [enable support for Web Audio [default=no]]),
909               [],[enable_web_audio="no"])
910 AC_MSG_RESULT([$enable_web_audio])
911
912 # check whether to enable Web Timing support
913 AC_MSG_CHECKING([whether to enable Web Timing support])
914 AC_ARG_ENABLE(web_timing,
915               AC_HELP_STRING([--enable-web-timing],
916                              [enable support for Web Timing [default=no]]),
917               [],[enable_web_timing="no"])
918 AC_MSG_RESULT([$enable_web_timing])
919
920 # check whether to enable Blob support
921 AC_MSG_CHECKING([whether to enable Blob support])
922 AC_ARG_ENABLE(blob,
923               AC_HELP_STRING([--enable-blob],
924                              [enable support for Blob [default=yes]]),
925               [],[enable_blob="yes"])
926 AC_MSG_RESULT([$enable_blob])
927
928 # check whether to enable Legacy WebKitBlobBuilder support
929 AC_MSG_CHECKING([whether to enable Legacy WebKitBlobBuilder support])
930 AC_ARG_ENABLE(legacy_webkit_blob_builder,
931               AC_HELP_STRING([--enable-legacy-webkit-blob-builder],
932                              [enable support for Legacy WebKitBlobBuilder [default=yes]]),
933               [],[enable_legacy_webkit_blob_builder="yes"])
934 AC_MSG_RESULT([$legacy_webkit_blob_builder])
935
936 # check whether to enable Fast Mobile Scrolling support
937 AC_MSG_CHECKING([whether to enable Fast Mobile Scrolling])
938 AC_ARG_ENABLE(fast_mobile_scrolling,
939               AC_HELP_STRING([--enable-fast-mobile-scrolling],
940                              [enable support for Fast Mobile Scrolling [default=no]]),
941               [],[enable_fast_mobile_scrolling="no"])
942 AC_MSG_RESULT([$enable_fast_mobile_scrolling])
943
944 # check whether to enable code coverage
945 AC_MSG_CHECKING([whether to enable code coverage support])
946 AC_ARG_ENABLE(coverage,
947               AC_HELP_STRING([--enable-coverage],
948                              [enable code coverage support [default=no]]),
949               [],[enable_coverage="no"])
950 AC_MSG_RESULT([$enable_coverage])
951
952 # check whether to enable CSS flaxbox support
953 AC_MSG_CHECKING([whether to enable CSS3 flexbox support])
954 AC_ARG_ENABLE(css3_flexbox,
955               AC_HELP_STRING([--enable-css3-flexbox],
956                              [enable CSS3 flexbox support [default=no]]),
957               [],[enable_css3_flexbox="no"])
958 AC_MSG_RESULT([$enable_css3_flexbox])
959
960 # check whether to enable FastMalloc
961 AC_MSG_CHECKING([whether to enable optimized memory allocator])
962 AC_ARG_ENABLE(fast_malloc,
963               AC_HELP_STRING([--enable-fast-malloc],
964                              [enable optimized memory allocator default=yes, default=no for debug builds]),
965               [],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi])
966 AC_MSG_RESULT([$enable_fast_malloc])
967
968 # check whether to enable debug symbols
969 AC_MSG_CHECKING([whether to enable debug symbols])
970 AC_ARG_ENABLE(debug_symbols,
971               AC_HELP_STRING([--enable-debug-symbols],
972                              [enable debug symbols default=no, default=yes for debug builds]),
973               [],[if test "$enable_debug" = "yes"; then enable_debug_symbols="yes"; else enable_debug_symbols="no"; fi])
974 AC_MSG_RESULT([$enable_debug_symbols])
975
976 # check whether to enable debug features
977 AC_MSG_CHECKING([whether to enable debug features])
978 AC_ARG_ENABLE(debug_features,
979               AC_HELP_STRING([--enable-debug-features],
980                              [enable debug features default=no, default=yes for debug builds]),
981               [],[if test "$enable_debug" = "yes"; then enable_debug_features="yes"; else enable_debug_features="no"; fi])
982 AC_MSG_RESULT([$enable_debug_features])
983
984 AC_MSG_CHECKING([whether to enable JIT compilation])
985 AC_ARG_ENABLE(jit,
986               AS_HELP_STRING([--enable-jit],
987                              [Enable JIT compilation (default: autodetect)]))
988 case "$enable_jit" in
989   yes) JSC_CPPFLAGS="-DENABLE_JIT=1" ;;
990   no) JSC_CPPFLAGS="-DENABLE_JIT=0" ;;
991   *) enable_jit="autodetect" ;;
992 esac
993 AC_SUBST(JSC_CPPFLAGS)
994 AC_MSG_RESULT([$enable_jit])
995
996 # Opcode stats
997 AC_MSG_CHECKING([whether to enable opcode stats])
998 AC_ARG_ENABLE([opcode-stats],
999   [AS_HELP_STRING([--enable-opcode-stats], [Enable Opcode statistics (default: disabled)])],
1000   [], [enable_opcode_stats=no])
1001 AC_MSG_RESULT([$enable_opcode_stats])
1002
1003 if test "$enable_opcode_stats" = "yes"; then
1004   if test "$enable_jit" = "yes"; then
1005     AC_MSG_ERROR([JIT must be disabled for Opcode stats to work.])
1006   fi
1007   AC_DEFINE([ENABLE_OPCODE_STATS], [1], [Define to enable Opcode statistics])
1008 fi
1009
1010 # Link prefetch
1011 AC_MSG_CHECKING([whether to enable link prefetch support])
1012 AC_ARG_ENABLE([link-prefetch],
1013   [AS_HELP_STRING([--enable-link-prefetch], [Enable Link prefetch support (default: disabled)])],
1014   [],[enable_link_prefetch=no])
1015 AC_MSG_RESULT([$enable_link_prefetch])
1016
1017 if test "$enable_link_prefetch" = "yes"; then 
1018   AC_DEFINE([ENABLE_LINK_PREFETCH], [1], [Define to enable link prefetch support])
1019 fi
1020
1021 # GObject Introspection
1022 AC_MSG_CHECKING([whether to enable GObject introspection support])
1023 AC_ARG_ENABLE([introspection],
1024   [AS_HELP_STRING([--enable-introspection],[Enable GObject introspection (default: disabled)])],
1025   [],[enable_introspection=no])
1026 AC_MSG_RESULT([$enable_introspection])
1027
1028 # check whether to enable animation API
1029 AC_MSG_CHECKING([whether to enable Animation API support])
1030 AC_ARG_ENABLE(animation_api,
1031               AC_HELP_STRING([--enable-animation-api],
1032                              [enable support for Animation API (experimental) [default=no]]),
1033               [], [enable_animation_api="no"])
1034 AC_MSG_RESULT([$enable_animation_api])
1035
1036 # check whether to enable requestAnimationFrame support
1037 AC_MSG_CHECKING([whether to enable requestAnimationFrame support])
1038 AC_ARG_ENABLE(request_animation_frame,
1039               AC_HELP_STRING([--enable-request-animation-frame],
1040                              [enable support for requestAnimationFrame (experimental) [default=yes]]),
1041               [],[enable_request_animation_frame="yes"])
1042 AC_MSG_RESULT([$enable_request_animation_frame])
1043
1044 # check whether to enable touch icon loading 
1045 AC_MSG_CHECKING([whether to enable touch icon loading])
1046 AC_ARG_ENABLE(touch_icon_loading,
1047               AC_HELP_STRING([--enable-touch-icon-loading],
1048                              [enable support for loading touch icons [default=no]]),
1049               [], [enable_touch_icon_loading="no"])
1050 AC_MSG_RESULT([$enable_touch_icon_loading])
1051
1052 # check whether to enable Register Protocol Handler support
1053 AC_MSG_CHECKING([whether to enable Register Protocol Handler])
1054 AC_ARG_ENABLE(register_protocol_handler,
1055               AC_HELP_STRING([--enable-register-protocol-handler],
1056                              [enable support for Register Protocol Handler (experimental) [default=no]]),
1057               [],[enable_register_protocol_handler="no"])
1058 AC_MSG_RESULT([$enable_register_protocol_handler])
1059
1060 # check whether to enable DeviceOrientation support
1061 AC_MSG_CHECKING([whether to enable DeviceOrientation])
1062 AC_ARG_ENABLE(device_orientation,
1063               AC_HELP_STRING([--enable-device-orientation],
1064                              [enable support for DeviceOrientation (experimental and incomplete) [default=no]]),
1065               [],[enable_device_orientation="no"])
1066 AC_MSG_RESULT([$enable_device_orientation])
1067
1068 # check whether to enable Font Boosting support
1069 AC_MSG_CHECKING([whether to enable Font Boosting])
1070 AC_ARG_ENABLE(font_boosting,
1071               AC_HELP_STRING([--enable-font-boosting],
1072                              [enable support for Font Boosting (incomplete) [default=no]]),
1073               [],[enable_font_boosting="no"])
1074 AC_MSG_RESULT([$enable_font_boosting])
1075
1076 # check whether to enable CSS Exclusions support
1077 AC_MSG_CHECKING([whether to enable CSS Exclusions])
1078 AC_ARG_ENABLE(css_exclusions,
1079               AC_HELP_STRING([--enable-css-exclusions],
1080                              [enable support for CSS Exclusions [default=yes]]),
1081               [],[enable_css_exclusions="yes"])
1082 AC_MSG_RESULT([$enable_css_exclusions])
1083
1084 # check whether to enable CSS Regions support
1085 AC_MSG_CHECKING([whether to enable CSS Regions])
1086 AC_ARG_ENABLE(css_regions,
1087               AC_HELP_STRING([--enable-css-regions],
1088                              [enable support for CSS Regions [default=yes]]),
1089               [],[enable_css_regions="yes"])
1090 AC_MSG_RESULT([$enable_css_regions])
1091
1092 G_IR_SCANNER=
1093 G_IR_COMPILER=
1094 G_IR_GENERATE=
1095 GIRDIR=
1096 GIRTYPELIBDIR=
1097
1098 if test "$enable_introspection" = "yes"; then
1099   GOBJECT_INTROSPECTION_REQUIRED=0.9.5
1100   PKG_CHECK_MODULES([INTROSPECTION],[gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED])
1101   
1102   G_IR_SCANNER="$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)"
1103   G_IR_COMPILER="$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)"
1104   G_IR_GENERATE="$($PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0)"
1105   AC_DEFINE([ENABLE_INTROSPECTION],[1],[Define to enable GObject introspection support])
1106 fi
1107
1108 AC_SUBST([G_IR_SCANNER])
1109 AC_SUBST([G_IR_COMPILER])
1110 AC_SUBST([G_IR_GENERATE])
1111
1112 # determine the font backend
1113 AC_MSG_CHECKING([the font backend to use])
1114 AC_ARG_WITH(font_backend,
1115             AC_HELP_STRING([--with-font-backend=@<:@freetype/pango@:>@],
1116                            [Select font backend [default=freetype]]),
1117             [],[with_font_backend="freetype"])
1118
1119 case "$with_font_backend" in
1120      freetype|pango) ;;
1121      *) AC_MSG_ERROR([Invalid font backend: must be freetype or pango.]) ;;
1122 esac
1123 AC_MSG_RESULT([$with_font_backend])
1124
1125 if test "$host_cpu" = "sh4"; then
1126    CXXFLAGS="$CXXFLAGS -mieee -w"
1127    CFLAGS="$CFLAGS -mieee -w"
1128 fi
1129
1130 # Add '-g' flag to gcc to build with debug symbols
1131 if test "$enable_debug_symbols" = "yes"; then
1132    CXXFLAGS="$CXXFLAGS -g"
1133    CFLAGS="$CFLAGS -g"
1134 fi
1135
1136 if test "$enable_debug_features" = "no"; then
1137    AC_DEFINE([NDEBUG], [1], [Define to disable debugging features])
1138 fi
1139
1140 # Add the appropriate 'O' level for optimized builds
1141 if test "$enable_optimizations" = "yes"; then
1142    CXXFLAGS="$CXXFLAGS -O2"
1143    CFLAGS="$CFLAGS -O2"
1144 else
1145    CXXFLAGS="$CXXFLAGS -O0"
1146    CFLAGS="$CFLAGS -O0"
1147 fi
1148
1149 PKG_CHECK_MODULES([LIBSOUP],
1150                   [libsoup-2.4 >= $LIBSOUP_REQUIRED_VERSION])
1151 AC_SUBST([LIBSOUP_CFLAGS])
1152 AC_SUBST([LIBSOUP_LIBS])
1153
1154 # check if FreeType/FontConfig are available
1155 if test "$with_font_backend" = "freetype"; then
1156    if test "$with_target" = "directfb"; then
1157    PKG_CHECK_MODULES([FREETYPE],
1158                      [fontconfig >= $FONTCONFIG_REQUIRED_VERSION
1159                      freetype2 >= $FREETYPE2_REQUIRED_VERSION])
1160    else
1161    PKG_CHECK_MODULES([FREETYPE],
1162                      [cairo-ft
1163                      fontconfig >= $FONTCONFIG_REQUIRED_VERSION
1164                      freetype2 >= $FREETYPE2_REQUIRED_VERSION])
1165    fi
1166    AC_SUBST([FREETYPE_CFLAGS])
1167    AC_SUBST([FREETYPE_LIBS])
1168 fi
1169
1170 # check if SQLite3 is available. Error out only if one of the
1171 # features hard-depending on it is enabled while SQLite3 is
1172 # unavailable.
1173 PKG_CHECK_MODULES([SQLITE3],
1174                   [sqlite3 >= $SQLITE_REQUIRED_VERSION],
1175                   [sqlite3_has_pkg_config=yes],
1176                   [sqlite3_has_pkg_config=no])
1177 if test "$sqlite3_has_pkg_config" = "no"; then
1178    AC_SEARCH_LIBS([sqlite3_open16], [sqlite3],
1179                   [sqlite3_found=yes;SQLITE3_LIBS="$LIBS";SQLITE3_CFLAGS="-I $srcdir/WebKitLibraries/WebCoreSQLite3"],
1180                   [sqlite3_found=no])
1181 fi
1182 AC_SUBST([SQLITE3_CFLAGS])
1183 AC_SUBST([SQLITE3_LIBS])
1184
1185 if (test "$sqlite3_found" = "no"); then
1186    AC_MSG_ERROR([SQLite3 is required for the Database related features])
1187 fi
1188
1189 # check if libxslt is available
1190 if test "$enable_xslt" = "yes"; then
1191    PKG_CHECK_MODULES([LIBXSLT],[libxslt >= $LIBXSLT_REQUIRED_VERSION])
1192    AC_SUBST([LIBXSLT_CFLAGS])
1193    AC_SUBST([LIBXSLT_LIBS])
1194 fi
1195
1196 # check if geoclue is available
1197 if test "$enable_geolocation" = "yes"; then
1198     PKG_CHECK_MODULES([GEOCLUE], [geoclue])
1199     AC_SUBST([GEOCLUE_CFLAGS])
1200     AC_SUBST([GEOCLUE_LIBS])
1201 fi
1202
1203 # check for XRender under Linux/Unix. Some linkers require explicit
1204 # linkage (like GNU Gold), so we cannot rely on GTK+ pulling XRender
1205 if test "$os_win32" = "no"; then
1206    PKG_CHECK_MODULES([XRENDER], [xrender])
1207    AC_SUBST([XRENDER_CFLAGS])
1208    AC_SUBST([XRENDER_LIBS])
1209 fi
1210
1211 # check if gstreamer is available
1212 if test "$enable_video" = "yes" || test "$enable_web_audio" = "yes"; then
1213     gstreamer_modules="gstreamer-$GST_API_VERSION >= $GSTREAMER_REQUIRED_VERSION
1214                        gstreamer-app-$GST_API_VERSION
1215                        gstreamer-audio-$GST_API_VERSION
1216                        gstreamer-fft-$GST_API_VERSION
1217                        gstreamer-base-$GST_API_VERSION
1218                        gstreamer-pbutils-$GST_API_VERSION
1219                        gstreamer-plugins-base-$GST_API_VERSION >= $GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION
1220                        gstreamer-video-$GST_API_VERSION";
1221    if test "$GST_API_VERSION" != "1.0"; then
1222        gstreamer_modules="$gstreamer_modules gstreamer-interfaces-$GST_API_VERSION";
1223    fi
1224    PKG_CHECK_MODULES([GSTREAMER], [$gstreamer_modules], [have_gstreamer=yes])
1225    AC_SUBST([GSTREAMER_CFLAGS])
1226    AC_SUBST([GSTREAMER_LIBS])
1227 fi
1228
1229
1230 if test "$with_accelerated_compositing" = "clutter"; then
1231    PKG_CHECK_MODULES(CLUTTER, clutter-1.0 >= $CLUTTER_REQUIRED_VERSION)
1232    PKG_CHECK_MODULES([CLUTTER_GTK],
1233                      [clutter-gtk-1.0 >= $CLUTTER_GTK_REQUIRED_VERSION])
1234
1235    AC_SUBST(CLUTTER_CFLAGS)
1236    AC_SUBST(CLUTTER_LIBS)
1237    AC_SUBST(CLUTTER_GTK_CFLAGS)
1238    AC_SUBST(CLUTTER_GTK_LIBS)
1239 fi
1240
1241 # check if atspi2 is available (only needed for Webkit2 unit tests)
1242 if test "$enable_webkit2" = "yes"; then
1243    PKG_CHECK_MODULES([ATSPI2],
1244                      [atspi-2 >= $ATSPI2_REQUIRED_VERSION],
1245                      [have_atspi2=yes], [have_atspi2=no])
1246
1247    AC_SUBST([ATSPI2_CFLAGS])
1248    AC_SUBST([ATSPI2_LIBS])
1249 fi
1250
1251 # check for code coverage support
1252 if test "$enable_coverage" = "yes"; then
1253    COVERAGE_CFLAGS="-MD"
1254    COVERAGE_LDFLAGS="-ftest-coverage -fprofile-arcs"
1255    AC_SUBST([COVERAGE_CFLAGS])
1256    AC_SUBST([COVERAGE_LDFLAGS])
1257 fi
1258
1259 # check for HTML features
1260 if test "$enable_video" = "yes"; then
1261     html_flags=yes
1262 fi
1263
1264 # WebKit2
1265 # If you change the default here, please also make sure the assumptions made
1266 # in Tools/Scripts/webkitdirs.pm:buildAutotoolsProject still make sense.
1267 AC_MSG_CHECKING([whether to build Webkit2])
1268 AC_ARG_ENABLE(webkit2,
1269     AC_HELP_STRING([--enable-webkit2], [build webkit2 [default=yes]]),
1270     [], [enable_webkit2="yes"])
1271 AC_MSG_RESULT([$enable_webkit2])
1272 if test "$enable_webkit2" = "yes"; then
1273    if test "$GTK_API_VERSION" = "2.0"; then
1274       AC_MSG_ERROR([WebKit2 requires GTK+ 3.x, use --with-gtk=3.0])
1275    fi
1276
1277    # Check Unix printing
1278    PKG_CHECK_MODULES(GTK_UNIX_PRINTING, gtk+-unix-print-3.0,
1279                      [have_gtk_unix_printing=yes],
1280                      [have_gtk_unix_printing=no])
1281    AC_SUBST(GTK_UNIX_PRINTING_CFLAGS)
1282    AC_SUBST(GTK_UNIX_PRINTING_LIBS)
1283    if test "$have_gtk_unix_printing" = "yes"; then
1284        AC_DEFINE([HAVE_GTK_UNIX_PRINTING], [1], [Define if GTK+ UNIX Printing is available])
1285    fi
1286 fi
1287
1288 # Plugin Process
1289 AC_MSG_CHECKING([whether to build plugin process for WebKit2])
1290 AC_ARG_ENABLE(plugin_process,
1291             AC_HELP_STRING([--enable-plugin-process], [build plugin process for WebKit2 [default=yes]]),
1292                            [], [enable_plugin_process="yes"])
1293 AC_MSG_RESULT([$enable_plugin_process])
1294
1295 # Build the plugin process only when building Webkit2.
1296 if test "$enable_webkit2" = "no"; then
1297     enable_plugin_process=no
1298 fi
1299
1300 # Make sure we have GTK+ 2.x to build the plugin process.
1301 if test "$enable_plugin_process" = "yes"; then
1302    PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= $GTK2_REQUIRED_VERSION gail >= $GAIL2_REQUIRED_VERSION)
1303 fi
1304 AC_SUBST(GTK2_CFLAGS)
1305 AC_SUBST(GTK2_LIBS)
1306
1307 GTK_DOC_CHECK([1.10])
1308
1309 # OS conditionals
1310 AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])
1311 AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"])
1312 AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
1313 AM_CONDITIONAL([OS_GNU],[test "$os_gnu" = "yes"])
1314 AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
1315
1316 # target conditionals
1317 AM_CONDITIONAL([TARGET_X11], [test "$with_target" = "x11"])
1318 AM_CONDITIONAL([TARGET_WIN32], [test "$with_target" = "win32"])
1319 AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"])
1320 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"])
1321
1322 # Unicode backend conditionals
1323 AM_CONDITIONAL([USE_ICU_UNICODE], [test "$with_unicode_backend" = "icu"])
1324 AM_CONDITIONAL([USE_GLIB_UNICODE], [test "$with_unicode_backend" = "glib"])
1325
1326 # Font backend conditionals
1327 AM_CONDITIONAL([USE_FREETYPE], [test "$with_font_backend" = "freetype"])
1328 AM_CONDITIONAL([USE_PANGO], [test "$with_font_backend" = "pango"])
1329
1330 # GStreamer feature conditional
1331 AM_CONDITIONAL([USE_GSTREAMER], [test "$have_gstreamer" = "yes"])
1332 AM_CONDITIONAL([USE_WEBAUDIO_GSTREAMER], [test "$enable_web_audio" = "yes"])
1333
1334 # ATSPI2 conditional
1335 AM_CONDITIONAL([HAVE_ATSPI2], [test "$have_atspi2" = "yes"])
1336
1337 # Accelerated compositing conditional
1338 AM_CONDITIONAL([USE_ACCELERATED_COMPOSITING], [test "$with_accelerated_compositing" = "cairo" || test "$with_accelerated_compositing" = "opengl" || test "$with_accelerated_compositing" = "clutter"])
1339 AM_CONDITIONAL([USE_TEXTURE_MAPPER_CAIRO], [test "$with_accelerated_compositing" = "cairo"])
1340 AM_CONDITIONAL([USE_TEXTURE_MAPPER_GL], [test "$with_accelerated_compositing" = "opengl"])
1341 AM_CONDITIONAL([USE_CLUTTER], [test "$with_accelerated_compositing" = "clutter"])
1342
1343 # These are the same now, but they will soon be separate.
1344 AM_CONDITIONAL([USE_GLX], [test "$with_accelerated_compositing" = "opengl" || test "$enable_webgl" = "yes"])
1345 AM_CONDITIONAL([USE_OPENGL], [test "$with_accelerated_compositing" = "opengl" || test "$enable_webgl" = "yes"])
1346
1347 # IndexedDB implies LevelDB, but other features may one day require LevelDB.
1348 AM_CONDITIONAL([ENABLE_INDEXED_DATABASE],[test "$enable_indexed_database" = "yes"])
1349 AM_CONDITIONAL([USE_LEVELDB],[test "$enable_indexed_database" = "yes"])
1350
1351 # WebKit feature conditionals
1352 AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug_features" = "yes"])
1353 AM_CONDITIONAL([ENABLE_WEBGL],[test "$enable_webgl" = "yes"])
1354 AM_CONDITIONAL([ENABLE_BLOB],[test "$enable_blob" = "yes"])
1355 AM_CONDITIONAL([ENABLE_LEGACY_WEBKIT_BLOB_BUILDER],[test "$enable_legacy_webkit_blob_builder" = "yes"])
1356 AM_CONDITIONAL([ENABLE_METER_TAG],[test "$enable_meter_tag" = "yes"])
1357 AM_CONDITIONAL([ENABLE_MICRODATA],[test "$enable_microdata" = "yes"])
1358 AM_CONDITIONAL([ENABLE_PAGE_VISIBILITY_API],[test "$enable_page_visibility_api" = "yes"])
1359 AM_CONDITIONAL([ENABLE_PROGRESS_TAG],[test "$enable_progress_tag" = "yes"])
1360 AM_CONDITIONAL([ENABLE_CHANNEL_MESSAGING],[test "$enable_channel_messaging" = "yes"])
1361 AM_CONDITIONAL([ENABLE_JAVASCRIPT_DEBUGGER],[test "$enable_javascript_debugger" = "yes"])
1362 AM_CONDITIONAL([ENABLE_GAMEPAD],[test "$enable_gamepad" = "yes"])
1363 AM_CONDITIONAL([ENABLE_DIRECTORY_UPLOAD],[test "$enable_directory_upload" = "yes"])
1364 AM_CONDITIONAL([ENABLE_DATA_TRANSFER_ITEMS],[test "$enable_data_transfer_items" = "yes"])
1365 AM_CONDITIONAL([ENABLE_SQL_DATABASE],[test "$enable_sql_database" = "yes"])
1366 AM_CONDITIONAL([ENABLE_DATALIST],[test "$enable_datalist" = "yes"])
1367 AM_CONDITIONAL([ENABLE_DETAILS],[test "$enable_details" = "yes"])
1368 AM_CONDITIONAL([ENABLE_FAST_MOBILE_SCROLLING],[test "$enable_fast_mobile_scrolling" = "yes"])
1369 AM_CONDITIONAL([ENABLE_FILE_SYSTEM],[test "$enable_file_system" = "yes"])
1370 AM_CONDITIONAL([ENABLE_STYLE_SCOPED],[test "$enable_style_scoped" = "yes"])
1371 AM_CONDITIONAL([ENABLE_QUOTA],[test "$enable_quota" = "yes"])
1372 AM_CONDITIONAL([ENABLE_ICONDATABASE],[test "$enable_icon_database" = "yes"])
1373 AM_CONDITIONAL([ENABLE_INPUT_TYPE_COLOR],[test "$enable_input_type_color" = "yes"])
1374 AM_CONDITIONAL([ENABLE_INPUT_SPEECH],[test "$enable_input_speech" = "yes"])
1375 AM_CONDITIONAL([ENABLE_SCRIPTED_SPEECH],[test "$enable_scripted_speech" = "yes"])
1376 AM_CONDITIONAL([ENABLE_XSLT],[test "$enable_xslt" = "yes"])
1377 AM_CONDITIONAL([ENABLE_FILTERS],[test "$enable_filters" = "yes"])
1378 AM_CONDITIONAL([ENABLE_GEOLOCATION], [test "$enable_geolocation" = "yes"])
1379 AM_CONDITIONAL([ENABLE_MATHML], [test "$enable_mathml" = "yes"])
1380 AM_CONDITIONAL([ENABLE_MHTML], [test "$enable_mhtml" = "yes"])
1381 AM_CONDITIONAL([ENABLE_VIDEO],[test "$enable_video" = "yes"])
1382 AM_CONDITIONAL([ENABLE_MEDIA_SOURCE],[test "$enable_media_source" = "yes"])
1383 AM_CONDITIONAL([ENABLE_MEDIA_STATISTICS],[test "$enable_media_statistics" = "yes"])
1384 AM_CONDITIONAL([ENABLE_VIDEO_TRACK],[test "$enable_video_track" = "yes"])
1385 AM_CONDITIONAL([ENABLE_FULLSCREEN_API],[test "$enable_fullscreen_api" = "yes"])
1386 AM_CONDITIONAL([ENABLE_MEDIA_STREAM],[test "$enable_media_stream" = "yes"])
1387 AM_CONDITIONAL([ENABLE_LEGACY_NOTIFICATIONS],[test "$enable_legacy_notifications" = "yes"])
1388 AM_CONDITIONAL([ENABLE_NOTIFICATIONS],[test "$enable_notifications" = "yes"])
1389 AM_CONDITIONAL([ENABLE_ORIENTATION_EVENTS],[test "$enable_orientation_events" = "yes"])
1390 AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"])
1391 AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"])
1392 AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"])
1393 AM_CONDITIONAL([ENABLE_CSS3_FLEXBOX],[test "$enable_css3_flexbox" = "yes"])
1394 AM_CONDITIONAL([ENABLE_FAST_MALLOC],[test "$enable_fast_malloc" = "yes"])
1395 AM_CONDITIONAL([ENABLE_WORKERS],[test "$enable_workers" = "yes"])
1396 AM_CONDITIONAL([ENABLE_SHADOW_DOM],[test "$enable_shadow_dom" = "yes"])
1397 AM_CONDITIONAL([ENABLE_SHARED_WORKERS],[test "$enable_shared_workers" = "yes"])
1398 AM_CONDITIONAL([SVG_FLAGS],[test "$svg_flags" = "yes"])
1399 AM_CONDITIONAL([HTML_FLAGS],[test "$html_flags" = "yes"])
1400 AM_CONDITIONAL([ENABLE_WEB_SOCKETS],[test "$enable_web_sockets" = "yes"])
1401 AM_CONDITIONAL([ENABLE_WEB_AUDIO],[test "$enable_web_audio" = "yes"])
1402 AM_CONDITIONAL([ENABLE_WEB_TIMING],[test "$enable_web_timing" = "yes"])
1403 AM_CONDITIONAL([ENABLE_OPCODE_STATS],[test "$enable_opcode_stats" = "yes"])
1404 AM_CONDITIONAL([ENABLE_WEBKIT2],[test "$enable_webkit2" = "yes"])
1405 AM_CONDITIONAL([ENABLE_PLUGIN_PROCESS],[test "$enable_plugin_process" = "yes"])
1406 AM_CONDITIONAL([ENABLE_SPELLCHECK],[test "$enable_spellcheck" = "yes"])
1407 AM_CONDITIONAL([ENABLE_ANIMATION_API],[test "$enable_animation_api" = "yes"])
1408 AM_CONDITIONAL([ENABLE_REQUEST_ANIMATION_FRAME],[test "$enable_request_animation_frame" = "yes"])
1409 AM_CONDITIONAL([ENABLE_TOUCH_ICON_LOADING],[test "$enable_touch_icon_loading" = "yes"])
1410 AM_CONDITIONAL([ENABLE_REGISTER_PROTOCOL_HANDLER],[test "$enable_register_protocol_handler" = "yes"])
1411 AM_CONDITIONAL([ENABLE_DEVICE_ORIENTATION],[test "$enable_device_orientation" = "yes"])
1412 AM_CONDITIONAL([ENABLE_MUTATION_OBSERVERS],[test "$enable_mutation_observers" = "yes"])
1413 AM_CONDITIONAL([ENABLE_IFRAME_SEAMLESS],[test "$enable_iframe_seamless" = "yes"])
1414 AM_CONDITIONAL([ENABLE_FONT_BOOSTING],[test "$enable_font_boosting" = "yes"])
1415 AM_CONDITIONAL([ENABLE_CSS_EXCLUSIONS],[test "$enable_css_exclusions" = "yes"])
1416 AM_CONDITIONAL([ENABLE_CSS_REGIONS],[test "$enable_css_regions" = "yes"])
1417
1418 # Gtk conditionals
1419 AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"])
1420
1421 AC_CONFIG_FILES([
1422 GNUmakefile
1423 ])
1424  
1425
1426 AC_CONFIG_FILES([
1427 Source/WebKit/gtk/webkit/webkitversion.h
1428 ])
1429
1430 AC_CONFIG_FILES([
1431 Source/WebKit/gtk/${WEBKITGTK_PC_NAME}-${WEBKITGTK_API_VERSION}.pc:Source/WebKit/gtk/webkit.pc.in
1432 Source/WebKit/gtk/JSCore-${WEBKITGTK_API_VERSION}.gir:Source/WebKit/gtk/JSCore.gir.in
1433 Source/JavaScriptCore/javascriptcoregtk-${WEBKITGTK_API_VERSION}.pc:Source/JavaScriptCore/javascriptcoregtk.pc.in
1434 ]
1435 ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
1436 )
1437
1438
1439 if test "$enable_webkit2" = "yes"; then
1440     AC_CONFIG_FILES([
1441     Source/WebKit2/webkit2gtk-${WEBKITGTK_API_VERSION}.pc:Source/WebKit2/webkit2gtk.pc.in
1442     ]
1443     ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
1444     )
1445 fi
1446
1447 AC_OUTPUT
1448
1449 echo "
1450 WebKit was configured with the following options:
1451
1452 Build configuration:
1453  Enable debugging (slow)                                  : $enable_debug
1454  Compile with debug symbols (slow)                        : $enable_debug_symbols
1455  Enable debug features (slow)                             : $enable_debug_features
1456  Enable GCC build optimization                            : $enable_optimizations
1457  Code coverage support                                    : $enable_coverage
1458  Unicode backend                                          : $with_unicode_backend
1459  Font backend                                             : $with_font_backend
1460  Optimized memory allocator                               : $enable_fast_malloc
1461  Accelerated Compositing                                  : $with_accelerated_compositing
1462
1463 Features:
1464  Animation API                                            : $enable_animation_api
1465  Blob support                                             : $enable_blob
1466  Color input support                                      : $enable_input_type_color
1467  CSS3 Flexbox support                                     : $enable_css3_flexbox
1468  CSS Exclusions support                                   : $enable_css_exclusions
1469  CSS Regions support                                      : $enable_css_regions
1470  DeviceOrientation support                                : $enable_device_orientation
1471  Directory upload                                         : $enable_directory_upload
1472  DOM mutation observer support                            : $enable_mutation_observers
1473  Fast Mobile Scrolling                                    : $enable_fast_mobile_scrolling
1474  Filters support                                          : $enable_filters
1475  Font Boosting support                                    : $enable_font_boosting
1476  Fullscreen API support                                   : $enable_fullscreen_api
1477  Gamepad support                                          : $enable_gamepad
1478  Geolocation support                                      : $enable_geolocation
1479  HTML5 channel messaging support                          : $enable_channel_messaging
1480  HTML5 data transfer items support                        : $enable_data_transfer_items
1481  HTML5 FileSystem API support                             : $enable_file_system
1482  HTML5 iframe seamless attribute support                  : $enable_iframe_seamless
1483  HTML5 meter element support                              : $enable_meter_tag
1484  HTML5 microdata support                                  : $enable_microdata
1485  HTML5 progress element support                           : $enable_progress_tag
1486  HTML5 track element support                              : $enable_video_track
1487  HTML5 video element support                              : $enable_video
1488  Icon database support                                    : $enable_icon_database
1489  JavaScript debugger/profiler support                     : $enable_javascript_debugger
1490  JIT compilation                                          : $enable_jit
1491  Legacy WebKitBlobBuilder support                         : $enable_legacy_webkit_blob_builder
1492  Link prefetch support                                    : $enable_link_prefetch
1493  MathML support                                           : $enable_mathml
1494  Media source                                             : $enable_media_source
1495  Media statistics                                         : $enable_media_statistics
1496  Media stream support                                     : $enable_media_stream
1497  MHTML support                                            : $enable_mhtml
1498  Opcode stats                                             : $enable_opcode_stats
1499  Page Visibility API support                              : $enable_page_visibility_api
1500  Quota API support                                        : $enable_quota
1501  Register Protocol Handler support                        : $enable_register_protocol_handler
1502  RequestAnimationFrame support                            : $enable_request_animation_frame
1503  Scripted speech support                                  : $enable_scripted_speech
1504  Shadow DOM support                                       : $enable_shadow_dom
1505  SharedWorkers support                                    : $enable_shared_workers
1506  Speech input support                                     : $enable_input_speech
1507  Spellcheck support                                       : $enable_spellcheck
1508  SQL client-side database storage support                 : $enable_sql_database
1509  SVG fonts support                                        : $enable_svg_fonts
1510  SVG support                                              : $enable_svg
1511  Touch Icon Loading support                               : $enable_touch_icon_loading
1512  Web Audio support                                        : $enable_web_audio
1513  WebGL                                                    : $enable_webgl
1514  Web Sockets support                                      : $enable_web_sockets
1515  Web Timing support                                       : $enable_web_timing
1516  Web Workers support                                      : $enable_workers
1517  XSLT support                                             : $enable_xslt
1518
1519 WebKit2 support:
1520  WebKit2 support                                          : $enable_webkit2
1521  WebKit2 plugin process                                   : $enable_plugin_process
1522
1523 GTK+ configuration:
1524  GTK+ version                                             : $with_gtk
1525  GDK target                                               : $with_target
1526  GStreamer version                                        : $with_gstreamer
1527  Introspection support                                    : $enable_introspection
1528  Generate documentation                                   : $enable_gtk_doc
1529 "
1530 if test "$with_unicode_backend" = "glib"; then
1531    echo "     >> WARNING: the glib-based unicode backend is slow and incomplete <<"
1532    echo
1533    echo
1534 fi