3 m4_define([webkit_major_version], [1])
4 m4_define([webkit_minor_version], [3])
5 m4_define([webkit_micro_version], [4])
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], [534])
12 m4_define([webkit_user_agent_minor_version], [7])
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=1:0:1
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 GTK+ version to use
171 AC_MSG_CHECKING([the GTK+ version to use])
173 [AS_HELP_STRING([--with-gtk=2.0|3.0], [the GTK+ version to use (default: 2.0)])],
176 *) AC_MSG_ERROR([invalid GTK+ version specified]) ;;
179 AC_MSG_RESULT([$with_gtk])
182 2.0) GTK_REQUIRED_VERSION=2.10
184 WEBKITGTK_API_MAJOR_VERSION=1
185 WEBKITGTK_API_MINOR_VERSION=0
186 WEBKITGTK_API_VERSION=1.0
187 WEBKITGTK_PC_NAME=webkit
189 GAIL_REQUIRED_VERSION=1.8
191 3.0) GTK_REQUIRED_VERSION=2.90
193 WEBKITGTK_API_MAJOR_VERSION=3
194 WEBKITGTK_API_MINOR_VERSION=0
195 WEBKITGTK_API_VERSION=3.0
196 WEBKITGTK_PC_NAME=webkitgtk
197 GAIL_PC_NAME=gail-3.0
198 GAIL_REQUIRED_VERSION=2.90.4
202 AC_SUBST([WEBKITGTK_API_MAJOR_VERSION])
203 AC_SUBST([WEBKITGTK_API_MINOR_VERSION])
204 AC_SUBST([WEBKITGTK_API_VERSION])
205 AC_SUBST([WEBKITGTK_PC_NAME])
206 AC_SUBST([GTK_API_VERSION])
207 AM_CONDITIONAL([GTK_API_VERSION_2],[test "$GTK_API_VERSION" = "2.0"])
209 # determine the GDK/GTK+ target
210 AC_MSG_CHECKING([the target windowing system])
212 AC_HELP_STRING([--with-target=@<:@x11/win32/quartz/directfb@:>@],
213 [Select webkit target [default=x11]]),
214 [],[with_target="x11"])
216 case "$with_target" in
217 x11|win32|quartz|directfb) ;;
218 *) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;;
221 AC_MSG_RESULT([$with_target])
223 AC_MSG_CHECKING([for Hildon UI extensions])
225 AC_HELP_STRING([--with-hildon],
226 [Use Hildon UI extensions [default=no]]),
227 [],[with_hildon="no"])
228 AC_MSG_RESULT([$with_hildon])
230 if test "$with_hildon" = "yes"; then
231 HILDON_CPPFLAGS="-DMAEMO_CHANGES"
232 PKG_CHECK_MODULES([HILDON], [hildon-1])
233 AC_SUBST([HILDON_CPPFLAGS])
234 AC_SUBST([HILDON_CFLAGS])
235 AC_SUBST([HILDON_LIBS])
238 # minimum base dependencies
239 LIBSOUP_REQUIRED_VERSION=2.28.2
240 CAIRO_REQUIRED_VERSION=1.6
241 FONTCONFIG_REQUIRED_VERSION=2.4
242 FREETYPE2_REQUIRED_VERSION=9.0
243 LIBXML_REQUIRED_VERSION=2.6
245 # minimum GTK+ base dependencies
246 PANGO_REQUIRED_VERSION=1.12
249 LIBXSLT_REQUIRED_VERSION=1.1.7
250 SQLITE_REQUIRED_VERSION=3.0
251 GSTREAMER_REQUIRED_VERSION=0.10
252 GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION=0.10.25
253 ENCHANT_REQUIRED_VERSION=0.22
257 # glib - glib and includes gthread
258 # unicode - check and identify which unicode backend to use
261 WEBKIT_CHECK_DEPENDENCIES([glib unicode])
263 # Check if we can use GSettings
264 PKG_CHECK_MODULES([GSETTINGS],
266 [have_gsettings=yes],
268 if test "$have_gsettings" = "yes"; then
269 AC_DEFINE([HAVE_GSETTINGS], 1, [Whether we can use GSettings])
273 GETTEXT_PACKAGE=$PACKAGE-$GTK_API_VERSION
274 AC_SUBST(GETTEXT_PACKAGE)
275 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
276 [The gettext catalog name])
278 PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED_VERSION)
279 AC_SUBST(LIBXML_CFLAGS)
280 AC_SUBST(LIBXML_LIBS)
282 PKG_CHECK_MODULES(PANGO,
283 [pango >= $PANGO_REQUIRED_VERSION
285 AC_SUBST(PANGO_CFLAGS)
288 PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED_VERSION)
289 AC_SUBST(ENCHANT_CFLAGS)
290 AC_SUBST(ENCHANT_LIBS)
292 PKG_CHECK_MODULES(GAIL, $GAIL_PC_NAME >= $GAIL_REQUIRED_VERSION)
293 AC_SUBST(GAIL_CFLAGS)
296 # check for target-specific dependencies
297 if test "$with_target" = "directfb"; then
298 PKG_CHECK_MODULES(CAIRO, cairo-directfb >= $CAIRO_REQUIRED_VERSION)
299 PKG_CHECK_MODULES(GTK, gtk+-directfb-2.0 >= $GTK_REQUIRED_VERSION)
300 AC_DEFINE([WTF_PLATFORM_DIRECTFB],[1],[Define if target is DirectFB])
302 PKG_CHECK_MODULES(CAIRO, cairo >= $CAIRO_REQUIRED_VERSION)
303 PKG_CHECK_MODULES(GTK, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED_VERSION)
305 if test "$with_target" = "x11" && test "$os_win32" = "no"; then
307 PKG_CHECK_MODULES([XT],
309 [xt_has_pkg_config=yes],
310 [xt_has_pkg_config=no])
311 # some old versions of Xt do not provide xt.pc, so try to link against Xt
312 # and if it's installed fall back to just adding -lXt
313 if test "$xt_has_pkg_config" = "no"; then
314 # using AC_CHECK_LIB instead of AC_SEARCH_LIB is fine in this case as
315 # we don't care about the XtOpenDisplay symbol but only about the
317 AC_CHECK_LIB([Xt], [XtOpenDisplay],
318 [XT_CFLAGS=""; XT_LIBS="-lXt"],
319 [AC_MSG_ERROR([X Toolkit Intrinsics library (libXt) not found])])
321 AC_SUBST([XT_CFLAGS])
323 AC_DEFINE([WTF_PLATFORM_X11],[1],[Define if target is X11])
328 AC_SUBST(CAIRO_CFLAGS)
331 # check whether to build with debugging enabled
332 AC_MSG_CHECKING([whether to do a debug build])
334 AC_HELP_STRING([--enable-debug],
335 [turn on debugging [default=no]]),
336 [],[enable_debug="no"])
337 AC_MSG_RESULT([$enable_debug])
339 # check whether to enable optimized builds
340 AC_MSG_CHECKING([whether to enable optimized builds])
341 AC_ARG_ENABLE(optimizations,
342 AC_HELP_STRING([--enable-optimizations],
343 [turn on optimize builds (GCC only)
345 [enable_optimizations=$enableval],
346 [if test "$enable_debug" = "yes"; then enable_optimizations="no"; else enable_optimizations="yes"; fi])
347 AC_MSG_RESULT([$enable_optimizations])
349 # check whether to enable 3D transforms support
350 AC_MSG_CHECKING([whether to enable support for 3D Transforms])
351 AC_ARG_ENABLE(3D_transforms,
352 AC_HELP_STRING([--enable-3D-transforms],
353 [enable support for 3D transforms [default=no]]),
354 [],[enable_3D_transforms="no"])
355 AC_MSG_RESULT([$enable_3D_transforms])
357 # check whether to enable channel messaging support
358 AC_MSG_CHECKING([whether to enable HTML5 Channel Messaging support])
359 AC_ARG_ENABLE(channel_messaging,
360 AC_HELP_STRING([--enable-channel-messaging],
361 [enable HTML5 channel messaging support [default=yes]]),
362 [],[enable_channel_messaging="yes"])
363 AC_MSG_RESULT([$enable_channel_messaging])
365 # check whether to enable JavaScript debugger/profiler support
366 AC_MSG_CHECKING([whether to enable JavaScript debugger/profiler support])
367 AC_ARG_ENABLE(javascript_debugger,
368 AC_HELP_STRING([--enable-javascript-debugger],
369 [enable JavaScript debugger/profiler support [default=yes]]),
370 [],[enable_javascript_debugger="yes"])
371 AC_MSG_RESULT([$enable_javascript_debugger])
373 # check whether to enable HTML5 Offline Web Applications support
374 AC_MSG_CHECKING([whether to enable HTML5 offline web applications support])
375 AC_ARG_ENABLE(offline_web_applications,
376 AC_HELP_STRING([--enable-offline-web-applications],
377 [enable HTML5 offline web applications support [default=yes]]),
378 [],[enable_offline_web_applications="yes"])
379 AC_MSG_RESULT([$enable_offline_web_applications])
381 # check whether to enable HTML5 client-side session and persitent storage support
382 AC_MSG_CHECKING([whether to enable HTML5 client-side session and persistent storage support])
383 AC_ARG_ENABLE(dom_storage,
384 AC_HELP_STRING([--enable-dom-storage],
385 [enable HTML5 client-side session and persistent storage support [default=yes]]),
386 [],[enable_dom_storage="yes"])
387 AC_MSG_RESULT([$enable_dom_storage])
389 # check whether to enable the indexed database API
390 AC_MSG_CHECKING([whether to enable the indexed database API])
391 AC_ARG_ENABLE(indexed_database,
392 AC_HELP_STRING([--enable-indexeddb],
393 [enable the indexed database API [default=no]]),
394 [],[enable_indexed_database="no"])
395 AC_MSG_RESULT([$enable_indexed_database])
397 # check whether to enable the speech input API
398 AC_MSG_CHECKING([whether to enable the speech input API])
399 AC_ARG_ENABLE(input_speech,
400 AC_HELP_STRING([--enable-input-speech],
401 [enable the speech input API [default=no]]),
402 [],[enable_input_speech="no"])
403 AC_MSG_RESULT([$enable_input_speech])
405 # check whether to build with database support
406 AC_MSG_CHECKING([whether to enable HTML5 client-side database storage support])
407 AC_ARG_ENABLE(database,
408 AC_HELP_STRING([--enable-database],
409 [enable HTML5 client-side database storage support [default=yes]]),
410 [],[enable_database="yes"])
411 AC_MSG_RESULT([$enable_database])
413 # check whether to build with server-sent events support
414 AC_MSG_CHECKING([whether to enable HTML5 server-sent events support])
415 AC_ARG_ENABLE(eventsource,
416 AC_HELP_STRING([--enable-eventsource],
417 [enable HTML5 server-sent events support [default=yes]]),
418 [],[enable_eventsource="yes"])
419 AC_MSG_RESULT([$enable_eventsource])
421 # check whether to build with icon database support
422 AC_MSG_CHECKING([whether to enable icon database support])
423 AC_ARG_ENABLE(icon_database,
424 AC_HELP_STRING([--enable-icon-database],
425 [enable icon database [default=yes]]),
426 [],[enable_icon_database="yes"])
427 AC_MSG_RESULT([$enable_icon_database])
429 # check whether to build with image resizer API support
430 AC_MSG_CHECKING([whether to enable image resizer API support])
431 AC_ARG_ENABLE(image_resizer,
432 AC_HELP_STRING([--enable-image-resizer],
433 [enable image resizer [default=no]]),
434 [],[enable_image_resizer="no"])
435 AC_MSG_RESULT([$enable_image_resizer])
437 # check whether to enable HTML5 datalist support
438 AC_MSG_CHECKING([whether to enable HTML5 datalist support])
439 AC_ARG_ENABLE(datalist,
440 AC_HELP_STRING([--enable-datalist],
441 [enable HTML5 datalist support [default=yes]]),
442 [],[enable_datalist="yes"])
443 AC_MSG_RESULT([$enable_datalist])
445 # check whether to enable HTML5 ruby support
446 AC_MSG_CHECKING([whether to enable HTML5 ruby support])
448 AC_HELP_STRING([--enable-ruby],
449 [enable HTML5 ruby support [default=yes]]),
450 [],[enable_ruby="yes"])
451 AC_MSG_RESULT([$enable_ruby])
453 # check whether to enable HTML5 sandbox iframe support
454 AC_MSG_CHECKING([whether to enable HTML5 sandboxed iframe support])
455 AC_ARG_ENABLE(sandbox,
456 AC_HELP_STRING([--enable-sandbox],
457 [enable HTML5 sandboxed iframe support [default=yes]]),
458 [],[enable_sandbox="yes"])
459 AC_MSG_RESULT([$enable_sandbox])
461 # check whether to enable HTML5 audio/video support
462 AC_MSG_CHECKING([whether to enable HTML5 video support])
464 AC_HELP_STRING([--enable-video],
465 [enable HTML5 video support [default=yes]]),
466 [],[enable_video="yes"])
467 AC_MSG_RESULT([$enable_video])
469 # check whether to enable XHTML-MP support
470 AC_MSG_CHECKING([whether to enable XHTML-MP support])
471 AC_ARG_ENABLE(xhtmlmp,
472 AC_HELP_STRING([--enable-xhtmlmp],
473 [enable support for XHTML-MP [default=no]]),
474 [],[enable_xhtmlmp="no"])
475 AC_MSG_RESULT([$enable_xhtmlmp])
477 # check whether to enable XPath support
478 AC_MSG_CHECKING([whether to enable XPath support])
480 AC_HELP_STRING([--enable-xpath],
481 [enable support for XPath [default=yes]]),
482 [],[enable_xpath="yes"])
483 AC_MSG_RESULT([$enable_xpath])
485 # check whether to enable XSLT support
486 AC_MSG_CHECKING([whether to enable XSLT support])
488 AC_HELP_STRING([--enable-xslt],
489 [enable support for XSLT [default=yes]]),
490 [],[enable_xslt="yes"])
491 AC_MSG_RESULT([$enable_xslt])
493 # check whether to enable geolocation support
494 AC_MSG_CHECKING([whether to enable geolocation support])
495 AC_ARG_ENABLE(geolocation,
496 AC_HELP_STRING([--enable-geolocation],
497 [enable support for geolocation [default=no]]),
498 [],[enable_geolocation="no"])
499 AC_MSG_RESULT([$enable_geolocation])
501 # check whether to enable MathML support
502 AC_MSG_CHECKING([whether to enable MathML support])
503 AC_ARG_ENABLE(mathml,
504 AC_HELP_STRING([--enable-mathml],
505 [enable support for MathML [default=no]]),
506 [],[enable_mathml="no"])
507 AC_MSG_RESULT([$enable_mathml])
509 # check whether to enable SVG support
510 AC_MSG_CHECKING([whether to enable SVG support])
512 AC_HELP_STRING([--enable-svg],
513 [enable support for SVG [default=yes]]),
514 [],[enable_svg="yes"])
515 AC_MSG_RESULT([$enable_svg])
517 # check whether to enable WML support
518 AC_MSG_CHECKING([whether to enable WML support])
520 AC_HELP_STRING([--enable-wml],
521 [enable support for WML [default=no]]),
522 [],[enable_wml="no"])
523 AC_MSG_RESULT([$enable_wml])
525 # check whether to enable SharedWorkers support
526 AC_MSG_CHECKING([whether to enable SharedWorkers support])
527 AC_ARG_ENABLE(shared_workers,
528 AC_HELP_STRING([--enable-shared-workers],
529 [enable support for SharedWorkers [default=yes]]),
530 [],[enable_shared_workers="yes"])
531 AC_MSG_RESULT([$enable_shared_workers])
533 # check whether to enable Web Workers support
534 AC_MSG_CHECKING([whether to enable Web Workers support])
535 AC_ARG_ENABLE(workers,
536 AC_HELP_STRING([--enable-workers],
537 [enable support for Web Workers [default=yes]]),
538 [],[enable_workers="yes"])
539 AC_MSG_RESULT([$enable_workers])
541 # check whether to enable directory upload support
542 AC_MSG_CHECKING([whether to enable directory upload support])
543 AC_ARG_ENABLE(directory_upload,
544 AC_HELP_STRING([--enable-directory-upload],
545 [enable support for directory upload [default=no]]),
546 [], [enable_directory_upload="no"])
547 AC_MSG_RESULT([$enable_directory_upload])
549 # check whether to enable HTML5 FileSystem API support
550 AC_MSG_CHECKING([whether to enable HTML5 FileSystem API support])
551 AC_ARG_ENABLE(file_system,
552 AC_HELP_STRING([--enable-file-system],
553 [enable support for HTML5 FileSystem API [default=no]]),
554 [], [enable_file_system="no"])
555 AC_MSG_RESULT([$enable_file_system])
557 # turn off svg features if --disable-svg is requested
558 if test "$enable_svg" = "no"; then
559 enable_svg_animation=no
561 enable_svg_foreign_object=no
562 enable_svg_as_image=no
566 # check whether to enable support for SVG animation
567 AC_MSG_CHECKING([whether to enable support for SVG animation])
568 AC_ARG_ENABLE(svg_animation,
569 AC_HELP_STRING([--enable-svg-animation],
570 [enable support for SVG animation (experimental) [default=yes]]),
571 [],[enable_svg_animation="yes"])
572 AC_MSG_RESULT([$enable_svg_animation])
574 # check whether to enable support for filters
575 AC_MSG_CHECKING([whether to enable support for filters])
576 AC_ARG_ENABLE(filters,
577 AC_HELP_STRING([--enable-filters],
578 [enable support for filters (experimental) [default=yes]]),
579 [],[enable_filters="yes"])
580 AC_MSG_RESULT([$enable_filters])
582 # check whether to enable support for SVG fonts
583 AC_MSG_CHECKING([whether to enable support for SVG fonts])
584 AC_ARG_ENABLE(svg_fonts,
585 AC_HELP_STRING([--enable-svg-fonts],
586 [enable support for SVG fonts (experimental) [default=yes]]),
587 [],[enable_svg_fonts="yes"])
588 AC_MSG_RESULT([$enable_svg_fonts])
590 # check whether to enable foreign objects support for SVG
591 AC_MSG_CHECKING([whether to enable support for SVG foreign objects])
592 AC_ARG_ENABLE(svg_foreign_object,
593 AC_HELP_STRING([--enable-svg-foreign-object],
594 [enable support for SVG foreign objects (experimental) [default=yes]]),
595 [],[enable_svg_foreign_object="yes"])
596 AC_MSG_RESULT([$enable_svg_foreign_object])
598 # check whether to enable SVG As Image support
599 AC_MSG_CHECKING([whether to enable SVG as Image support])
600 AC_ARG_ENABLE(svg_as_image,
601 AC_HELP_STRING([--enable-svg-as-image],
602 [enable SVG as Image support (experimental) [default=yes]]),
603 [],[enable_svg_as_image="yes"])
604 AC_MSG_RESULT([$enable_svg_as_image])
606 # check whether to enable SVG USE element support
607 AC_MSG_CHECKING([whether to enable support for SVG use element])
608 AC_ARG_ENABLE(svg_use,
609 AC_HELP_STRING([--enable-svg-use],
610 [enable SVG use element support (experimental) [default=yes]]),
611 [],[enable_svg_use="yes"])
612 AC_MSG_RESULT([$enable_svg_use])
614 # check for SVG features, enabling SVG if necessary
615 if test "$enable_svg_animation" = "yes" || \
616 test "$enable_svg_fonts" = "yes" || \
617 test "$enable_svg_foreign_object" = "yes" || \
618 test "$enable_svg_as_image" = "yes" || \
619 test "$enable_svg_use" = "yes"; then
621 if test "$enable_svg" = "no"; then
622 AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support])
627 # check whether to enable Web Socket support
628 AC_MSG_CHECKING([whether to enable Web Sockets support])
629 AC_ARG_ENABLE(web_sockets,
630 AC_HELP_STRING([--enable-web-sockets],
631 [enable support for Web Sockets [default=no]]),
632 [],[enable_web_sockets="no"])
633 AC_MSG_RESULT([$enable_web_sockets])
635 # check whether to enable Web Timing support
636 AC_MSG_CHECKING([whether to enable Web Timing support])
637 AC_ARG_ENABLE(web_timing,
638 AC_HELP_STRING([--enable-web-timing],
639 [enable support for Web Timing [default=no]]),
640 [],[enable_web_timing="no"])
641 AC_MSG_RESULT([$enable_web_timing])
643 # check whether to enable Blob support
644 AC_MSG_CHECKING([whether to enable Blob support])
646 AC_HELP_STRING([--enable-blob],
647 [enable support for Blob [default=no]]),
648 [],[enable_blob="no"])
649 AC_MSG_RESULT([$enable_blob])
651 # check whether to enable Fast Mobile Scrolling support
652 AC_MSG_CHECKING([whether to enable Fast Mobile Scrolling])
653 AC_ARG_ENABLE(fast_mobile_scrolling,
654 AC_HELP_STRING([--enable-fast-mobile-scrolling],
655 [enable support for Fast Mobile Scrolling [default=no]]),
656 [],[enable_fast_mobile_scrolling="no"])
657 AC_MSG_RESULT([$enable_fast_mobile_scrolling])
659 # check whether to enable FileWriter support
660 AC_MSG_CHECKING([whether to enable FileWriter support])
661 AC_ARG_ENABLE(file_writer,
662 AC_HELP_STRING([--enable-file-writer],
663 [enable support for FileWriter [default=no]]),
664 [],[enable_file_writer="no"])
665 AC_MSG_RESULT([$enable_file_writer])
667 # check whether to enable code coverage
668 AC_MSG_CHECKING([whether to enable code coverage support])
669 AC_ARG_ENABLE(coverage,
670 AC_HELP_STRING([--enable-coverage],
671 [enable code coverage support [default=no]]),
672 [],[enable_coverage="no"])
673 AC_MSG_RESULT([$enable_coverage])
675 # check whether to enable FastMalloc
676 AC_MSG_CHECKING([whether to enable optimized memory allocator])
677 AC_ARG_ENABLE(fast_malloc,
678 AC_HELP_STRING([--enable-fast-malloc],
679 [enable optimized memory allocator default=yes, default=no for debug builds]),
680 [],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi])
681 AC_MSG_RESULT([$enable_fast_malloc])
683 AC_MSG_CHECKING([whether to enable JIT compilation])
685 AC_HELP_STRING([--enable-jit],
686 [Enable JIT compilation default=yes]),
687 [],[enable_jit="yes"])
688 if test "$enable_jit" = "yes"; then
691 AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
692 AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
693 AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
696 AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
697 AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
698 AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
699 AC_DEFINE([ENABLE_JIT_OPTIMIZE_CALL], [1], [Define to enable optimizing calls])
700 AC_DEFINE([ENABLE_JIT_OPTIMIZE_PROPERTY_ACCESS], [1], [Define to enable optimized property access])
701 AC_DEFINE([ENABLE_JIT_OPTIMIZE_ARITHMETIC], [1], [Define to enable optimized arithmetic])
704 AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_VA_LIST], [1], [Use stub va_list])
707 AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_REGISTER], [1], [Use stub register])
708 AC_DEFINE([WTF_USE_ALTERNATE_JSIMMEDIATE], [1], [Use alternate JSImmediate])
713 enable_jit="no (CPU '$host_cpu' not supported)"
717 AC_MSG_RESULT([$enable_jit])
719 # GObject Introspection
720 AC_MSG_CHECKING([whether to enable GObject introspection support])
721 AC_ARG_ENABLE([introspection],
722 [AS_HELP_STRING([--enable-introspection],[Enable GObject introspection (default: disabled)])],
723 [],[enable_introspection=no])
724 AC_MSG_RESULT([$enable_introspection])
732 if test "$enable_introspection" = "yes"; then
733 GOBJECT_INTROSPECTION_REQUIRED=0.6.15
734 PKG_CHECK_MODULES([INTROSPECTION],[gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED])
736 G_IR_SCANNER="$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)"
737 G_IR_COMPILER="$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)"
738 G_IR_GENERATE="$($PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0)"
739 AC_DEFINE([ENABLE_INTROSPECTION],[1],[Define to enable GObject introspection support])
742 AC_SUBST([G_IR_SCANNER])
743 AC_SUBST([G_IR_COMPILER])
744 AC_SUBST([G_IR_GENERATE])
746 # determine the font backend
747 AC_MSG_CHECKING([the font backend to use])
748 AC_ARG_WITH(font_backend,
749 AC_HELP_STRING([--with-font-backend=@<:@freetype/pango@:>@],
750 [Select font backend [default=freetype]]),
751 [],[with_font_backend="freetype"])
753 case "$with_font_backend" in
755 *) AC_MSG_ERROR([Invalid font backend: must be freetype or pango.]) ;;
757 AC_MSG_RESULT([$with_font_backend])
759 # Add '-g' flag to gcc if it's debug build
760 if test "$enable_debug" = "yes"; then
761 CXXFLAGS="$CXXFLAGS -g"
764 AC_DEFINE([NDEBUG], [1], [Define to disable debugging features])
767 # Add the appropriate 'O' level for optimized builds
768 if test "$enable_optimizations" = "yes"; then
769 CXXFLAGS="$CXXFLAGS -O2"
772 CXXFLAGS="$CXXFLAGS -O0"
776 PKG_CHECK_MODULES([LIBSOUP],
777 [libsoup-2.4 >= $LIBSOUP_REQUIRED_VERSION])
778 AC_SUBST([LIBSOUP_CFLAGS])
779 AC_SUBST([LIBSOUP_LIBS])
781 # check if we can use libSoup 2.29.90 features
782 PKG_CHECK_MODULES([LIBSOUP_2_29_90],
783 [libsoup-2.4 >= 2.29.90],
784 [have_libsoup_2_29_90=yes],
785 [have_libsoup_2_29_90=no])
786 if test "$have_libsoup_2_29_90" = "yes"; then
787 AC_DEFINE([HAVE_LIBSOUP_2_29_90], 1, [Whether libSoup 2.29.90 features are available])
790 # check if FreeType/FontConfig are available
791 if test "$with_font_backend" = "freetype"; then
792 if test "$with_target" = "directfb"; then
793 PKG_CHECK_MODULES([FREETYPE],
794 [fontconfig >= $FONTCONFIG_REQUIRED_VERSION
795 freetype2 >= $FREETYPE2_REQUIRED_VERSION])
797 PKG_CHECK_MODULES([FREETYPE],
799 fontconfig >= $FONTCONFIG_REQUIRED_VERSION
800 freetype2 >= $FREETYPE2_REQUIRED_VERSION])
802 AC_SUBST([FREETYPE_CFLAGS])
803 AC_SUBST([FREETYPE_LIBS])
806 # check if sqlite 3 is available
807 if test "$enable_icon_database" = "yes" || \
808 test "$enable_database" = "yes" || \
809 test "$enable_offline_web_applications" = "yes" || \
810 test "$enable_dom_storage" = "yes"; then
811 PKG_CHECK_MODULES([SQLITE3],
812 [sqlite3 >= $SQLITE_REQUIRED_VERSION],
813 [sqlite3_has_pkg_config=yes],
814 [sqlite3_has_pkg_config=no])
815 if test "$sqlite3_has_pkg_config" = "no"; then
816 AC_SEARCH_LIBS([sqlite3_open16], [sqlite3],
817 [SQLITE3_LIBS="$LIBS";SQLITE3_CFLAGS="-I $srcdir/WebKitLibraries/WebCoreSQLite3"],
818 [AC_MSG_ERROR([SQLite3 is required to enable Database support])])
820 AC_SUBST([SQLITE3_CFLAGS])
821 AC_SUBST([SQLITE3_LIBS])
824 # check if libxslt is available
825 if test "$enable_xslt" = "yes"; then
826 PKG_CHECK_MODULES([LIBXSLT],[libxslt >= $LIBXSLT_REQUIRED_VERSION])
827 AC_SUBST([LIBXSLT_CFLAGS])
828 AC_SUBST([LIBXSLT_LIBS])
831 # check if geoclue is available
832 if test "$enable_geolocation" = "yes"; then
833 PKG_CHECK_MODULES([GEOCLUE], [geoclue])
834 AC_SUBST([GEOCLUE_CFLAGS])
835 AC_SUBST([GEOCLUE_LIBS])
838 # check if gstreamer is available
839 if test "$enable_video" = "yes"; then
840 PKG_CHECK_MODULES([GSTREAMER],
841 [gstreamer-0.10 >= $GSTREAMER_REQUIRED_VERSION
844 gstreamer-interfaces-0.10
845 gstreamer-pbutils-0.10
846 gstreamer-plugins-base-0.10 >= $GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION
847 gstreamer-video-0.10])
848 AC_SUBST([GSTREAMER_CFLAGS])
849 AC_SUBST([GSTREAMER_LIBS])
852 # check for code coverage support
853 if test "$enable_coverage" = "yes"; then
854 COVERAGE_CFLAGS="-MD"
855 COVERAGE_LDFLAGS="-ftest-coverage -fprofile-arcs"
856 AC_SUBST([COVERAGE_CFLAGS])
857 AC_SUBST([COVERAGE_LDFLAGS])
860 # check for HTML features
861 if test "$enable_video" = "yes"; then
865 GTK_DOC_CHECK([1.10])
868 AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])
869 AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"])
870 AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
871 AM_CONDITIONAL([OS_GNU],[test "$os_gnu" = "yes"])
872 AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
874 # target conditionals
875 AM_CONDITIONAL([TARGET_X11], [test "$with_target" = "x11"])
876 AM_CONDITIONAL([TARGET_WIN32], [test "$with_target" = "win32"])
877 AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"])
878 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"])
880 # Unicode backend conditionals
881 AM_CONDITIONAL([USE_ICU_UNICODE], [test "$with_unicode_backend" = "icu"])
882 AM_CONDITIONAL([USE_GLIB_UNICODE], [test "$with_unicode_backend" = "glib"])
884 # Font backend conditionals
885 AM_CONDITIONAL([USE_FREETYPE], [test "$with_font_backend" = "freetype"])
886 AM_CONDITIONAL([USE_PANGO], [test "$with_font_backend" = "pango"])
888 # GLib/GIO feature conditionals
889 AM_CONDITIONAL([USE_GSETTINGS], [test "$have_gsettings" = "yes"])
891 # WebKit feature conditionals
892 AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug" = "yes"])
893 AM_CONDITIONAL([ENABLE_3D_TRANSFORMS],[test "$enable_3D_transforms" = "yes"])
894 AM_CONDITIONAL([ENABLE_BLOB],[test "$enable_blob" = "yes"])
895 AM_CONDITIONAL([ENABLE_CHANNEL_MESSAGING],[test "$enable_channel_messaging" = "yes"])
896 AM_CONDITIONAL([ENABLE_JAVASCRIPT_DEBUGGER],[test "$enable_javascript_debugger" = "yes"])
897 AM_CONDITIONAL([ENABLE_OFFLINE_WEB_APPLICATIONS],[test "$enable_offline_web_applications" = "yes"])
898 AM_CONDITIONAL([ENABLE_DIRECTORY_UPLOAD],[test "$enable_directory_upload" = "yes"])
899 AM_CONDITIONAL([ENABLE_DOM_STORAGE],[test "$enable_dom_storage" = "yes"])
900 AM_CONDITIONAL([ENABLE_DATABASE],[test "$enable_database" = "yes"])
901 AM_CONDITIONAL([ENABLE_DATALIST],[test "$enable_datalist" = "yes"])
902 AM_CONDITIONAL([ENABLE_EVENTSOURCE],[test "$enable_eventsource" = "yes"])
903 AM_CONDITIONAL([ENABLE_FAST_MOBILE_SCROLLING],[test "$enable_fast_mobile_scrolling" = "yes"])
904 AM_CONDITIONAL([ENABLE_FILE_SYSTEM],[test "$enable_file_system" = "yes"])
905 AM_CONDITIONAL([ENABLE_ICONDATABASE],[test "$enable_icon_database" = "yes"])
906 AM_CONDITIONAL([ENABLE_IMAGE_RESIZER],[test "$enable_image_resizer" = "yes"])
907 AM_CONDITIONAL([ENABLE_INDEXED_DATABASE],[test "$enable_indexed_database" = "yes"])
908 AM_CONDITIONAL([ENABLE_INPUT_SPEECH],[test "$enable_input_speech" = "yes"])
909 AM_CONDITIONAL([ENABLE_XHTMLMP],[test "$enable_xhtmlmp" = "yes"])
910 AM_CONDITIONAL([ENABLE_XPATH],[test "$enable_xpath" = "yes"])
911 AM_CONDITIONAL([ENABLE_XSLT],[test "$enable_xslt" = "yes"])
912 AM_CONDITIONAL([ENABLE_FILTERS],[test "$enable_filters" = "yes"])
913 AM_CONDITIONAL([ENABLE_FILE_WRITER],[test "$enable_file_writer" = "yes"])
914 AM_CONDITIONAL([ENABLE_GEOLOCATION], [test "$enable_geolocation" = "yes"])
915 AM_CONDITIONAL([ENABLE_MATHML], [test "$enable_mathml" = "yes"])
916 AM_CONDITIONAL([ENABLE_RUBY],[test "$enable_ruby" = "yes"])
917 AM_CONDITIONAL([ENABLE_SANDBOX],[test "$enable_sandbox" = "yes"])
918 AM_CONDITIONAL([ENABLE_VIDEO],[test "$enable_video" = "yes"])
919 AM_CONDITIONAL([ENABLE_NOTIFICATIONS],[test "$enable_notifications" = "yes"])
920 AM_CONDITIONAL([ENABLE_ORIENTATION_EVENTS],[test "$enable_orientation_events" = "yes"])
921 AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"])
922 AM_CONDITIONAL([ENABLE_SVG_ANIMATION],[test "$enable_svg_animation" = "yes"])
923 AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"])
924 AM_CONDITIONAL([ENABLE_SVG_FOREIGN_OBJECT],[test "$enable_svg_foreign_object" = "yes"])
925 AM_CONDITIONAL([ENABLE_SVG_AS_IMAGE],[test "$enable_svg_as_image" = "yes"])
926 AM_CONDITIONAL([ENABLE_SVG_USE],[test "$enable_svg_use" = "yes"])
927 AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"])
928 AM_CONDITIONAL([ENABLE_FAST_MALLOC],[test "$enable_fast_malloc" = "yes"])
929 AM_CONDITIONAL([ENABLE_WML],[test "$enable_wml" = "yes"])
930 AM_CONDITIONAL([ENABLE_WORKERS],[test "$enable_workers" = "yes"])
931 AM_CONDITIONAL([ENABLE_SHARED_WORKERS],[test "$enable_shared_workers" = "yes"])
932 AM_CONDITIONAL([SVG_FLAGS],[test "$svg_flags" = "yes"])
933 AM_CONDITIONAL([HTML_FLAGS],[test "$html_flags" = "yes"])
934 AM_CONDITIONAL([ENABLE_WEB_SOCKETS],[test "$enable_web_sockets" = "yes"])
935 AM_CONDITIONAL([ENABLE_WEB_TIMING],[test "$enable_web_timing" = "yes"])
938 AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"])
943 WebKit/gtk/webkit/webkitversion.h
944 WebKit/gtk/docs/GNUmakefile
945 WebKit/gtk/docs/version.xml
950 WebKit/gtk/${WEBKITGTK_PC_NAME}-${WEBKITGTK_API_VERSION}.pc:WebKit/gtk/webkit.pc.in
951 WebKit/gtk/JSCore-${WEBKITGTK_API_VERSION}.gir:WebKit/gtk/JSCore.gir.in
952 WebKit/gtk/org.webkitgtk-${WEBKITGTK_API_VERSION}.gschema.xml:WebKit/gtk/org.webkitgtk.gschema.xml.in
954 ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
960 WebKit was configured with the following options:
963 Enable debugging (slow) : $enable_debug
964 Enable GCC build optimization : $enable_optimizations
965 Code coverage support : $enable_coverage
966 Unicode backend : $with_unicode_backend
967 Font backend : $with_font_backend
968 Optimized memory allocator : $enable_fast_malloc
970 3D Transforms : $enable_3D_transforms
971 Blob support : $enable_blob
972 Directory upload : $enable_directory_upload
973 Fast Mobile Scrolling : $enable_fast_mobile_scrolling
974 JIT compilation : $enable_jit
975 Filters support : $enable_filters
976 FileWriter support : $enable_file_writer
977 Geolocation support : $enable_geolocation
978 JavaScript debugger/profiler support : $enable_javascript_debugger
979 MathML support : $enable_mathml
980 HTML5 offline web applications support : $enable_offline_web_applications
981 HTML5 channel messaging support : $enable_channel_messaging
982 HTML5 client-side session and persistent storage support : $enable_dom_storage
983 HTML5 client-side database storage support : $enable_database
984 HTML5 FileSystem API support : $enable_file_system
985 HTML5 ruby support : $enable_ruby
986 HTML5 sandboxed iframe support : $enable_sandbox
987 HTML5 server-sent events support : $enable_eventsource
988 HTML5 video element support : $enable_video
989 Icon database support : $enable_icon_database
990 Image resizer support : $enable_image_resizer
991 SharedWorkers support : $enable_shared_workers
992 Speech input support : $enable_input_speech
993 SVG support : $enable_svg
994 SVG animation support : $enable_svg_animation
995 SVG fonts support : $enable_svg_fonts
996 SVG foreign object support : $enable_svg_foreign_object
997 SVG as image support : $enable_svg_as_image
998 SVG use element support : $enable_svg_use
999 WML support : $enable_wml
1000 Web Sockets support : $enable_web_sockets
1001 Web Timing support : $enable_web_timing
1002 Web Workers support : $enable_workers
1003 XHTML-MP support : $enable_xhtmlmp
1004 XPATH support : $enable_xpath
1005 XSLT support : $enable_xslt
1007 GTK+ version : $with_gtk
1008 GDK target : $with_target
1009 Hildon UI extensions : $with_hildon
1010 Introspection support : $enable_introspection
1012 if test "$with_unicode_backend" = "glib"; then
1013 echo " >> WARNING: the glib-based unicode backend is slow and incomplete <<"