tizen beta release
[profile/ivi/webkit-efl.git] / configure.ac
1 AC_PREREQ(2.59)
2
3 m4_define([webkit_major_version], [1])
4 m4_define([webkit_minor_version], [7])
5 m4_define([webkit_micro_version], [2])
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], [535])
12 m4_define([webkit_user_agent_minor_version], [10])
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=11:2:11
39 AC_SUBST([LIBWEBKITGTK_VERSION])
40
41 AM_INIT_AUTOMAKE([foreign subdir-objects dist-xz no-dist-gzip tar-ustar])
42
43 # Use AM_SILENT_RULES if present
44 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
45
46 # host checking - inspired by the GTK+ configure.in
47 # TODO: move these to webkit.m4?
48 AC_MSG_CHECKING([for native Win32])
49 case "$host" in
50      *-*-mingw*)
51        os_win32=yes
52        ;;
53      *)
54        os_win32=no
55        ;;
56 esac
57 AC_MSG_RESULT([$os_win32])
58
59 case "$host" in
60      *-*-linux*)
61        os_linux=yes
62        ;;
63      *-*-freebsd*)
64        os_freebsd=yes
65        ;;
66      *-*-darwin*)
67        os_darwin=yes
68        ;;
69 esac
70
71 case "$host_os" in
72      gnu* | linux* | k*bsd*-gnu)
73        os_gnu=yes
74        ;;
75      *)
76        os_gnu=no
77        ;;
78 esac
79
80 # initialize webkit options
81 WEBKIT_INIT
82 AC_DISABLE_STATIC
83 AC_LIBTOOL_WIN32_DLL
84 AC_PROG_LIBTOOL
85 # use dolt to speedup the build
86 DOLT
87
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])
91 else
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]))
95 fi
96
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])
100 fi
101
102 # Disable C++0x compat warnings for GCC >= 4.6.0 until we build
103 # cleanly with that.
104 if test "$CXX" = "g++"; then
105    CXX_VERSION=`$CXX -dumpversion`
106    AX_COMPARE_VERSION([$CXX_VERSION],[ge],[4.6.0],CXXFLAGS="$CXXFLAGS -Wno-c++0x-compat")
107 fi
108
109 # pthread (not needed on Windows)
110 if test "$os_win32" = "no"; then
111 AC_CHECK_HEADERS([pthread.h],
112                  AC_DEFINE([HAVE_PTHREAD_H],[1],[Define if pthread exists])
113                  AC_DEFINE([WTF_USE_PTHREADS],[1],[Use pthreads]),
114                  AC_MSG_ERROR([pthread support is required to build WebKit]))
115 AC_CHECK_LIB(pthread, pthread_rwlock_init,
116                  AC_DEFINE([HAVE_PTHREAD_RWLOCK],[1],[Define if pthread rwlock is present]),
117                  AC_MSG_WARN([pthread rwlock support is not available]))
118 fi
119
120 # check for libjpeg the way Gtk does it.
121 AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
122                    jpeg_ok=yes, jpeg_ok=no
123                    AC_MSG_ERROR([JPEG library (libjpeg) not found]))
124 if test "$jpeg_ok" = yes; then
125    AC_MSG_CHECKING([for jpeglib])
126    AC_TRY_CPP(
127 [#include <stdio.h>
128 #undef PACKAGE
129 #undef VERSION
130 #undef HAVE_STDLIB_H
131 #include <jpeglib.h>],
132          jpeg_ok=yes,
133          jpeg_ok=no)
134    AC_MSG_RESULT($jpeg_ok)
135    if test "$jpeg_ok" = yes; then
136       JPEG_LIBS="-ljpeg"
137       # should we check for progressive JPEG like GTK+ as well?
138    else
139       AC_MSG_ERROR([JPEG library (libjpeg) not found])
140    fi
141 fi
142 AC_SUBST([JPEG_LIBS])
143
144 # Check for libpng the way Gtk+ does it
145 for l in libpng libpng14 libpng12; do
146   AC_MSG_CHECKING(for $l)
147   if $PKG_CONFIG --exists $l ; then
148     AC_MSG_RESULT(yes)
149     PNG_LIBS=`$PKG_CONFIG --libs $l`
150     png_ok=yes
151     break
152 else
153   AC_MSG_RESULT(no)
154     png_ok=no
155   fi
156 done
157 if test "$png_ok" != yes; then
158   AC_CHECK_LIB(png, png_read_info,
159     [AC_CHECK_HEADER(png.h,
160       png_ok=yes,
161       png_ok=no)],
162     AC_MSG_ERROR([PNG library (libpng) not found]), -lz -lm)
163   if test "$png_ok" = yes; then
164     AC_MSG_CHECKING([for png_structp in png.h])
165     AC_TRY_COMPILE([#include <png.h>],
166       [png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;],
167       png_ok=yes,
168       png_ok=no)
169     AC_MSG_RESULT($png_ok)
170     if test "$png_ok" = yes; then
171       PNG_LIBS='-lpng -lz'
172     else
173       AC_MSG_ERROR([PNG library (libpng) not found])
174     fi
175   else
176    AC_MSG_ERROR([PNG library (libpng) not found])
177   fi
178 fi
179 AC_SUBST([PNG_LIBS])
180
181
182 if test "$os_win32" = "yes"; then
183   WINMM_LIBS=-lwinmm
184   SHLWAPI_LIBS=-lshlwapi
185   OLE32_LIBS=-lole32
186 fi
187 AC_SUBST([WINMM_LIBS])
188 AC_SUBST([SHLWAPI_LIBS])
189 AC_SUBST([OLE32_LIBS])
190
191
192 # determine the GTK+ version to use
193 AC_MSG_CHECKING([the GTK+ version to use])
194 AC_ARG_WITH([gtk],
195         [AS_HELP_STRING([--with-gtk=2.0|3.0], [the GTK+ version to use (default: 3.0)])],
196         [case "$with_gtk" in
197         2.0|3.0) ;;
198         *) AC_MSG_ERROR([invalid GTK+ version specified]) ;;
199         esac],
200         [with_gtk=3.0])
201 AC_MSG_RESULT([$with_gtk])
202
203 GTK2_REQUIRED_VERSION=2.10
204 GAIL2_REQUIRED_VERSION=1.8
205 GTK3_REQUIRED_VERSION=3.0
206 GAIL3_REQUIRED_VERSION=3.0
207
208 case "$with_gtk" in
209      2.0) GTK_REQUIRED_VERSION=$GTK2_REQUIRED_VERSION
210           GTK_API_VERSION=2.0
211           WEBKITGTK_API_MAJOR_VERSION=1
212           WEBKITGTK_API_MINOR_VERSION=0
213           WEBKITGTK_API_VERSION=1.0
214           WEBKITGTK_PC_NAME=webkit
215           GAIL_PC_NAME=gail
216           GAIL_REQUIRED_VERSION=$GAIL2_REQUIRED_VERSION
217           ;;
218      3.0) GTK_REQUIRED_VERSION=$GTK3_REQUIRED_VERSION
219           GTK_API_VERSION=3.0
220           WEBKITGTK_API_MAJOR_VERSION=3
221           WEBKITGTK_API_MINOR_VERSION=0
222           WEBKITGTK_API_VERSION=3.0
223           WEBKITGTK_PC_NAME=webkitgtk
224           GAIL_PC_NAME=gail-3.0
225           GAIL_REQUIRED_VERSION=$GAIL3_REQUIRED_VERSION
226           ;;
227 esac
228
229 AC_SUBST([WEBKITGTK_API_MAJOR_VERSION])
230 AC_SUBST([WEBKITGTK_API_MINOR_VERSION])
231 AC_SUBST([WEBKITGTK_API_VERSION])
232 AC_SUBST([WEBKITGTK_PC_NAME])
233 AC_SUBST([GTK_API_VERSION])
234 AM_CONDITIONAL([GTK_API_VERSION_2],[test "$GTK_API_VERSION" = "2.0"])
235
236 # determine the GDK/GTK+ target
237 AC_MSG_CHECKING([the target windowing system])
238 AC_ARG_WITH(target,
239             AC_HELP_STRING([--with-target=@<:@x11/win32/quartz/directfb@:>@],
240                            [Select webkit target [default=x11]]),
241             [],[with_target="x11"])
242
243 case "$with_target" in
244      x11|win32|quartz|directfb) ;;
245      *) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;;
246 esac
247
248 AC_MSG_RESULT([$with_target])
249
250 AC_MSG_CHECKING([for Hildon UI extensions])
251 AC_ARG_WITH(hildon,
252             AC_HELP_STRING([--with-hildon],
253                            [Use Hildon UI extensions [default=no]]),
254             [],[with_hildon="no"])
255 AC_MSG_RESULT([$with_hildon])
256
257 if test "$with_hildon" = "yes"; then
258     HILDON_CPPFLAGS="-DMAEMO_CHANGES"
259     PKG_CHECK_MODULES([HILDON], [hildon-1])
260     AC_SUBST([HILDON_CPPFLAGS])
261     AC_SUBST([HILDON_CFLAGS])
262     AC_SUBST([HILDON_LIBS])
263 fi
264
265 # determine the efl target
266 AC_MSG_CHECKING([the efl target to build])
267 AC_ARG_WITH(efl_target,
268             AC_HELP_STRING([--with-efl-target=@<:@arm/i386@:>@],
269                            [Select Network backend [default=arm]]),
270             [],[with_efl_target="arm"])
271 case "$with_efl_target" in
272       arm|i386) ;;
273       *) AC_MSG_ERROR([Invalid efl target: must be arm, i386.]) ;;
274 esac
275 AC_MSG_RESULT([$with_efl_target])
276
277 # check whether to enable SLP multimedia player
278 AC_MSG_CHECKING([whether to enable multimedia player support])
279 AC_ARG_ENABLE(mm-player,
280               AC_HELP_STRING([--enable-mm-player],
281                              [enable multimedia player support [default=yes]]),
282               [],[enable_mm_player="yes"])
283 AC_MSG_RESULT([$enable_mm_player])
284
285 # determine the http backend
286 AC_MSG_CHECKING([the HTTP backend to use])
287 AC_ARG_WITH(http_backend,
288             AC_HELP_STRING([--with-http-backend=@<:@curl/soup@:>@],
289                            [Select HTTP backend [default=soup]]),
290             [],[with_http_backend="soup"])
291 case "$with_http_backend" in
292       curl|soup) ;;
293       *) AC_MSG_ERROR([Invalid HTTP backend: must be curl, soup.]) ;;
294 esac
295 AC_MSG_RESULT([$with_http_backend])
296
297 # check whether to enable enchant support
298 AC_MSG_CHECKING([whether to enable enchant support])
299 AC_ARG_ENABLE(enchant,
300               AC_HELP_STRING([--enable-enchant],
301                             [enable support for enchant [default=no]]),                                     [],[enable_enchant="no"])
302 AC_MSG_RESULT([$enable_enchant])
303
304 if test "$enable_enchant" = "yes"; then
305 PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED_VERSION)
306 AC_SUBST(ENCHANT_CFLAGS)
307 AC_SUBST(ENCHANT_LIBS)
308 fi
309
310 # minimum base dependencies
311 LIBSOUP_REQUIRED_VERSION=2.33.6
312 CAIRO_REQUIRED_VERSION=1.10
313 FONTCONFIG_REQUIRED_VERSION=2.4
314 FREETYPE2_REQUIRED_VERSION=9.0
315 LIBXML_REQUIRED_VERSION=2.6
316
317 # minimum GTK+ base dependencies
318 PANGO_REQUIRED_VERSION=1.12
319
320 # optional modules
321 LIBXSLT_REQUIRED_VERSION=1.1.7
322 SQLITE_REQUIRED_VERSION=3.0
323 GSTREAMER_REQUIRED_VERSION=0.10
324 GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION=0.10.30
325 ENCHANT_REQUIRED_VERSION=0.22
326 LIBFFTW_REQUIRED_VERSION=3.2.2
327
328 # Available modules
329 #
330 # glib - glib and includes gthread
331 # unicode - check and identify which unicode backend to use
332 #
333 # todo: webcore gtk
334 WEBKIT_CHECK_DEPENDENCIES([glib unicode])
335
336 GETTEXT_PACKAGE=$PACKAGE-$GTK_API_VERSION
337 AC_SUBST(GETTEXT_PACKAGE)
338 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
339                    [The gettext catalog name])
340
341 PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED_VERSION)
342 AC_SUBST(LIBXML_CFLAGS)
343 AC_SUBST(LIBXML_LIBS)
344
345 PKG_CHECK_MODULES(PANGO, 
346                   [pango >= $PANGO_REQUIRED_VERSION
347                    pangoft2])
348 AC_SUBST(PANGO_CFLAGS)
349 AC_SUBST(PANGO_LIBS)
350
351 AC_MSG_CHECKING([whether to enable spellcheck support])
352 AC_ARG_ENABLE([spellcheck],
353   [AS_HELP_STRING([--enable-spellcheck],[enable support for spellcheck])],
354   [],[enable_spellcheck="yes"])
355 AC_MSG_RESULT([$enable_spellcheck])
356
357 if test "$enable_spellcheck" = "yes"; then
358 PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED_VERSION, [], [enable_spellcheck="no"])
359 AC_SUBST(ENCHANT_CFLAGS)
360 AC_SUBST(ENCHANT_LIBS)
361 fi
362
363 PKG_CHECK_MODULES(GAIL, $GAIL_PC_NAME >= $GAIL_REQUIRED_VERSION)
364 AC_SUBST(GAIL_CFLAGS)
365 AC_SUBST(GAIL_LIBS)
366
367 # check for target-specific dependencies
368 if test "$with_target" = "directfb"; then
369    PKG_CHECK_MODULES(CAIRO, cairo-directfb >= $CAIRO_REQUIRED_VERSION)
370    PKG_CHECK_MODULES(GTK, gtk+-directfb-2.0 >= $GTK_REQUIRED_VERSION)
371    AC_DEFINE([WTF_PLATFORM_DIRECTFB],[1],[Define if target is DirectFB])
372 else
373    PKG_CHECK_MODULES(CAIRO, cairo >= $CAIRO_REQUIRED_VERSION)
374    PKG_CHECK_MODULES(GTK, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED_VERSION)
375
376    if test "$with_target" = "x11" && test "$os_win32" = "no"; then
377       # check for XT
378       PKG_CHECK_MODULES([XT],
379                         [xt],
380                         [xt_has_pkg_config=yes],
381                         [xt_has_pkg_config=no])
382       # some old versions of Xt do not provide xt.pc, so try to link against Xt
383       # and if it's installed fall back to just adding -lXt
384       if test "$xt_has_pkg_config" = "no"; then
385          # using AC_CHECK_LIB instead of AC_SEARCH_LIB is fine in this case as
386          # we don't care about the XtOpenDisplay symbol but only about the
387          # existence of libXt
388          AC_CHECK_LIB([Xt], [XtOpenDisplay],
389                       [XT_CFLAGS=""; XT_LIBS="-lXt"],
390                       [AC_MSG_ERROR([X Toolkit Intrinsics library (libXt) not found])])
391       fi
392       AC_SUBST([XT_CFLAGS])
393       AC_SUBST([XT_LIBS])
394       AC_DEFINE([WTF_PLATFORM_X11],[1],[Define if target is X11])
395    fi
396
397    if test "$with_port" = "efl"; then
398       AC_DEFINE([WTF_PLATFORM_CAIRO],[1],[Define if platform is Cairo])
399    fi
400 fi
401 AC_SUBST(GTK_CFLAGS)
402 AC_SUBST(GTK_LIBS)
403 AC_SUBST(CAIRO_CFLAGS)
404 AC_SUBST(CAIRO_LIBS)
405
406 if test "$with_port" = "efl"; then
407 # minimum EFL base dependencies
408 EINA_REQUIRED_VERSION=0.0.1
409 EVAS_REQUIRED_VERSION=0.1
410 ECORE_REQUIRED_VERSION=0.9
411 ECORE_EVAS_REQUIRED_VERSION=0.9
412 ECORE_X_REQUIRED_VERSION=0.9
413 EDJE_REQUIRED_VERSION=0.9.9.050
414 CAIRO_REQUIRED_VERSION=1.6
415 FONTCONFIG_REQUIRED_VERSION=2.4
416 FREETYPE2_REQUIRED_VERSION=9.0
417 GSTREAMER_REQUIRED_VERSION=0.10
418
419 LIBSOUP_REQUIRED_VERSION=2.28.2
420 LIBXSLT_REQUIRED_VERSION=1.1.7
421 SQLITE_REQUIRED_VERSION=3.0
422
423 WEBKIT_CHECK_DEPENDENCIES_MODULES="unicode"
424
425 want_ecore_x="auto"
426 have_ecore_x="no"
427 AC_ARG_ENABLE(ecore_x,
428   AC_HELP_STRING(
429     [--disable-ecore_x],
430     [disable ecore_x specific support. [[default=enabled]]]
431   ),
432   [ want_ecore_x=$enableval ]
433 )
434
435 if test "x$want_ecore_x" = "xyes" -o "x$want_ecore_x" = "xauto" ; then
436   # Check if really available
437   PKG_CHECK_MODULES(ECORE_X, [ecore-x >= $ECORE_X_REQUIRED_VERSION],
438     [
439       have_ecore_x="yes"
440       AC_DEFINE(HAVE_ECORE_X, 1, [have ecore_x specific support])
441       AC_SUBST([ECORE_X_CFLAGS])
442       AC_SUBST([ECORE_X_LIBS])
443     ],
444     [
445       if test "x$want_ecore_x" = "xyes" -a "x$use_strict" = "xyes" ; then
446         AC_MSG_ERROR([Ecore_X not found (strict dependencies checking)])
447       fi
448     ])
449 fi
450
451 PKG_CHECK_MODULES([EFLDEPS],
452                   [eina >= $EINA_REQUIRED_VERSION
453                   evas >= $EVAS_REQUIRED_VERSION
454                   ecore >= $ECORE_REQUIRED_VERSION
455                   ecore-file >= $ECORE_REQUIRED_VERSION
456                   ecore-evas >= $ECORE_EVAS_REQUIRED_VERSION
457                   edje >= $EDJE_REQUIRED_VERSION
458                   cairo >= $CAIRO_REQUIRED_VERSION
459                   ])
460
461 AC_SUBST([EFLDEPS_CFLAGS])
462 AC_SUBST([EFLDEPS_LIBS])
463 fi
464
465 # check whether to build with debugging enabled
466 AC_MSG_CHECKING([whether to do a debug build])
467 AC_ARG_ENABLE(debug,
468               AC_HELP_STRING([--enable-debug],
469                              [turn on debugging [default=no]]),
470               [],[enable_debug="no"])
471 AC_MSG_RESULT([$enable_debug])
472
473 # check whether to enable optimized builds
474 AC_MSG_CHECKING([whether to enable optimized builds])
475 AC_ARG_ENABLE(optimizations,
476               AC_HELP_STRING([--enable-optimizations],
477                              [turn on optimize builds (GCC only)
478                              [default=yes]]),
479               [enable_optimizations=$enableval],
480               [if test "$enable_debug" = "yes"; then enable_optimizations="no"; else enable_optimizations="yes"; fi])
481 AC_MSG_RESULT([$enable_optimizations])
482
483 # check whether to enable 3D rendering support
484 AC_MSG_CHECKING([whether to enable support for 3D Rendering])
485 AC_ARG_ENABLE(3d_rendering,
486               AC_HELP_STRING([--enable-3d-rendering],
487                              [enable support for 3D Rendering (experimental) [default=no]]),
488               [],[enable_3d_rendering="no"])
489 AC_MSG_RESULT([$enable_3d_rendering])
490
491 # check whether to enable WebGL support
492 AC_MSG_CHECKING([whether to enable WebGL support])
493 AC_ARG_ENABLE(webgl,
494               AC_HELP_STRING([--enable-webgl], [enable support for WebGL [default=yes]]),
495               [], [if test "$with_target" = "x11"; then enable_webgl="yes"; else enable_webgl="no"; fi])
496 AC_MSG_RESULT([$enable_webgl])
497
498 if test "$enable_webgl" = "yes"; then
499     AC_CHECK_HEADERS([GL/gl.h], [], AC_MSG_ERROR([OpenGL header not found]))
500     AC_CHECK_HEADERS([GL/glx.h], [], AC_MSG_ERROR([GLX header not found]))
501     OPENGL_LIBS="-lGL -ldl"
502 fi
503 AC_SUBST([OPENGL_LIBS])
504
505 # check whether to enable channel messaging support
506 AC_MSG_CHECKING([whether to enable HTML5 Channel Messaging support])
507 AC_ARG_ENABLE(channel_messaging,
508               AC_HELP_STRING([--enable-channel-messaging],
509                              [enable HTML5 channel messaging support [default=yes]]),
510               [],[enable_channel_messaging="yes"])
511 AC_MSG_RESULT([$enable_channel_messaging])
512
513 # check whether to enable notifications
514 AC_MSG_CHECKING([whether to enable notifications])
515 AC_ARG_ENABLE(notifications,
516               AC_HELP_STRING([--enable-notifications],
517                              [enable notifications [default=no]]),
518               [],[enable_notifications="no"])
519 AC_MSG_RESULT([$enable_notifications])
520
521 # check whether to enable the meter tag
522 AC_MSG_CHECKING([whether to enable HTML5 meter tag])
523 AC_ARG_ENABLE(meter_tag,
524               AC_HELP_STRING([--enable-meter-tag],
525                              [enable HTML5 meter [default=yes]]),
526               [],[enable_meter_tag="yes"])
527 AC_MSG_RESULT([$enable_meter_tag])
528
529 # check whether to enable HTML5 Microdata support
530 AC_MSG_CHECKING([whether to enable HTML5 Microdata support])
531 AC_ARG_ENABLE(microdata,
532               AC_HELP_STRING([--enable-microdata],
533                              [enable HTML5 microdata support [default=no]]),
534               [],[enable_microdata="no"])
535 AC_MSG_RESULT([$enable_microdata])
536
537 # check whether to enable page visibility API.
538 AC_MSG_CHECKING([whether to enable Page Visibility API support])
539 AC_ARG_ENABLE(page_visibility_api,
540               AC_HELP_STRING([--enable-page-visibility-api],
541                              [enable page visibility api[default=no]]),
542               [],[enable_page_visibility_api="no"])
543 AC_MSG_RESULT([$enable_page_visibility_api])
544
545 # check whether to enable the progress tag
546 AC_MSG_CHECKING([whether to enable HTML5 progress tag])
547 AC_ARG_ENABLE(progress_tag,
548               AC_HELP_STRING([--enable-progress-tag],
549                              [enable HTML5 progress [default=yes]]),
550               [],[enable_progress_tag="yes"])
551 AC_MSG_RESULT([$enable_progress_tag])
552
553 # check whether to enable JavaScript debugger/profiler support
554 AC_MSG_CHECKING([whether to enable JavaScript debugger/profiler support])
555 AC_ARG_ENABLE(javascript_debugger,
556               AC_HELP_STRING([--enable-javascript-debugger],
557                              [enable JavaScript debugger/profiler support [default=yes]]),
558               [],[enable_javascript_debugger="yes"])
559 AC_MSG_RESULT([$enable_javascript_debugger])
560
561 # check whether to enable Gamepad support
562 AC_MSG_CHECKING([whether to enable Gamepad support])
563 AC_ARG_ENABLE(gamepad,
564               AC_HELP_STRING([--enable-gamepad],
565                              [enable Gamepad support [default=no]]),
566               [],[enable_gamepad="no"])
567 AC_MSG_RESULT([$enable_gamepad])
568
569 # check whether to build with datagrid support
570 AC_MSG_CHECKING([whether to enable HTML5 datagrid support])
571 AC_ARG_ENABLE(datagrid,
572               AC_HELP_STRING([--enable-datagrid],
573                              [enable HTML5 datagrid support [default=no]]),
574               [],[enable_datagrid="no"])
575 AC_MSG_RESULT([$enable_datagrid])
576
577 # check whether to build with data transfer items support
578 AC_MSG_CHECKING([whether to enable HTML5 data transfer items support])
579 AC_ARG_ENABLE(data_transfer_items,
580               AC_HELP_STRING([--enable-data-transfer-items],
581                              [enable HTML5 data transfer items support [default=no]]),
582               [],[enable_data_transfer_items="no"])
583 AC_MSG_RESULT([$enable_data_transfer_items])
584
585 # check whether to enable DOM mutation observer support
586 AC_MSG_CHECKING([whether to enable DOM mutation observer support])
587 AC_ARG_ENABLE(mutation_observers,
588               AC_HELP_STRING([--enable-mutation-observers],
589                              [enable DOM mutation observer support [default=no]]),
590               [],[enable_mutation_observers="no"])
591 AC_MSG_RESULT([$enable_mutation_observers])
592
593 # check whether to enable HTML5 client-side session and persitent storage support
594 AC_MSG_CHECKING([whether to enable HTML5 client-side session and persistent storage support])
595 AC_ARG_ENABLE(dom_storage,
596               AC_HELP_STRING([--enable-dom-storage],
597                              [enable HTML5 client-side session and persistent storage support [default=yes]]),
598               [],[enable_dom_storage="yes"])
599 AC_MSG_RESULT([$enable_dom_storage])
600
601 # check whether to enable the indexed database API
602 AC_MSG_CHECKING([whether to enable the indexed database API])
603 AC_ARG_ENABLE(indexed_database,
604               AC_HELP_STRING([--enable-indexed-database],
605                              [enable the indexed database API [default=no]]),
606               [],[enable_indexed_database="no"])
607 AC_MSG_RESULT([$enable_indexed_database])
608
609 # check whether to enable the color input
610 AC_MSG_CHECKING([whether to enable the color input])
611 AC_ARG_ENABLE(input_color,
612               AC_HELP_STRING([--enable-input-color],
613                              [enable the color input [default=no]]),
614               [],[enable_input_color="no"])
615 AC_MSG_RESULT([$enable_input_color])
616
617 # check whether to enable the speech input API
618 AC_MSG_CHECKING([whether to enable the speech input API])
619 AC_ARG_ENABLE(input_speech,
620               AC_HELP_STRING([--enable-input-speech],
621                              [enable the speech input API [default=no]]),
622               [],[enable_input_speech="no"])
623 AC_MSG_RESULT([$enable_input_speech])
624
625 # check whether to build with SQL database support
626 AC_MSG_CHECKING([whether to enable SQL client-side database storage support])
627 AC_ARG_ENABLE(sql_database,
628               AC_HELP_STRING([--enable-sql-database],
629                              [enable SQL client-side database storage support [default=yes]]),
630               [],[enable_sql_database="yes"])
631 AC_MSG_RESULT([$enable_sql_database])
632
633 # check whether to build with icon database support
634 AC_MSG_CHECKING([whether to enable icon database support])
635 AC_ARG_ENABLE(icon_database,
636               AC_HELP_STRING([--enable-icon-database],
637                              [enable icon database [default=yes]]),
638               [],[enable_icon_database="yes"])
639 AC_MSG_RESULT([$enable_icon_database])
640
641 # check whether to build with image resizer API support
642 AC_MSG_CHECKING([whether to enable image resizer API support])
643 AC_ARG_ENABLE(image_resizer,
644               AC_HELP_STRING([--enable-image-resizer],
645                              [enable image resizer [default=no]]),
646               [],[enable_image_resizer="no"])
647 AC_MSG_RESULT([$enable_image_resizer])
648
649 # check whether to enable HTML5 datalist support
650 AC_MSG_CHECKING([whether to enable HTML5 datalist support])
651 AC_ARG_ENABLE(datalist,
652               AC_HELP_STRING([--enable-datalist],
653                              [enable HTML5 datalist support [default=yes]]),
654               [],[enable_datalist="yes"])
655 AC_MSG_RESULT([$enable_datalist])
656
657 # check whether to enable HTML5 sandbox iframe support
658 AC_MSG_CHECKING([whether to enable HTML5 sandboxed iframe support])
659 AC_ARG_ENABLE(sandbox,
660               AC_HELP_STRING([--enable-sandbox],
661                              [enable HTML5 sandboxed iframe support [default=yes]]),
662               [],[enable_sandbox="yes"])
663 AC_MSG_RESULT([$enable_sandbox])
664
665 # check whether to enable HTML5 audio/video support
666 AC_MSG_CHECKING([whether to enable HTML5 video support])
667 AC_ARG_ENABLE(video,
668               AC_HELP_STRING([--enable-video],
669                              [enable HTML5 video support [default=yes]]),
670               [],[enable_video="yes"])
671 AC_MSG_RESULT([$enable_video])
672
673 # turn off video features if --disable-video is requested
674 if test "$enable_video" = "no"; then
675    enable_video_track=no
676 fi
677
678 # check whether to enable HTML5 video track support
679 AC_MSG_CHECKING([whether to enable HTML5 video track support])
680 AC_ARG_ENABLE(video_track,
681               AC_HELP_STRING([--enable-video-track],
682                              [enable HTML5 video track support [default=no]]),
683               [],[enable_video_track="no"])
684 AC_MSG_RESULT([$enable_video_track])
685
686 # check whether to enable media source support
687 AC_MSG_CHECKING([whether to enable media source support])
688 AC_ARG_ENABLE(media_source,
689               AC_HELP_STRING([--enable-media-source],
690                              [enable support for media source [default=no]]),
691               [], [enable_media_source="no"])
692 AC_MSG_RESULT([$enable_media_source])
693
694 # check whether to enable media statistics support
695 AC_MSG_CHECKING([whether to enable media statistics support])
696 AC_ARG_ENABLE(media_statistics,
697               AC_HELP_STRING([--enable-media-statistics],
698                              [enable support for media statistics [default=no]]),
699               [], [enable_media_statistics="no"])
700 AC_MSG_RESULT([$enable_media_statistics])
701
702 # check whether to enable Javascript Fullscreen API support
703 AC_MSG_CHECKING([whether to enable Fullscreen API support])
704 AC_ARG_ENABLE(fullscreen_api,
705               AC_HELP_STRING([--enable-fullscreen-api],
706                              [enable the Fullscreen API support [default=yes]]),
707               [],[enable_fullscreen_api="yes"])
708 AC_MSG_RESULT([$enable_fullscreen_api])
709
710 # check whether to enable media stream support
711 AC_MSG_CHECKING([whether to enable media stream support])
712 AC_ARG_ENABLE(media_stream,
713               AC_HELP_STRING([--enable-media-stream],
714                              [enable media stream support (incomplete) [default=no]]),
715               [],[enable_media_stream="no"])
716 AC_MSG_RESULT([$enable_media_stream])
717
718 # check whether to enable XSLT support
719 AC_MSG_CHECKING([whether to enable XSLT support])
720 AC_ARG_ENABLE(xslt,
721               AC_HELP_STRING([--enable-xslt],
722                              [enable support for XSLT [default=yes]]),
723               [],[enable_xslt="yes"])
724 AC_MSG_RESULT([$enable_xslt])
725
726 # check whether to enable geolocation support
727 AC_MSG_CHECKING([whether to enable geolocation support])
728 AC_ARG_ENABLE(geolocation,
729               AC_HELP_STRING([--enable-geolocation],
730                              [enable support for geolocation [default=no]]),
731               [],[enable_geolocation="no"])
732 AC_MSG_RESULT([$enable_geolocation])
733
734 # check whether to enable MathML support
735 AC_MSG_CHECKING([whether to enable MathML support])
736 AC_ARG_ENABLE(mathml,
737               AC_HELP_STRING([--enable-mathml],
738                              [enable support for MathML [default=no]]),
739               [],[enable_mathml="no"])
740 AC_MSG_RESULT([$enable_mathml])
741
742 # check whether to enable SVG support
743 AC_MSG_CHECKING([whether to enable SVG support])
744 AC_ARG_ENABLE(svg,
745               AC_HELP_STRING([--enable-svg],
746                              [enable support for SVG [default=yes]]),
747               [],[enable_svg="yes"])
748 AC_MSG_RESULT([$enable_svg])
749
750 # check whether to enable SharedWorkers support
751 AC_MSG_CHECKING([whether to enable SharedWorkers support])
752 AC_ARG_ENABLE(shared_workers,
753               AC_HELP_STRING([--enable-shared-workers],
754                              [enable support for SharedWorkers [default=yes]]),
755               [],[enable_shared_workers="yes"])
756 AC_MSG_RESULT([$enable_shared_workers])
757
758 # check whether to enable Web Workers support
759 AC_MSG_CHECKING([whether to enable Web Workers support])
760 AC_ARG_ENABLE(workers,
761               AC_HELP_STRING([--enable-workers],
762                              [enable support for Web Workers [default=yes]]),
763               [],[enable_workers="yes"])
764 AC_MSG_RESULT([$enable_workers])
765
766 # check whether to enable directory upload support
767 AC_MSG_CHECKING([whether to enable directory upload support])
768 AC_ARG_ENABLE(directory_upload,
769               AC_HELP_STRING([--enable-directory-upload],
770                              [enable support for directory upload [default=no]]),
771               [], [enable_directory_upload="no"])
772 AC_MSG_RESULT([$enable_directory_upload])
773
774 # check whether to enable HTML5 FileSystem API support
775 AC_MSG_CHECKING([whether to enable HTML5 FileSystem API support])
776 AC_ARG_ENABLE(file_system,
777               AC_HELP_STRING([--enable-file-system],
778                              [enable support for HTML5 FileSystem API [default=no]]),
779               [], [enable_file_system="no"])
780 AC_MSG_RESULT([$enable_file_system])
781
782 # check whether to enable HTML5 <style scoped> support
783 AC_MSG_CHECKING([whether to enable HTML5 <style scoped> support])
784 AC_ARG_ENABLE(file_system,
785               AC_HELP_STRING([--enable-style-scoped],
786                              [enable support for HTML5 <style scoped> [default=no]]),
787               [], [enable_style_scoped="no"])
788 AC_MSG_RESULT([$enable_style_scoped])
789
790 # check whether to enable Quota API support
791 AC_MSG_CHECKING([whether to enable Quota API support])
792 AC_ARG_ENABLE(quota,
793               AC_HELP_STRING([--enable-quota],
794                              [enable support for Quota API [default=no]]),
795               [], [enable_quota="no"])
796 AC_MSG_RESULT([$enable_quota])
797
798 # turn off svg features if --disable-svg is requested
799 if test "$enable_svg" = "no"; then
800    enable_svg_fonts=no
801 fi
802
803 # check whether to enable support for filters
804 AC_MSG_CHECKING([whether to enable support for filters])
805 AC_ARG_ENABLE(filters,
806               AC_HELP_STRING([--enable-filters],
807                              [enable support for filters (experimental) [default=yes]]),
808               [],[enable_filters="yes"])
809 AC_MSG_RESULT([$enable_filters])
810
811 # check whether to enable support for SVG fonts
812 AC_MSG_CHECKING([whether to enable support for SVG fonts])
813 AC_ARG_ENABLE(svg_fonts,
814               AC_HELP_STRING([--enable-svg-fonts],
815                              [enable support for SVG fonts (experimental) [default=yes]]),
816               [],[enable_svg_fonts="yes"])
817 AC_MSG_RESULT([$enable_svg_fonts])
818
819 # check for SVG features, enabling SVG if necessary
820 if test "$enable_svg_fonts" = "yes"; then
821    svg_flags=yes
822    if test "$enable_svg" = "no"; then
823        AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support])
824        enable_svg=yes
825    fi
826 fi
827
828 # check whether to enable Web Socket support
829 AC_MSG_CHECKING([whether to enable Web Sockets support])
830 AC_ARG_ENABLE(web_sockets,
831               AC_HELP_STRING([--enable-web-sockets],
832                              [enable support for Web Sockets [default=yes]]),
833               [],[enable_web_sockets="yes"])
834 AC_MSG_RESULT([$enable_web_sockets])
835
836 # check whether to enable Web Audio support
837 enable_web_audio=no
838 AC_MSG_RESULT([$enable_web_audio])
839
840 # check whether to enable Web Timing support
841 AC_MSG_CHECKING([whether to enable Web Timing support])
842 AC_ARG_ENABLE(web_timing,
843               AC_HELP_STRING([--enable-web-timing],
844                              [enable support for Web Timing [default=no]]),
845               [],[enable_web_timing="no"])
846 AC_MSG_RESULT([$enable_web_timing])
847
848 # check whether to enable Blob support
849 AC_MSG_CHECKING([whether to enable Blob support])
850 AC_ARG_ENABLE(blob,
851               AC_HELP_STRING([--enable-blob],
852                              [enable support for Blob [default=yes]]),
853               [],[enable_blob="yes"])
854 AC_MSG_RESULT([$enable_blob])
855
856 # check whether to enable Fast Mobile Scrolling support
857 AC_MSG_CHECKING([whether to enable Fast Mobile Scrolling])
858 AC_ARG_ENABLE(fast_mobile_scrolling,
859               AC_HELP_STRING([--enable-fast-mobile-scrolling],
860                              [enable support for Fast Mobile Scrolling [default=no]]),
861               [],[enable_fast_mobile_scrolling="no"])
862 AC_MSG_RESULT([$enable_fast_mobile_scrolling])
863
864 # check whether to enable code coverage
865 AC_MSG_CHECKING([whether to enable code coverage support])
866 AC_ARG_ENABLE(coverage,
867               AC_HELP_STRING([--enable-coverage],
868                              [enable code coverage support [default=no]]),
869               [],[enable_coverage="no"])
870 AC_MSG_RESULT([$enable_coverage])
871
872 # check whether to enable FastMalloc
873 AC_MSG_CHECKING([whether to enable optimized memory allocator])
874 AC_ARG_ENABLE(fast_malloc,
875               AC_HELP_STRING([--enable-fast-malloc],
876                              [enable optimized memory allocator default=yes, default=no for debug builds]),
877               [],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi])
878 AC_MSG_RESULT([$enable_fast_malloc])
879
880 # check whether to enable debug symbols
881 AC_MSG_CHECKING([whether to enable debug symbols])
882 AC_ARG_ENABLE(debug_symbols,
883               AC_HELP_STRING([--enable-debug-symbols],
884                              [enable debug symbols default=no, default=yes for debug builds]),
885               [],[if test "$enable_debug" = "yes"; then enable_debug_symbols="yes"; else enable_debug_symbols="no"; fi])
886 AC_MSG_RESULT([$enable_debug_symbols])
887
888 # check whether to enable debug features
889 AC_MSG_CHECKING([whether to enable debug features])
890 AC_ARG_ENABLE(debug_features,
891               AC_HELP_STRING([--enable-debug-features],
892                              [enable debug features default=no, default=yes for debug builds]),
893               [],[if test "$enable_debug" = "yes"; then enable_debug_features="yes"; else enable_debug_features="no"; fi])
894 AC_MSG_RESULT([$enable_debug_features])
895
896 # Determine JavaScript engine to use.
897 AC_MSG_CHECKING([Javascript engine])
898 AC_ARG_WITH(jsengine,
899             AC_HELP_STRING([--with-jsengine=@<:@jsc@:>@],
900                            [Select Javascript engine [default=jsc]]),
901             [],[with_jsengine="jsc"])
902
903 case "$with_jsengine" in
904      jsc) ;;
905      *) AC_MSG_ERROR([Invalid JS engine: Must be jsc]) ;;
906 esac
907 AC_MSG_RESULT([$with_jsengine])
908
909 if test "$with_jsengine" = "jsc"; then
910     AC_MSG_CHECKING([whether to enable JIT compilation])
911     AC_ARG_ENABLE([jit],
912                   AC_HELP_STRING([--enable-jit],
913                                  [Enable JIT compilation default=yes]),
914                   [],[enable_jit="yes"])
915     if test "$enable_jit" = "yes"; then
916         case "$host_cpu" in
917             arm*)
918                 AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
919                 AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
920                 AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
921             ;;
922             i*86|x86_64)
923                 AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
924                 AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
925                 AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
926                 AC_DEFINE([ENABLE_JIT_OPTIMIZE_CALL], [1], [Define to enable optimizing calls])
927                 AC_DEFINE([ENABLE_JIT_OPTIMIZE_PROPERTY_ACCESS], [1], [Define to enable optimized property access])
928                 AC_DEFINE([ENABLE_JIT_OPTIMIZE_ARITHMETIC], [1], [Define to enable optimized arithmetic])
929                 case "$host_cpu" in
930                     i*86)
931                         AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_VA_LIST], [1], [Use stub va_list])
932                     ;;
933                     x86_64)
934                         AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_REGISTER], [1], [Use stub register])
935                         AC_DEFINE([WTF_USE_ALTERNATE_JSIMMEDIATE], [1], [Use alternate JSImmediate])
936                     ;;
937                 esac
938             ;;
939             sh4)
940                 AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
941                 AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
942                 AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
943                 AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_REGISTER], [1], [Use stub register])
944             ;;
945             *)
946                 enable_jit="no (CPU '$host_cpu' not supported)"
947             ;;
948         esac
949     else
950             AC_DEFINE([ENABLE_JIT], [0], [Define to enable JIT])
951     fi
952 else
953     AC_DEFINE([ENABLE_JIT], [0], [Define to enable JIT])
954     enable_jit="no"
955 fi
956
957 AC_MSG_RESULT([$enable_jit])
958
959 # Opcode stats
960 AC_MSG_CHECKING([whether to enable opcode stats])
961 AC_ARG_ENABLE([opcode-stats],
962   [AS_HELP_STRING([--enable-opcode-stats], [Enable Opcode statistics (default: disabled)])],
963   [], [enable_opcode_stats=no])
964 AC_MSG_RESULT([$enable_opcode_stats])
965
966 if test "$enable_opcode_stats" = "yes"; then
967   if test "$enable_jit" = "yes"; then
968     AC_MSG_ERROR([JIT must be disabled for Opcode stats to work.])
969   fi
970   AC_DEFINE([ENABLE_OPCODE_STATS], [1], [Define to enable Opcode statistics])
971 fi
972   
973 if test "$with_http_backend" = "curl"; then
974 PKG_CHECK_MODULES(LIBCURL, libcurl)
975 AC_SUBST([LIBCURL_CFLAGS])
976 AC_SUBST([LIBCURL_LIBS])
977 fi
978
979 if test "$with_http_backend" = "soup"; then
980 PKG_CHECK_MODULES([LIBSOUP],
981                      [libsoup-2.4 >= $LIBSOUP_REQUIRED_VERSION])
982 AC_SUBST([LIBSOUP_CFLAGS])
983 AC_SUBST([LIBSOUP_LIBS])
984 fi
985    
986 # Link prefetch
987 AC_MSG_CHECKING([whether to enable link prefetch support])
988 AC_ARG_ENABLE([link-prefetch],
989   [AS_HELP_STRING([--enable-link-prefetch], [Enable Link prefetch support (default: disabled)])],
990   [],[enable_link_prefetch=no])
991 AC_MSG_RESULT([$enable_link_prefetch])
992
993 if test "$enable_link_prefetch" = "yes"; then 
994   AC_DEFINE([ENABLE_LINK_PREFETCH], [1], [Define to enable link prefetch support])
995 fi
996
997 # GObject Introspection
998 AC_MSG_CHECKING([whether to enable GObject introspection support])
999 AC_ARG_ENABLE([introspection],
1000   [AS_HELP_STRING([--enable-introspection],[Enable GObject introspection (default: disabled)])],
1001   [],[enable_introspection=no])
1002 AC_MSG_RESULT([$enable_introspection])
1003
1004 # check whether to enable animation API
1005 AC_MSG_CHECKING([whether to enable Animation API support])
1006 AC_ARG_ENABLE(animation_api,
1007               AC_HELP_STRING([--enable-animation-api],
1008                              [enable support for Animation API (experimental) [default=no]]),
1009               [], [enable_animation_api="no"])
1010 AC_MSG_RESULT([$enable_animation_api])
1011
1012 # check whether to enable requestAnimationFrame support
1013 AC_MSG_CHECKING([whether to enable requestAnimationFrame support])
1014 AC_ARG_ENABLE(request_animation_frame,
1015               AC_HELP_STRING([--enable-request-animation-frame],
1016                              [enable support for requestAnimationFrame (experimental) [default=no]]),
1017               [],[enable_request_animation_frame="no"])
1018 AC_MSG_RESULT([$enable_request_animation_frame])
1019
1020 # check whether to enable touch icon loading 
1021 AC_MSG_CHECKING([whether to enable touch icon loading])
1022 AC_ARG_ENABLE(touch_icon_loading,
1023               AC_HELP_STRING([--enable-touch-icon-loading],
1024                              [enable support for loading touch icons [default=no]]),
1025               [], [enable_touch_icon_loading="no"])
1026 AC_MSG_RESULT([$enable_touch_icon_loading])
1027
1028 # check whether to enable Register Protocol Handler support
1029 AC_MSG_CHECKING([whether to enable Register Protocol Handler])
1030 AC_ARG_ENABLE(register_protocol_handler,
1031               AC_HELP_STRING([--enable-register-protocol-handler],
1032                              [enable support for Register Protocol Handler (experimental) [default=no]]),
1033               [],[enable_register_protocol_handler="no"])
1034 AC_MSG_RESULT([$enable_register_protocol_handler])
1035
1036 # check whether to enable DeviceOrientation support
1037 AC_MSG_CHECKING([whether to enable DeviceOrientation])
1038 AC_ARG_ENABLE(device_orientation,
1039               AC_HELP_STRING([--enable-device-orientation],
1040                              [enable support for DeviceOrientation (experimental and incomplete) [default=no]]),
1041               [],[enable_device_orientation="no"])
1042 AC_MSG_RESULT([$enable_device_orientation])
1043
1044 G_IR_SCANNER=
1045 G_IR_COMPILER=
1046 G_IR_GENERATE=
1047 GIRDIR=
1048 GIRTYPELIBDIR=
1049
1050 if test "$enable_introspection" = "yes"; then
1051   GOBJECT_INTROSPECTION_REQUIRED=0.9.5
1052   PKG_CHECK_MODULES([INTROSPECTION],[gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED])
1053   
1054   G_IR_SCANNER="$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)"
1055   G_IR_COMPILER="$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)"
1056   G_IR_GENERATE="$($PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0)"
1057   AC_DEFINE([ENABLE_INTROSPECTION],[1],[Define to enable GObject introspection support])
1058 fi
1059
1060 AC_SUBST([G_IR_SCANNER])
1061 AC_SUBST([G_IR_COMPILER])
1062 AC_SUBST([G_IR_GENERATE])
1063
1064 if test "$with_port" = "efl"; then
1065 # check whether to build with glib support
1066 AC_MSG_CHECKING([whether to enable Glib support (adds main loop integration when using EFL)])
1067 AC_ARG_ENABLE(glib_support,
1068               AC_HELP_STRING([--enable-glib-support],
1069                              [enable Glib support [default=yes]]),
1070               [],[enable_glib_support="yes"])
1071 AC_MSG_RESULT([$enable_glib_support])
1072
1073 # check for SVG features, enabling SVG if necessary
1074 if test "$enable_glib_support" = "no" && \
1075    test "$enable_video" = "yes"; then
1076        AC_MSG_ERROR([Video support requires glib-support. See --enable-glib-support configure option.])
1077 fi
1078
1079 AC_MSG_CHECKING([whether to enable GTK plugins support (requires glib support)])
1080 AC_ARG_ENABLE(gtk_plugins_support,
1081               AC_HELP_STRING([--enable-gtk-plugins-support],
1082                              [enable gtk plugins support [default=yes]]),
1083               [],[enable_gtk_plugins_support="auto"])
1084 AC_MSG_RESULT([$enable_gtk_plugins_support])
1085
1086 if test "$enable_gtk_plugins_support" = "yes" -a "$enable_glib_support" = "no"; then
1087    AC_MSG_ERROR([required gtk plugins support, but no glib support.])
1088 fi
1089
1090 if test "$enable_gtk_plugins_support" != "no"; then
1091    PKG_CHECK_MODULES(GTK, [gtk+-2.0], [has_gtk="yes"], [has_gtk="no"])
1092    AC_SUBST([GTK_CFLAGS])
1093    AC_SUBST([GTK_LIBS])
1094 fi
1095
1096 if test "$enable_gtk_plugins_support" = "yes" -a "$has_gtk" = "no"; then
1097    AC_MSG_ERROR([required gtk plugins support but no gtk+-2.0 pkg-config found.])
1098 elif test "$enable_gtk_plugins_support" = "auto" -a "$has_gtk" = "yes"; then
1099    enable_gtk_plugins_support="yes"
1100 fi
1101
1102 fi
1103
1104 # determine the font backend
1105 AC_MSG_CHECKING([the font backend to use])
1106 AC_ARG_WITH(font_backend,
1107             AC_HELP_STRING([--with-font-backend=@<:@freetype/pango@:>@],
1108                            [Select font backend [default=freetype]]),
1109             [],[with_font_backend="freetype"])
1110
1111 case "$with_font_backend" in
1112      freetype|pango) ;;
1113      *) AC_MSG_ERROR([Invalid font backend: must be freetype or pango.]) ;;
1114 esac
1115 AC_MSG_RESULT([$with_font_backend])
1116
1117 if test "$host_cpu" = "sh4"; then
1118    CXXFLAGS="$CXXFLAGS -mieee -w"
1119    CFLAGS="$CFLAGS -mieee -w"
1120 fi
1121
1122 # Add '-g' flag to gcc to build with debug symbols
1123 if test "$enable_debug_symbols" = "yes"; then
1124    CXXFLAGS="$CXXFLAGS -g"
1125    CFLAGS="$CFLAGS -g"
1126 fi
1127
1128 if test "$enable_debug_features" = "no"; then
1129    AC_DEFINE([NDEBUG], [1], [Define to disable debugging features])
1130 fi
1131
1132 # Add the appropriate 'O' level for optimized builds
1133 if test "$enable_optimizations" = "yes"; then
1134    CXXFLAGS="$CXXFLAGS -O2"
1135    CFLAGS="$CFLAGS -O2"
1136 else
1137    CXXFLAGS="$CXXFLAGS -O0"
1138    CFLAGS="$CFLAGS -O0"
1139 fi
1140
1141
1142 # check if FreeType/FontConfig are available
1143 if test "$with_font_backend" = "freetype"; then
1144    if test "$with_target" = "directfb"; then
1145    PKG_CHECK_MODULES([FREETYPE],
1146                      [fontconfig >= $FONTCONFIG_REQUIRED_VERSION
1147                      freetype2 >= $FREETYPE2_REQUIRED_VERSION])
1148    else
1149    PKG_CHECK_MODULES([FREETYPE],
1150                      [cairo-ft
1151                      fontconfig >= $FONTCONFIG_REQUIRED_VERSION
1152                      freetype2 >= $FREETYPE2_REQUIRED_VERSION])
1153    fi
1154    AC_SUBST([FREETYPE_CFLAGS])
1155    AC_SUBST([FREETYPE_LIBS])
1156 fi
1157
1158 # check if SQLite3 is available. Error out only if one of the
1159 # features hard-depending on it is enabled while SQLite3 is
1160 # unavailable.
1161 PKG_CHECK_MODULES([SQLITE3],
1162                   [sqlite3 >= $SQLITE_REQUIRED_VERSION],
1163                   [sqlite3_has_pkg_config=yes],
1164                   [sqlite3_has_pkg_config=no])
1165 if test "$sqlite3_has_pkg_config" = "no"; then
1166    AC_SEARCH_LIBS([sqlite3_open16], [sqlite3],
1167                   [sqlite3_found=yes;SQLITE3_LIBS="$LIBS";SQLITE3_CFLAGS="-I $srcdir/WebKitLibraries/WebCoreSQLite3"],
1168                   [sqlite3_found=no])
1169 fi
1170 AC_SUBST([SQLITE3_CFLAGS])
1171 AC_SUBST([SQLITE3_LIBS])
1172
1173 if (test "$sqlite3_found" = "no"); then
1174    AC_MSG_ERROR([SQLite3 is required for the Database related features])
1175 fi
1176
1177 # check if glib is available
1178 if test "$enable_glib_support" = "yes"; then
1179    GLIB_REQUIRED_VERSION=2.0
1180    GTHREAD_REQUIRED_VERSION=2.0
1181    PKG_CHECK_MODULES([GLIB],
1182                      [glib-2.0 >= $GLIB_REQUIRED_VERSION
1183                      gthread-2.0 >= $GTHREAD_REQUIRED_VERSION])
1184    AC_SUBST([GLIB_CFLAGS])
1185    AC_SUBST([GLIB_LIBS])
1186 fi
1187
1188 # check if libxslt is available
1189 if test "$enable_xslt" = "yes"; then
1190    PKG_CHECK_MODULES([LIBXSLT],[libxslt >= $LIBXSLT_REQUIRED_VERSION])
1191    AC_SUBST([LIBXSLT_CFLAGS])
1192    AC_SUBST([LIBXSLT_LIBS])
1193 fi
1194
1195 # check if geoclue is available
1196 if test "$enable_geolocation" = "yes"; then
1197     PKG_CHECK_MODULES([GEOCLUE], [geoclue location])
1198     AC_DEFINE([ENABLE_GEOLOCATION], [1], [Define to enable geolocation])
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    PKG_CHECK_MODULES([GSTREAMER],
1214                      [gstreamer-0.10 >= $GSTREAMER_REQUIRED_VERSION
1215                      gstreamer-app-0.10
1216                      gstreamer-audio-0.10
1217                      gstreamer-base-0.10
1218                      gstreamer-interfaces-0.10
1219                      gstreamer-pbutils-0.10
1220                      gstreamer-plugins-base-0.10 >= $GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION
1221                      gstreamer-video-0.10],
1222                      [have_gstreamer=yes])
1223
1224    AC_SUBST([GSTREAMER_CFLAGS])
1225    AC_SUBST([GSTREAMER_LIBS])
1226 fi
1227
1228 # check if libfftw is available
1229 if test "$enable_web_audio" = "yes"; then
1230    PKG_CHECK_MODULES([LIBFFTW],
1231                      [fftw3 >= $LIBFFTW_REQUIRED_VERSION
1232                      fftw3f >= $LIBFFTW_REQUIRED_VERSION],
1233                      [have_fftw=yes])
1234
1235     AC_SUBST([LIBFFTW_CFLAGS])
1236     AC_SUBST([LIBFFTW_LIBS])
1237 fi
1238
1239 # check for code coverage support
1240 if test "$enable_coverage" = "yes"; then
1241    COVERAGE_CFLAGS="-MD"
1242    COVERAGE_LDFLAGS="-ftest-coverage -fprofile-arcs"
1243    AC_SUBST([COVERAGE_CFLAGS])
1244    AC_SUBST([COVERAGE_LDFLAGS])
1245 fi
1246
1247 # check for HTML features
1248 if test "$enable_video" = "yes"; then
1249     html_flags=yes
1250 fi
1251
1252 # WebKit2
1253 AC_MSG_CHECKING([whether to build Webkit2])
1254 AC_ARG_ENABLE(webkit2,
1255     AC_HELP_STRING([--enable-webkit2], [build webkit2 [default=no]]),
1256     [], [enable_webkit2="no"])
1257 AC_MSG_RESULT([$enable_webkit2])
1258 if test "$enable_webkit2" = "yes"; then
1259    if test "$GTK_API_VERSION" = "2.0"; then
1260       AC_MSG_ERROR([WebKit2 requires GTK+ 3.x, use --with-gtk=3.0])
1261    fi
1262 fi
1263
1264 # Plugin Process
1265 AC_MSG_CHECKING([whether to build plugin process for WebKit2])
1266 AC_ARG_ENABLE(plugin_process,
1267             AC_HELP_STRING([--enable-plugin-process], [build plugin process for WebKit2 [default=yes]]),
1268                            [], [enable_plugin_process="yes"])
1269 AC_MSG_RESULT([$enable_plugin_process])
1270
1271 # Build the plugin process only when building Webkit2.
1272 if test "$enable_webkit2" = "no"; then
1273     enable_plugin_process=no
1274 fi
1275
1276 # Make sure we have GTK+ 2.x to build the plugin process.
1277 if test "$enable_plugin_process" = "yes"; then
1278    PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= $GTK2_REQUIRED_VERSION gail >= $GAIL2_REQUIRED_VERSION)
1279 fi
1280 AC_SUBST(GTK2_CFLAGS)
1281 AC_SUBST(GTK2_LIBS)
1282
1283 GTK_DOC_CHECK([1.10])
1284
1285 # OS conditionals
1286 AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])
1287 AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"])
1288 AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
1289 AM_CONDITIONAL([OS_GNU],[test "$os_gnu" = "yes"])
1290 AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
1291
1292 # target conditionals
1293 AM_CONDITIONAL([TARGET_X11], [test "$with_target" = "x11"])
1294 AM_CONDITIONAL([TARGET_WIN32], [test "$with_target" = "win32"])
1295 AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"])
1296 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"])
1297 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "arm"])
1298 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "i386"])
1299
1300 # JS engine conditionals
1301 AM_CONDITIONAL([USE_JSC], [test "$with_jsengine" = "jsc"])
1302
1303 # Unicode backend conditionals
1304 AM_CONDITIONAL([USE_ICU_UNICODE], [test "$with_unicode_backend" = "icu"])
1305 AM_CONDITIONAL([USE_GLIB_UNICODE], [test "$with_unicode_backend" = "glib"])
1306
1307 # Font backend conditionals
1308 AM_CONDITIONAL([USE_FREETYPE], [test "$with_font_backend" = "freetype"])
1309 AM_CONDITIONAL([USE_PANGO], [test "$with_font_backend" = "pango"])
1310
1311 # GStreamer feature conditional
1312 AM_CONDITIONAL([USE_GSTREAMER], [test "$have_gstreamer" = "yes"])
1313
1314 # WebKit feature conditionals
1315 AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug_features" = "yes"])
1316 AM_CONDITIONAL([ENABLE_3D_RENDERING],[test "$enable_3d_rendering" = "yes"])
1317 AM_CONDITIONAL([ENABLE_WEBGL],[test "$enable_webgl" = "yes"])
1318 AM_CONDITIONAL([ENABLE_BLOB],[test "$enable_blob" = "yes"])
1319 AM_CONDITIONAL([ENABLE_METER_TAG],[test "$enable_meter_tag" = "yes"])
1320 AM_CONDITIONAL([ENABLE_MICRODATA],[test "$enable_microdata" = "yes"])
1321 AM_CONDITIONAL([ENABLE_PAGE_VISIBILITY_API],[test "$enable_page_visibility_api" = "yes"])
1322 AM_CONDITIONAL([ENABLE_PROGRESS_TAG],[test "$enable_progress_tag" = "yes"])
1323 AM_CONDITIONAL([ENABLE_CHANNEL_MESSAGING],[test "$enable_channel_messaging" = "yes"])
1324 AM_CONDITIONAL([ENABLE_JAVASCRIPT_DEBUGGER],[test "$enable_javascript_debugger" = "yes"])
1325 AM_CONDITIONAL([ENABLE_SLP_SUPPORT_BLUE_RUNNER],[test "$enable_slp_support_blue_runner" = "yes"])
1326 AM_CONDITIONAL([ENABLE_OFFLINE_WEB_APPLICATIONS],[test "$enable_offline_web_applications" = "yes"])
1327 AM_CONDITIONAL([ENABLE_GAMEPAD],[test "$enable_gamepad" = "yes"])
1328 AM_CONDITIONAL([ENABLE_DIRECTORY_UPLOAD],[test "$enable_directory_upload" = "yes"])
1329 AM_CONDITIONAL([ENABLE_DATAGRID],[test "$enable_datagrid" = "yes"])
1330 AM_CONDITIONAL([ENABLE_DATA_TRANSFER_ITEMS],[test "$enable_data_transfer_items" = "yes"])
1331 AM_CONDITIONAL([ENABLE_SQL_DATABASE],[test "$enable_sql_database" = "yes"])
1332 AM_CONDITIONAL([ENABLE_DATALIST],[test "$enable_datalist" = "yes"])
1333 AM_CONDITIONAL([ENABLE_DETAILS],[test "$enable_details" = "yes"])
1334 AM_CONDITIONAL([ENABLE_FAST_MOBILE_SCROLLING],[test "$enable_fast_mobile_scrolling" = "yes"])
1335 AM_CONDITIONAL([ENABLE_FILE_SYSTEM],[test "$enable_file_system" = "yes"])
1336 AM_CONDITIONAL([ENABLE_STYLE_SCOPED],[test "$enable_style_scoped" = "yes"])
1337 AM_CONDITIONAL([ENABLE_QUOTA],[test "$enable_quota" = "yes"])
1338 AM_CONDITIONAL([ENABLE_ICONDATABASE],[test "$enable_icon_database" = "yes"])
1339 AM_CONDITIONAL([ENABLE_IMAGE_RESIZER],[test "$enable_image_resizer" = "yes"])
1340 AM_CONDITIONAL([ENABLE_INDEXED_DATABASE],[test "$enable_indexed_database" = "yes"])
1341 AM_CONDITIONAL([ENABLE_INPUT_COLOR],[test "$enable_input_color" = "yes"])
1342 AM_CONDITIONAL([ENABLE_INPUT_SPEECH],[test "$enable_input_speech" = "yes"])
1343 AM_CONDITIONAL([ENABLE_XSLT],[test "$enable_xslt" = "yes"])
1344 AM_CONDITIONAL([ENABLE_FILTERS],[test "$enable_filters" = "yes"])
1345 AM_CONDITIONAL([ENABLE_GEOLOCATION], [test "$enable_geolocation" = "yes"])
1346 AM_CONDITIONAL([ENABLE_MATHML], [test "$enable_mathml" = "yes"])
1347 AM_CONDITIONAL([ENABLE_MHTML], [test "$enable_mhtml" = "yes"])
1348 AM_CONDITIONAL([ENABLE_VIDEO],[test "$enable_video" = "yes"])
1349 AM_CONDITIONAL([ENABLE_MEDIA_SOURCE],[test "$enable_media_source" = "yes"])
1350 AM_CONDITIONAL([ENABLE_MEDIA_STATISTICS],[test "$enable_media_statistics" = "yes"])
1351 AM_CONDITIONAL([ENABLE_VIDEO_TRACK],[test "$enable_video_track" = "yes"])
1352 AM_CONDITIONAL([ENABLE_FULLSCREEN_API],[test "$enable_fullscreen_api" = "yes"])
1353 AM_CONDITIONAL([ENABLE_MEDIA_STREAM],[test "$enable_media_stream" = "yes"])
1354 AM_CONDITIONAL([ENABLE_NOTIFICATIONS],[test "$enable_notifications" = "yes"])
1355 AM_CONDITIONAL([ENABLE_ORIENTATION_EVENTS],[test "$enable_orientation_events" = "yes"])
1356 AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"])
1357 AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"])
1358 AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"])
1359 AM_CONDITIONAL([ENABLE_FAST_MALLOC],[test "$enable_fast_malloc" = "yes"])
1360 AM_CONDITIONAL([ENABLE_WORKERS],[test "$enable_workers" = "yes"])
1361 AM_CONDITIONAL([ENABLE_SHARED_WORKERS],[test "$enable_shared_workers" = "yes"])
1362 AM_CONDITIONAL([SVG_FLAGS],[test "$svg_flags" = "yes"])
1363 AM_CONDITIONAL([HTML_FLAGS],[test "$html_flags" = "yes"])
1364 AM_CONDITIONAL([ENABLE_WEB_SOCKETS],[test "$enable_web_sockets" = "yes"])
1365 AM_CONDITIONAL([ENABLE_WEB_AUDIO],[test "$enable_web_audio" = "yes"])
1366 AM_CONDITIONAL([ENABLE_WEB_TIMING],[test "$enable_web_timing" = "yes"])
1367 AM_CONDITIONAL([ENABLE_OPCODE_STATS],[test "$enable_opcode_stats" = "yes"])
1368 AM_CONDITIONAL([ENABLE_WEBKIT2],[test "$enable_webkit2" = "yes"])
1369 AM_CONDITIONAL([ENABLE_PLUGIN_PROCESS],[test "$enable_plugin_process" = "yes"])
1370 AM_CONDITIONAL([ENABLE_SPELLCHECK],[test "$enable_spellcheck" = "yes"])
1371 AM_CONDITIONAL([ENABLE_ANIMATION_API],[test "$enable_animation_api" = "yes"])
1372 AM_CONDITIONAL([ENABLE_REQUEST_ANIMATION_FRAME],[test "$enable_request_animation_frame" = "yes"])
1373 AM_CONDITIONAL([ENABLE_TOUCH_ICON_LOADING],[test "$enable_touch_icon_loading" = "yes"])
1374 AM_CONDITIONAL([ENABLE_REGISTER_PROTOCOL_HANDLER],[test "$enable_register_protocol_handler" = "yes"])
1375 AM_CONDITIONAL([ENABLE_DEVICE_ORIENTATION],[test "$enable_device_orientation" = "yes"])
1376 AM_CONDITIONAL([ENABLE_MUTATION_OBSERVERS],[test "$enable_mutation_observers" = "yes"])
1377
1378 # Gtk conditionals
1379 AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"])
1380
1381 AC_CONFIG_FILES([
1382 GNUmakefile
1383 ])
1384  
1385
1386 AC_CONFIG_FILES([
1387 Source/WebKit/gtk/webkit/webkitversion.h
1388 ])
1389
1390 AC_CONFIG_FILES([
1391 Source/WebKit/gtk/${WEBKITGTK_PC_NAME}-${WEBKITGTK_API_VERSION}.pc:Source/WebKit/gtk/webkit.pc.in
1392 Source/WebKit/gtk/JSCore-${WEBKITGTK_API_VERSION}.gir:Source/WebKit/gtk/JSCore.gir.in
1393 Source/WebKit/gtk/org.webkitgtk-${WEBKITGTK_API_VERSION}.gschema.xml:Source/WebKit/gtk/org.webkitgtk.gschema.xml.in
1394 Source/JavaScriptCore/javascriptcoregtk-${WEBKITGTK_API_VERSION}.pc:Source/JavaScriptCore/javascriptcoregtk.pc.in
1395 ]
1396 ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
1397 )
1398
1399
1400 if test "$enable_webkit2" = "yes"; then
1401     AC_CONFIG_FILES([
1402     Source/WebKit2/webkit2gtk-${WEBKITGTK_API_VERSION}.pc:Source/WebKit2/webkit2gtk.pc.in
1403     ]
1404     ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
1405     )
1406 fi
1407
1408 AC_OUTPUT
1409
1410 echo "
1411 WebKit was configured with the following options:
1412
1413 Build configuration:
1414  Enable debugging (slow)                                  : $enable_debug
1415  Compile with debug symbols (slow)                        : $enable_debug_symbols
1416  Enable debug features (slow)                             : $enable_debug_features
1417  Enable GCC build optimization                            : $enable_optimizations
1418  Code coverage support                                    : $enable_coverage
1419  Unicode backend                                          : $with_unicode_backend
1420  Font backend                                             : $with_font_backend
1421  Optimized memory allocator                               : $enable_fast_malloc
1422  JavaScript Engine                                        : $with_jsengine
1423
1424 Features:
1425  3D Rendering                                             : $enable_3d_rendering
1426  WebGL                                                    : $enable_webgl
1427  Blob support                                             : $enable_blob
1428  DOM mutation observer support                            : $enable_mutation_observers
1429  DeviceOrientation support                                : $enable_device_orientation
1430  Directory upload                                         : $enable_directory_upload
1431  Fast Mobile Scrolling                                    : $enable_fast_mobile_scrolling
1432  JIT compilation                                          : $enable_jit
1433  Filters support                                          : $enable_filters
1434  Geolocation support                                      : $enable_geolocation
1435  JavaScript debugger/profiler support                     : $enable_javascript_debugger
1436  Gamepad support                                          : $enable_gamepad
1437  MathML support                                           : $enable_mathml
1438  Media source                                             : $enable_media_source
1439  Media statistics                                         : $enable_media_statistics
1440  HTML5 channel messaging support                          : $enable_channel_messaging
1441  HTML5 meter element support                              : $enable_meter_tag
1442  HTML5 microdata support                                  : $enable_microdata
1443  Page Visibility API support                              : $enable_page_visibility_api
1444  HTML5 progress element support                           : $enable_progress_tag
1445  HTML5 client-side session and persistent storage support : $enable_dom_storage
1446  SQL client-side database storage support                 : $enable_sql_database
1447  HTML5 datagrid support                                   : $enable_datagrid
1448  HTML5 data transfer items support                        : $enable_data_transfer_items
1449  HTML5 FileSystem API support                             : $enable_file_system
1450  Quota API support                                        : $enable_quota
1451  HTML5 sandboxed iframe support                           : $enable_sandbox
1452  HTML5 video element support                              : $enable_video
1453  HTML5 track element support                              : $enable_video_track
1454  Fullscreen API support                                   : $enable_fullscreen_api
1455  Media stream support                                     : $enable_media_stream
1456  Icon database support                                    : $enable_icon_database
1457  Image resizer support                                    : $enable_image_resizer
1458  Link prefetch support                                    : $enable_link_prefetch
1459  Opcode stats                                             : $enable_opcode_stats
1460  SharedWorkers support                                    : $enable_shared_workers
1461  Color input support                                      : $enable_input_color
1462  Speech input support                                     : $enable_input_speech
1463  SVG support                                              : $enable_svg
1464  SVG fonts support                                        : $enable_svg_fonts
1465  Web Audio support                                        : $enable_web_audio
1466  Web Sockets support                                      : $enable_web_sockets
1467  Web Timing support                                       : $enable_web_timing
1468  Web Workers support                                      : $enable_workers
1469  XSLT support                                             : $enable_xslt
1470  Spellcheck support                                       : $enable_spellcheck
1471  Animation API                                            : $enable_animation_api
1472  RequestAnimationFrame support                            : $enable_request_animation_frame
1473  Touch Icon Loading support                               : $enable_touch_icon_loading
1474  Register Protocol Handler support                        : $enable_register_protocol_handler
1475  WebKit2 support                                          : $enable_webkit2
1476  WebKit2 plugin process                                   : $enable_plugin_process
1477
1478 GTK+ configuration:
1479  GTK+ version                                             : $with_gtk
1480  GDK target                                               : $with_target
1481  Hildon UI extensions                                     : $with_hildon
1482  Introspection support                                    : $enable_introspection
1483  Generate documentation                                   : $enable_gtk_doc
1484 "
1485 if test "$with_unicode_backend" = "glib"; then
1486    echo "     >> WARNING: the glib-based unicode backend is slow and incomplete <<"
1487    echo
1488    echo
1489 fi