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