3 m4_define([webkit_major_version], [1])
4 m4_define([webkit_minor_version], [1])
5 m4_define([webkit_micro_version], [90])
7 # This is the version we'll be using as part of our User-Agent string
8 # e.g., AppleWebKit/$(webkit_user_agent_version) ...
10 # Sourced from WebCore/Configurations/Version.xcconfig
11 m4_define([webkit_user_agent_major_version], [531])
12 m4_define([webkit_user_agent_minor_version], [2])
14 AC_INIT([WebKit],[webkit_major_version.webkit_minor_version.webkit_micro_version],[http://bugs.webkit.org/])
16 AC_CONFIG_MACRO_DIR([autotools])
17 AC_CONFIG_AUX_DIR([autotools])
18 AC_SUBST(ACLOCAL_AMFLAGS, "-I autotools")
20 AC_CONFIG_HEADERS([autotoolsconfig.h])
23 WEBKIT_MAJOR_VERSION=webkit_major_version
24 WEBKIT_MINOR_VERSION=webkit_minor_version
25 WEBKIT_MICRO_VERSION=webkit_micro_version
26 WEBKIT_USER_AGENT_MAJOR_VERSION=webkit_user_agent_major_version
27 WEBKIT_USER_AGENT_MINOR_VERSION=webkit_user_agent_minor_version
28 AC_SUBST(WEBKIT_MAJOR_VERSION)
29 AC_SUBST(WEBKIT_MINOR_VERSION)
30 AC_SUBST(WEBKIT_MICRO_VERSION)
31 AC_SUBST(WEBKIT_USER_AGENT_MAJOR_VERSION)
32 AC_SUBST(WEBKIT_USER_AGENT_MINOR_VERSION)
34 AC_CONFIG_SRCDIR([WebCore/config.h])
36 dnl # Libtool library version, not to confuse with API version
37 dnl # see http://www.gnu.org/software/libtool/manual/html_node/Libtool-versioning.html#Libtool-versioning
38 LIBWEBKITGTK_VERSION=19:0:17
39 AC_SUBST([LIBWEBKITGTK_VERSION])
41 AM_INIT_AUTOMAKE([foreign subdir-objects tar-ustar])
43 # Use AM_SILENT_RULES if present
44 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
46 # host checking - inspired by the GTK+ configure.in
47 # TODO: move these to webkit.m4?
48 AC_MSG_CHECKING([for native Win32])
57 AC_MSG_RESULT([$os_win32])
72 gnu* | linux* | k*bsd*-gnu)
80 # initialize webkit options
85 # use dolt to speedup the build
88 AC_PATH_PROG(FLEX, flex)
89 if test -z "$FLEX"; then
90 AC_MSG_ERROR([You need the 'flex' lexer generator to compile WebKit])
92 FLEX_VERSION=`$FLEX --version | sed 's,.*\ \([0-9]*\.[0-9]*\.[0-9]*\)$,\1,'`
93 AX_COMPARE_VERSION([2.5.33],[gt],[$FLEX_VERSION],
94 AC_MSG_WARN([You need at least version 2.5.33 of the 'flex' lexer generator to compile WebKit correctly]))
97 AC_PATH_PROG(GPERF, gperf)
98 if test -z "$GPERF"; then
99 AC_MSG_ERROR([You need the 'gperf' hash function generator to compile WebKit])
102 # pthread (not needed on Windows)
103 if test "$os_win32" = "no"; then
104 AC_CHECK_HEADERS([pthread.h],
105 AC_DEFINE([HAVE_PTHREAD_H],[1],[Define if pthread exists]),
106 AC_MSG_ERROR([pthread support is required to build WebKit]))
109 # check for libjpeg the way Gtk does it.
110 AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
111 jpeg_ok=yes, jpeg_ok=no
112 AC_MSG_ERROR([JPEG library (libjpeg) not found]))
113 if test "$jpeg_ok" = yes; then
114 AC_MSG_CHECKING([for jpeglib])
120 #include <jpeglib.h>],
123 AC_MSG_RESULT($jpeg_ok)
124 if test "$jpeg_ok" = yes; then
126 # should we check for progressive JPEG like GTK+ as well?
128 AC_MSG_ERROR([JPEG library (libjpeg) not found])
131 AC_SUBST([JPEG_LIBS])
133 # Check for libpng the way Gtk+ does it
134 for l in libpng libpng14 libpng12; do
135 AC_MSG_CHECKING(for $l)
136 if $PKG_CONFIG --exists $l ; then
138 PNG_LIBS=`$PKG_CONFIG --libs $l`
146 if test "$png_ok" != yes; then
147 AC_CHECK_LIB(png, png_read_info,
148 [AC_CHECK_HEADER(png.h,
151 AC_MSG_ERROR([PNG library (libpng) not found]), -lz -lm)
152 if test "$png_ok" = yes; then
153 AC_MSG_CHECKING([for png_structp in png.h])
154 AC_TRY_COMPILE([#include <png.h>],
155 [png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;],
158 AC_MSG_RESULT($png_ok)
159 if test "$png_ok" = yes; then
162 AC_MSG_ERROR([PNG library (libpng) not found])
165 AC_MSG_ERROR([PNG library (libpng) not found])
170 # determine the GDK/GTK+ target
171 AC_MSG_CHECKING([the target windowing system])
173 AC_HELP_STRING([--with-target=@<:@x11/win32/quartz/directfb@:>@],
174 [Select webkit target [default=x11]]),
175 [],[with_target="x11"])
177 case "$with_target" in
178 x11|win32|quartz|directfb) ;;
179 *) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;;
182 AC_MSG_RESULT([$with_target])
184 AC_MSG_CHECKING([for Hildon UI extensions])
186 AC_HELP_STRING([--with-hildon],
187 [Use Hildon UI extensions [default=no]]),
188 [],[with_hildon="no"])
189 AC_MSG_RESULT([$with_hildon])
191 if test "$with_hildon" = "yes"; then
192 HILDON_CPPFLAGS="-DMAEMO_CHANGES"
193 PKG_CHECK_MODULES([HILDON], [hildon-1])
194 AC_SUBST([HILDON_CPPFLAGS])
195 AC_SUBST([HILDON_CFLAGS])
196 AC_SUBST([HILDON_LIBS])
199 # minimum base dependencies
200 LIBSOUP_REQUIRED_VERSION=2.28.2
201 CAIRO_REQUIRED_VERSION=1.6
202 FONTCONFIG_REQUIRED_VERSION=2.4
203 FREETYPE2_REQUIRED_VERSION=9.0
204 LIBXML_REQUIRED_VERSION=2.6
206 # minimum GTK+ base dependencies
207 PANGO_REQUIRED_VERSION=1.12
208 GTK_REQUIRED_VERSION=2.10
211 LIBXSLT_REQUIRED_VERSION=1.1.7
212 SQLITE_REQUIRED_VERSION=3.0
213 GSTREAMER_REQUIRED_VERSION=0.10
214 GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION=0.10.25
215 ENCHANT_REQUIRED_VERSION=0.22
216 GAIL_REQUIRED_VERSION=1.8
220 # glib - glib and includes gthread
221 # unicode - check and identify which unicode backend to use
224 WEBKIT_CHECK_DEPENDENCIES([glib unicode])
226 GETTEXT_PACKAGE=$PACKAGE
227 AC_SUBST(GETTEXT_PACKAGE)
228 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
229 [The gettext catalog name])
231 PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED_VERSION)
232 AC_SUBST(LIBXML_CFLAGS)
233 AC_SUBST(LIBXML_LIBS)
235 PKG_CHECK_MODULES(PANGO,
236 [pango >= $PANGO_REQUIRED_VERSION
238 AC_SUBST(PANGO_CFLAGS)
241 PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED_VERSION)
242 AC_SUBST(ENCHANT_CFLAGS)
243 AC_SUBST(ENCHANT_LIBS)
245 PKG_CHECK_MODULES(GAIL, gail >= $GAIL_REQUIRED_VERSION)
246 AC_SUBST(GAIL_CFLAGS)
249 # check for target-specific dependencies
250 if test "$with_target" = "directfb"; then
251 PKG_CHECK_MODULES(CAIRO, cairo-directfb >= $CAIRO_REQUIRED_VERSION)
252 PKG_CHECK_MODULES(GTK, gtk+-directfb-2.0 >= $GTK_REQUIRED_VERSION)
253 AC_DEFINE([WTF_PLATFORM_DIRECTFB],[1],[Define if target is DirectFB])
255 PKG_CHECK_MODULES(CAIRO, cairo >= $CAIRO_REQUIRED_VERSION)
256 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_REQUIRED_VERSION)
258 if test "$with_target" = "x11" && test "$os_win32" = "no"; then
260 PKG_CHECK_MODULES([XT],
262 [xt_has_pkg_config=yes],
263 [xt_has_pkg_config=no])
264 # some old versions of Xt do not provide xt.pc, so try to link against Xt
265 # and if it's installed fall back to just adding -lXt
266 if test "$xt_has_pkg_config" = "no"; then
267 # using AC_CHECK_LIB instead of AC_SEARCH_LIB is fine in this case as
268 # we don't care about the XtOpenDisplay symbol but only about the
270 AC_CHECK_LIB([Xt], [XtOpenDisplay],
271 [XT_CFLAGS=""; XT_LIBS="-lXt"],
272 [AC_MSG_ERROR([X Toolkit Intrinsics library (libXt) not found])])
274 AC_SUBST([XT_CFLAGS])
276 AC_DEFINE([WTF_PLATFORM_X11],[1],[Define if target is X11])
281 AC_SUBST(CAIRO_CFLAGS)
284 # check whether to build with debugging enabled
285 AC_MSG_CHECKING([whether to do a debug build])
287 AC_HELP_STRING([--enable-debug],
288 [turn on debugging [default=no]]),
289 [],[enable_debug="no"])
290 AC_MSG_RESULT([$enable_debug])
292 # check whether to enable optimized builds
293 AC_MSG_CHECKING([whether to enable optimized builds])
294 AC_ARG_ENABLE(optimizations,
295 AC_HELP_STRING([--enable-optimizations],
296 [turn on optimize builds (GCC only)
298 [enable_optimizations=$enableval],
299 [if test "$enable_debug" = "yes"; then enable_optimizations="no"; else enable_optimizations="yes"; fi])
300 AC_MSG_RESULT([$enable_optimizations])
302 # check whether to enable 3D transforms support
303 AC_MSG_CHECKING([whether to enable support for 3D Transforms])
304 AC_ARG_ENABLE(3D_transforms,
305 AC_HELP_STRING([--enable-3D-transforms],
306 [enable support for 3D transforms [default=no]]),
307 [],[enable_3D_transforms="no"])
308 AC_MSG_RESULT([$enable_3D_transforms])
310 # check whether to enable channel messaging support
311 AC_MSG_CHECKING([whether to enable HTML5 Channel Messaging support])
312 AC_ARG_ENABLE(channel_messaging,
313 AC_HELP_STRING([--enable-channel-messaging],
314 [enable HTML5 channel messaging support [default=yes]]),
315 [],[enable_channel_messaging="yes"])
316 AC_MSG_RESULT([$enable_channel_messaging])
318 # check whether to enable JavaScript debugger/profiler support
319 AC_MSG_CHECKING([whether to enable JavaScript debugger/profiler support])
320 AC_ARG_ENABLE(javascript_debugger,
321 AC_HELP_STRING([--enable-javascript-debugger],
322 [enable JavaScript debugger/profiler support [default=yes]]),
323 [],[enable_javascript_debugger="yes"])
324 AC_MSG_RESULT([$enable_javascript_debugger])
326 # check whether to enable HTML5 Offline Web Applications support
327 AC_MSG_CHECKING([whether to enable HTML5 offline web applications support])
328 AC_ARG_ENABLE(offline_web_applications,
329 AC_HELP_STRING([--enable-offline-web-applications],
330 [enable HTML5 offline web applications support [default=yes]]),
331 [],[enable_offline_web_applications="yes"])
332 AC_MSG_RESULT([$enable_offline_web_applications])
334 # check whether to enable HTML5 client-side session and persitent storage support
335 AC_MSG_CHECKING([whether to enable HTML5 client-side session and persistent storage support])
336 AC_ARG_ENABLE(dom_storage,
337 AC_HELP_STRING([--enable-dom-storage],
338 [enable HTML5 client-side session and persistent storage support [default=yes]]),
339 [],[enable_dom_storage="yes"])
340 AC_MSG_RESULT([$enable_dom_storage])
342 # check whether to enable the indexed database API
343 AC_MSG_CHECKING([whether to enable the indexed database API])
344 AC_ARG_ENABLE(indexed_database,
345 AC_HELP_STRING([--enable-indexeddb],
346 [enable the indexed database API [default=no]]),
347 [],[enable_indexed_database="no"])
348 AC_MSG_RESULT([$enable_indexed_database])
350 # check whether to build with database support
351 AC_MSG_CHECKING([whether to enable HTML5 client-side database storage support])
352 AC_ARG_ENABLE(database,
353 AC_HELP_STRING([--enable-database],
354 [enable HTML5 client-side database storage support [default=yes]]),
355 [],[enable_database="yes"])
356 AC_MSG_RESULT([$enable_database])
358 # check whether to build with server-sent events support
359 AC_MSG_CHECKING([whether to enable HTML5 server-sent events support])
360 AC_ARG_ENABLE(eventsource,
361 AC_HELP_STRING([--enable-eventsource],
362 [enable HTML5 server-sent events support [default=yes]]),
363 [],[enable_eventsource="yes"])
364 AC_MSG_RESULT([$enable_eventsource])
366 # check whether to build with icon database support
367 AC_MSG_CHECKING([whether to enable icon database support])
368 AC_ARG_ENABLE(icon_database,
369 AC_HELP_STRING([--enable-icon-database],
370 [enable icon database [default=yes]]),
371 [],[enable_icon_database="yes"])
372 AC_MSG_RESULT([$enable_icon_database])
374 # check whether to enable HTML5 datalist support
375 AC_MSG_CHECKING([whether to enable HTML5 datalist support])
376 AC_ARG_ENABLE(datalist,
377 AC_HELP_STRING([--enable-datalist],
378 [enable HTML5 datalist support [default=yes]]),
379 [],[enable_datalist="yes"])
380 AC_MSG_RESULT([$enable_datalist])
382 # check whether to enable HTML5 ruby support
383 AC_MSG_CHECKING([whether to enable HTML5 ruby support])
385 AC_HELP_STRING([--enable-ruby],
386 [enable HTML5 ruby support [default=yes]]),
387 [],[enable_ruby="yes"])
388 AC_MSG_RESULT([$enable_ruby])
390 # check whether to enable HTML5 sandbox iframe support
391 AC_MSG_CHECKING([whether to enable HTML5 sandboxed iframe support])
393 AC_HELP_STRING([--enable-sandbox],
394 [enable HTML5 sandboxed iframe support [default=yes]]),
395 [],[enable_sandbox="yes"])
396 AC_MSG_RESULT([$enable_sandbox])
398 # check whether to enable HTML5 audio/video support
399 AC_MSG_CHECKING([whether to enable HTML5 video support])
401 AC_HELP_STRING([--enable-video],
402 [enable HTML5 video support [default=yes]]),
403 [],[enable_video="yes"])
404 AC_MSG_RESULT([$enable_video])
406 # check whether to enable XHTML-MP support
407 AC_MSG_CHECKING([whether to enable XHTML-MP support])
408 AC_ARG_ENABLE(xhtmlmp,
409 AC_HELP_STRING([--enable-xhtmlmp],
410 [enable support for XHTML-MP [default=no]]),
411 [],[enable_xhtmlmp="no"])
412 AC_MSG_RESULT([$enable_xhtmlmp])
414 # check whether to enable XPath support
415 AC_MSG_CHECKING([whether to enable XPath support])
417 AC_HELP_STRING([--enable-xpath],
418 [enable support for XPath [default=yes]]),
419 [],[enable_xpath="yes"])
420 AC_MSG_RESULT([$enable_xpath])
422 # check whether to enable XSLT support
423 AC_MSG_CHECKING([whether to enable XSLT support])
425 AC_HELP_STRING([--enable-xslt],
426 [enable support for XSLT [default=yes]]),
427 [],[enable_xslt="yes"])
428 AC_MSG_RESULT([$enable_xslt])
430 # check whether to enable geolocation support
431 AC_MSG_CHECKING([whether to enable geolocation support])
432 AC_ARG_ENABLE(geolocation,
433 AC_HELP_STRING([--enable-geolocation],
434 [enable support for geolocation [default=no]]),
435 [],[enable_geolocation="no"])
436 AC_MSG_RESULT([$enable_geolocation])
438 # check whether to enable MathML support
439 AC_MSG_CHECKING([whether to enable MathML support])
440 AC_ARG_ENABLE(mathml,
441 AC_HELP_STRING([--enable-mathml],
442 [enable support for MathML [default=no]]),
443 [],[enable_mathml="no"])
444 AC_MSG_RESULT([$enable_mathml])
446 # check whether to enable SVG support
447 AC_MSG_CHECKING([whether to enable SVG support])
449 AC_HELP_STRING([--enable-svg],
450 [enable support for SVG [default=yes]]),
451 [],[enable_svg="yes"])
452 AC_MSG_RESULT([$enable_svg])
454 # check whether to enable WML support
455 AC_MSG_CHECKING([whether to enable WML support])
457 AC_HELP_STRING([--enable-wml],
458 [enable support for WML [default=no]]),
459 [],[enable_wml="no"])
460 AC_MSG_RESULT([$enable_wml])
462 # check whether to enable SharedWorkers support
463 AC_MSG_CHECKING([whether to enable SharedWorkers support])
464 AC_ARG_ENABLE(shared_workers,
465 AC_HELP_STRING([--enable-shared-workers],
466 [enable support for SharedWorkers [default=yes]]),
467 [],[enable_shared_workers="yes"])
468 AC_MSG_RESULT([$enable_shared_workers])
470 # check whether to enable Web Workers support
471 AC_MSG_CHECKING([whether to enable Web Workers support])
472 AC_ARG_ENABLE(workers,
473 AC_HELP_STRING([--enable-workers],
474 [enable support for Web Workers [default=yes]]),
475 [],[enable_workers="yes"])
476 AC_MSG_RESULT([$enable_workers])
478 # turn off svg features if --disable-svg is requested
479 if test "$enable_svg" = "no"; then
480 enable_svg_animation=no
482 enable_svg_foreign_object=no
483 enable_svg_as_image=no
487 # check whether to enable support for SVG animation
488 AC_MSG_CHECKING([whether to enable support for SVG animation])
489 AC_ARG_ENABLE(svg_animation,
490 AC_HELP_STRING([--enable-svg-animation],
491 [enable support for SVG animation (experimental) [default=yes]]),
492 [],[enable_svg_animation="yes"])
493 AC_MSG_RESULT([$enable_svg_animation])
495 # check whether to enable support for filters
496 AC_MSG_CHECKING([whether to enable support for filters])
497 AC_ARG_ENABLE(filters,
498 AC_HELP_STRING([--enable-filters],
499 [enable support for filters (experimental) [default=yes]]),
500 [],[enable_filters="yes"])
501 AC_MSG_RESULT([$enable_filters])
503 # check whether to enable support for SVG fonts
504 AC_MSG_CHECKING([whether to enable support for SVG fonts])
505 AC_ARG_ENABLE(svg_fonts,
506 AC_HELP_STRING([--enable-svg-fonts],
507 [enable support for SVG fonts (experimental) [default=yes]]),
508 [],[enable_svg_fonts="yes"])
509 AC_MSG_RESULT([$enable_svg_fonts])
511 # check whether to enable foreign objects support for SVG
512 AC_MSG_CHECKING([whether to enable support for SVG foreign objects])
513 AC_ARG_ENABLE(svg_foreign_object,
514 AC_HELP_STRING([--enable-svg-foreign-object],
515 [enable support for SVG foreign objects (experimental) [default=yes]]),
516 [],[enable_svg_foreign_object="yes"])
517 AC_MSG_RESULT([$enable_svg_foreign_object])
519 # check whether to enable SVG As Image support
520 AC_MSG_CHECKING([whether to enable SVG as Image support])
521 AC_ARG_ENABLE(svg_as_image,
522 AC_HELP_STRING([--enable-svg-as-image],
523 [enable SVG as Image support (experimental) [default=yes]]),
524 [],[enable_svg_as_image="yes"])
525 AC_MSG_RESULT([$enable_svg_as_image])
527 # check whether to enable SVG USE element support
528 AC_MSG_CHECKING([whether to enable support for SVG use element])
529 AC_ARG_ENABLE(svg_use,
530 AC_HELP_STRING([--enable-svg-use],
531 [enable SVG use element support (experimental) [default=yes]]),
532 [],[enable_svg_use="yes"])
533 AC_MSG_RESULT([$enable_svg_use])
535 # check for SVG features, enabling SVG if necessary
536 if test "$enable_svg_animation" = "yes" || \
537 test "$enable_svg_fonts" = "yes" || \
538 test "$enable_svg_foreign_object" = "yes" || \
539 test "$enable_svg_as_image" = "yes" || \
540 test "$enable_svg_use" = "yes"; then
542 if test "$enable_svg" = "no"; then
543 AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support])
548 # check whether to enable Web Socket support
549 AC_MSG_CHECKING([whether to enable Web Sockets support])
550 AC_ARG_ENABLE(web_sockets,
551 AC_HELP_STRING([--enable-web-sockets],
552 [enable support for Web Sockets [default=no]]),
553 [],[enable_web_sockets="no"])
554 AC_MSG_RESULT([$enable_web_sockets])
556 # check whether to enable Blob.slice support
557 AC_MSG_CHECKING([whether to enable Blob.slice support])
558 AC_ARG_ENABLE(blob_slice,
559 AC_HELP_STRING([--enable-blob-slice],
560 [enable support for Blob.slice [default=no]]),
561 [],[enable_blob_slice="no"])
562 AC_MSG_RESULT([$enable_blob_slice])
564 # check whether to enable Fast Mobile Scrolling support
565 AC_MSG_CHECKING([whether to enable Fast Mobile Scrolling])
566 AC_ARG_ENABLE(fast_mobile_scrolling,
567 AC_HELP_STRING([--enable-fast-mobile-scrolling],
568 [enable support for Fast Mobile Scrolling [default=no]]),
569 [],[enable_fast_mobile_scrolling="no"])
570 AC_MSG_RESULT([$enable_fast_mobile_scrolling])
572 # check whether to enable code coverage
573 AC_MSG_CHECKING([whether to enable code coverage support])
574 AC_ARG_ENABLE(coverage,
575 AC_HELP_STRING([--enable-coverage],
576 [enable code coverage support [default=no]]),
577 [],[enable_coverage="no"])
578 AC_MSG_RESULT([$enable_coverage])
580 # check whether to enable FastMalloc
581 AC_MSG_CHECKING([whether to enable optimized memory allocator])
582 AC_ARG_ENABLE(fast_malloc,
583 AC_HELP_STRING([--enable-fast-malloc],
584 [enable optimized memory allocator default=yes, default=no for debug builds]),
585 [],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi])
586 AC_MSG_RESULT([$enable_fast_malloc])
588 AC_MSG_CHECKING([whether to enable JIT compilation])
590 AC_HELP_STRING([--enable-jit],
591 [Enable JIT compilation default=yes]),
592 [],[enable_jit="yes"])
593 if test "$enable_jit" = "yes"; then
596 AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
597 AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
598 AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
599 AC_DEFINE([ENABLE_JIT_OPTIMIZE_CALL], [1], [Define to enable optimizing calls])
600 AC_DEFINE([ENABLE_JIT_OPTIMIZE_PROPERTY_ACCESS], [1], [Define to enable optimized property access])
601 AC_DEFINE([ENABLE_JIT_OPTIMIZE_ARITHMETIC], [1], [Define to enable optimized arithmetic])
604 AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_VA_LIST], [1], [Use stub va_list])
607 AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_REGISTER], [1], [Use stub register])
608 AC_DEFINE([WTF_USE_ALTERNATE_JSIMMEDIATE], [1], [Use alternate JSImmediate])
613 enable_jit="no (CPU '$host_cpu' not supported)"
617 AC_MSG_RESULT([$enable_jit])
619 # GObject Introspection
620 AC_MSG_CHECKING([whether to enable GObject introspection support])
621 AC_ARG_ENABLE([introspection],
622 [AS_HELP_STRING([--enable-introspection],[Enable GObject introspection (default: disabled)])],
623 [],[enable_introspection=no])
624 AC_MSG_RESULT([$enable_introspection])
632 if test "$enable_introspection" = "yes"; then
633 GOBJECT_INTROSPECTION_REQUIRED=0.6.2
634 PKG_CHECK_MODULES([INTROSPECTION],[gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED])
636 G_IR_SCANNER="$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)"
637 G_IR_COMPILER="$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)"
638 G_IR_GENERATE="$($PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0)"
639 GIRDIR="$($PKG_CONFIG --define-variable=prefix=$prefix --variable=girdir gobject-introspection-1.0)"
640 GIRTYPELIBDIR="$($PKG_CONFIG --define-variable=prefix=$prefix --variable=typelibdir gobject-introspection-1.0)"
642 AC_DEFINE([ENABLE_INTROSPECTION],[1],[Define to enable GObject introspection support])
645 AC_SUBST([G_IR_SCANNER])
646 AC_SUBST([G_IR_COMPILER])
647 AC_SUBST([G_IR_GENERATE])
649 AC_SUBST([GIRTYPELIBDIR])
651 # determine the font backend
652 AC_MSG_CHECKING([the font backend to use])
653 AC_ARG_WITH(font_backend,
654 AC_HELP_STRING([--with-font-backend=@<:@freetype/pango@:>@],
655 [Select font backend [default=freetype]]),
656 [],[with_font_backend="freetype"])
658 case "$with_font_backend" in
660 *) AC_MSG_ERROR([Invalid font backend: must be freetype or pango.]) ;;
662 AC_MSG_RESULT([$with_font_backend])
664 # Add '-g' flag to gcc if it's debug build
665 if test "$enable_debug" = "yes"; then
666 CXXFLAGS="$CXXFLAGS -g"
669 AC_DEFINE([NDEBUG], [1], [Define to disable debugging features])
672 # Add the appropriate 'O' level for optimized builds
673 if test "$enable_optimizations" = "yes"; then
674 CXXFLAGS="$CXXFLAGS -O2"
677 CXXFLAGS="$CXXFLAGS -O0"
681 PKG_CHECK_MODULES([LIBSOUP],
682 [libsoup-2.4 >= $LIBSOUP_REQUIRED_VERSION])
683 AC_SUBST([LIBSOUP_CFLAGS])
684 AC_SUBST([LIBSOUP_LIBS])
686 # check if we can use libSoup 2.29.90 features
687 PKG_CHECK_MODULES([LIBSOUP_2_29_90],
688 [libsoup-2.4 >= 2.29.90],
689 [have_libsoup_2_29_90=yes],
690 [have_libsoup_2_29_90=no])
691 if test "$have_libsoup_2_29_90" = "yes"; then
692 AC_DEFINE([HAVE_LIBSOUP_2_29_90], 1, [Whether libSoup 2.29.90 features are available])
695 # check if FreeType/FontConfig are available
696 if test "$with_font_backend" = "freetype"; then
697 if test "$with_target" = "directfb"; then
698 PKG_CHECK_MODULES([FREETYPE],
699 [fontconfig >= $FONTCONFIG_REQUIRED_VERSION
700 freetype2 >= $FREETYPE2_REQUIRED_VERSION])
702 PKG_CHECK_MODULES([FREETYPE],
704 fontconfig >= $FONTCONFIG_REQUIRED_VERSION
705 freetype2 >= $FREETYPE2_REQUIRED_VERSION])
707 AC_SUBST([FREETYPE_CFLAGS])
708 AC_SUBST([FREETYPE_LIBS])
711 # check if sqlite 3 is available
712 if test "$enable_icon_database" = "yes" || \
713 test "$enable_database" = "yes" || \
714 test "$enable_offline_web_applications" = "yes" || \
715 test "$enable_dom_storage" = "yes"; then
716 PKG_CHECK_MODULES([SQLITE3],
717 [sqlite3 >= $SQLITE_REQUIRED_VERSION],
718 [sqlite3_has_pkg_config=yes],
719 [sqlite3_has_pkg_config=no])
720 if test "$sqlite3_has_pkg_config" = "no"; then
721 AC_SEARCH_LIBS([sqlite3_open16], [sqlite3],
722 [SQLITE3_LIBS="$LIBS";SQLITE3_CFLAGS="-I $srcdir/WebKitLibraries/WebCoreSQLite3"],
723 [AC_MSG_ERROR([SQLite3 is required to enable Database support])])
725 AC_SUBST([SQLITE3_CFLAGS])
726 AC_SUBST([SQLITE3_LIBS])
729 # check if libxslt is available
730 if test "$enable_xslt" = "yes"; then
731 PKG_CHECK_MODULES([LIBXSLT],[libxslt >= $LIBXSLT_REQUIRED_VERSION])
732 AC_SUBST([LIBXSLT_CFLAGS])
733 AC_SUBST([LIBXSLT_LIBS])
736 # check if geoclue is available
737 if test "$enable_geolocation" = "yes"; then
738 PKG_CHECK_MODULES([GEOCLUE], [geoclue])
739 AC_SUBST([GEOCLUE_CFLAGS])
740 AC_SUBST([GEOCLUE_LIBS])
743 # check if gstreamer is available
744 if test "$enable_video" = "yes"; then
745 PKG_CHECK_MODULES([GSTREAMER],
746 [gstreamer-0.10 >= $GSTREAMER_REQUIRED_VERSION
749 gstreamer-pbutils-0.10
750 gstreamer-plugins-base-0.10 >= $GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION
751 gstreamer-video-0.10])
752 AC_SUBST([GSTREAMER_CFLAGS])
753 AC_SUBST([GSTREAMER_LIBS])
756 # check for code coverage support
757 if test "$enable_coverage" = "yes"; then
758 COVERAGE_CFLAGS="-MD"
759 COVERAGE_LDFLAGS="-ftest-coverage -fprofile-arcs"
760 AC_SUBST([COVERAGE_CFLAGS])
761 AC_SUBST([COVERAGE_LDFLAGS])
764 # check for HTML features
765 if test "$enable_video" = "yes"; then
769 GTK_DOC_CHECK([1.10])
772 AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])
773 AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"])
774 AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
775 AM_CONDITIONAL([OS_GNU],[test "$os_gnu" = "yes"])
776 AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
778 # target conditionals
779 AM_CONDITIONAL([TARGET_X11], [test "$with_target" = "x11"])
780 AM_CONDITIONAL([TARGET_WIN32], [test "$with_target" = "win32"])
781 AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"])
782 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"])
784 # Unicode backend conditionals
785 AM_CONDITIONAL([USE_ICU_UNICODE], [test "$with_unicode_backend" = "icu"])
786 AM_CONDITIONAL([USE_GLIB_UNICODE], [test "$with_unicode_backend" = "glib"])
788 # Font backend conditionals
789 AM_CONDITIONAL([USE_FREETYPE], [test "$with_font_backend" = "freetype"])
790 AM_CONDITIONAL([USE_PANGO], [test "$with_font_backend" = "pango"])
792 # WebKit feature conditionals
793 AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug" = "yes"])
794 AM_CONDITIONAL([ENABLE_3D_TRANSFORMS],[test "$enable_3D_transforms" = "yes"])
795 AM_CONDITIONAL([ENABLE_BLOB_SLICE],[test "$enable_blob_slice" = "yes"])
796 AM_CONDITIONAL([ENABLE_CHANNEL_MESSAGING],[test "$enable_channel_messaging" = "yes"])
797 AM_CONDITIONAL([ENABLE_JAVASCRIPT_DEBUGGER],[test "$enable_javascript_debugger" = "yes"])
798 AM_CONDITIONAL([ENABLE_OFFLINE_WEB_APPLICATIONS],[test "$enable_offline_web_applications" = "yes"])
799 AM_CONDITIONAL([ENABLE_DOM_STORAGE],[test "$enable_dom_storage" = "yes"])
800 AM_CONDITIONAL([ENABLE_DATABASE],[test "$enable_database" = "yes"])
801 AM_CONDITIONAL([ENABLE_DATALIST],[test "$enable_datalist" = "yes"])
802 AM_CONDITIONAL([ENABLE_EVENTSOURCE],[test "$enable_eventsource" = "yes"])
803 AM_CONDITIONAL([ENABLE_FAST_MOBILE_SCROLLING],[test "$enable_fast_mobile_scrolling" = "yes"])
804 AM_CONDITIONAL([ENABLE_ICONDATABASE],[test "$enable_icon_database" = "yes"])
805 AM_CONDITIONAL([ENABLE_INDEXED_DATABASE],[test "$enable_indexed_database" = "yes"])
806 AM_CONDITIONAL([ENABLE_XHTMLMP],[test "$enable_xhtmlmp" = "yes"])
807 AM_CONDITIONAL([ENABLE_XPATH],[test "$enable_xpath" = "yes"])
808 AM_CONDITIONAL([ENABLE_XSLT],[test "$enable_xslt" = "yes"])
809 AM_CONDITIONAL([ENABLE_FILTERS],[test "$enable_filters" = "yes"])
810 AM_CONDITIONAL([ENABLE_GEOLOCATION], [test "$enable_geolocation" = "yes"])
811 AM_CONDITIONAL([ENABLE_MATHML], [test "$enable_mathml" = "yes"])
812 AM_CONDITIONAL([ENABLE_RUBY],[test "$enable_ruby" = "yes"])
813 AM_CONDITIONAL([ENABLE_SANDBOX],[test "$enable_sandbox" = "yes"])
814 AM_CONDITIONAL([ENABLE_VIDEO],[test "$enable_video" = "yes"])
815 AM_CONDITIONAL([ENABLE_NOTIFICATIONS],[test "$enable_notifications" = "yes"])
816 AM_CONDITIONAL([ENABLE_ORIENTATION_EVENTS],[test "$enable_orientation_events" = "yes"])
817 AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"])
818 AM_CONDITIONAL([ENABLE_SVG_ANIMATION],[test "$enable_svg_animation" = "yes"])
819 AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"])
820 AM_CONDITIONAL([ENABLE_SVG_FOREIGN_OBJECT],[test "$enable_svg_foreign_object" = "yes"])
821 AM_CONDITIONAL([ENABLE_SVG_AS_IMAGE],[test "$enable_svg_as_image" = "yes"])
822 AM_CONDITIONAL([ENABLE_SVG_USE],[test "$enable_svg_use" = "yes"])
823 AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"])
824 AM_CONDITIONAL([ENABLE_FAST_MALLOC],[test "$enable_fast_malloc" = "yes"])
825 AM_CONDITIONAL([ENABLE_WML],[test "$enable_wml" = "yes"])
826 AM_CONDITIONAL([ENABLE_WORKERS],[test "$enable_workers" = "yes"])
827 AM_CONDITIONAL([ENABLE_SHARED_WORKERS],[test "$enable_shared_workers" = "yes"])
828 AM_CONDITIONAL([SVG_FLAGS],[test "$svg_flags" = "yes"])
829 AM_CONDITIONAL([HTML_FLAGS],[test "$html_flags" = "yes"])
830 AM_CONDITIONAL([ENABLE_WEB_SOCKETS],[test "$enable_web_sockets" = "yes"])
833 AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"])
838 WebKit/gtk/webkit-1.0.pc:WebKit/gtk/webkit.pc.in
839 WebKit/gtk/webkit/webkitversion.h
840 WebKit/gtk/docs/GNUmakefile
841 WebKit/gtk/docs/version.xml
848 WebKit was configured with the following options:
851 Enable debugging (slow) : $enable_debug
852 Enable GCC build optimization : $enable_optimizations
853 Code coverage support : $enable_coverage
854 Unicode backend : $with_unicode_backend
855 Font backend : $with_font_backend
856 Optimized memory allocator : $enable_fast_malloc
858 3D Transforms : $enable_3D_transforms
859 Blob.slice support : $enable_blob_slice
860 Fast Mobile Scrolling : $enable_fast_mobile_scrolling
861 JIT compilation : $enable_jit
862 Filters support : $enable_filters
863 Geolocation support : $enable_geolocation
864 JavaScript debugger/profiler support : $enable_javascript_debugger
865 MathML support : $enable_mathml
866 HTML5 offline web applications support : $enable_offline_web_applications
867 HTML5 channel messaging support : $enable_channel_messaging
868 HTML5 client-side session and persistent storage support : $enable_dom_storage
869 HTML5 client-side database storage support : $enable_database
870 HTML5 ruby support : $enable_ruby
871 HTML5 sandboxed iframe support : $enable_sandbox
872 HTML5 server-sent events support : $enable_eventsource
873 HTML5 video element support : $enable_video
874 Icon database support : $enable_icon_database
875 SharedWorkers support : $enable_shared_workers
876 SVG support : $enable_svg
877 SVG animation support : $enable_svg_animation
878 SVG fonts support : $enable_svg_fonts
879 SVG foreign object support : $enable_svg_foreign_object
880 SVG as image support : $enable_svg_as_image
881 SVG use element support : $enable_svg_use
882 WML support : $enable_wml
883 Web Sockets support : $enable_web_sockets
884 Web Workers support : $enable_workers
885 XHTML-MP support : $enable_xhtmlmp
886 XPATH support : $enable_xpath
887 XSLT support : $enable_xslt
889 GDK target : $with_target
890 Hildon UI extensions : $with_hildon
891 Introspection support : $enable_introspection
893 if test "$with_unicode_backend" = "glib"; then
894 echo " >> WARNING: the glib-based unicode backend is slow and incomplete <<"