Clean up ChunkedUpdateDrawingAreaProxy
[WebKit-https.git] / configure.ac
1 AC_PREREQ(2.59)
2
3 m4_define([webkit_major_version], [1])
4 m4_define([webkit_minor_version], [3])
5 m4_define([webkit_micro_version], [7])
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 WebCore/Configurations/Version.xcconfig
11 m4_define([webkit_user_agent_major_version], [534])
12 m4_define([webkit_user_agent_minor_version], [7])
13
14 AC_INIT([WebKit],[webkit_major_version.webkit_minor_version.webkit_micro_version],[http://bugs.webkit.org/])
15
16 AC_CONFIG_MACRO_DIR([autotools])
17 AC_CONFIG_AUX_DIR([autotools])
18 AC_SUBST(ACLOCAL_AMFLAGS, "-I 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([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=4:0:4
39 AC_SUBST([LIBWEBKITGTK_VERSION])
40
41 AM_INIT_AUTOMAKE([foreign subdir-objects tar-ustar])
42
43 # Use AM_SILENT_RULES if present
44 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
45
46 # host checking - inspired by the GTK+ configure.in
47 # TODO: move these to webkit.m4?
48 AC_MSG_CHECKING([for native Win32])
49 case "$host" in
50      *-*-mingw*)
51        os_win32=yes
52        ;;
53      *)
54        os_win32=no
55        ;;
56 esac
57 AC_MSG_RESULT([$os_win32])
58
59 case "$host" in
60      *-*-linux*)
61        os_linux=yes
62        ;;
63      *-*-freebsd*)
64        os_freebsd=yes
65        ;;
66      *-*-darwin*)
67        os_darwin=yes
68        ;;
69 esac
70
71 case "$host_os" in
72      gnu* | linux* | k*bsd*-gnu)
73        os_gnu=yes
74        ;;
75      *)
76        os_gnu=no
77        ;;
78 esac
79
80 # initialize webkit options
81 WEBKIT_INIT
82 AC_DISABLE_STATIC
83 AC_LIBTOOL_WIN32_DLL
84 AC_PROG_LIBTOOL
85 # use dolt to speedup the build
86 DOLT
87
88 AC_PATH_PROG(FLEX, flex)
89 if test -z "$FLEX"; then
90    AC_MSG_ERROR([You need the 'flex' lexer generator to compile WebKit])
91 else
92    FLEX_VERSION=`$FLEX --version | sed 's,.*\ \([0-9]*\.[0-9]*\.[0-9]*\)$,\1,'`
93    AX_COMPARE_VERSION([2.5.33],[gt],[$FLEX_VERSION],
94       AC_MSG_WARN([You need at least version 2.5.33 of the 'flex' lexer generator to compile WebKit correctly]))
95 fi
96
97 AC_PATH_PROG(GPERF, gperf)
98 if test -z "$GPERF"; then
99    AC_MSG_ERROR([You need the 'gperf' hash function generator to compile WebKit])
100 fi
101
102 # 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]))
107 fi
108
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])
115    AC_TRY_CPP(
116 [#include <stdio.h>
117 #undef PACKAGE
118 #undef VERSION
119 #undef HAVE_STDLIB_H
120 #include <jpeglib.h>],
121          jpeg_ok=yes,
122          jpeg_ok=no)
123    AC_MSG_RESULT($jpeg_ok)
124    if test "$jpeg_ok" = yes; then
125       JPEG_LIBS="-ljpeg"
126       # should we check for progressive JPEG like GTK+ as well?
127    else
128       AC_MSG_ERROR([JPEG library (libjpeg) not found])
129    fi
130 fi
131 AC_SUBST([JPEG_LIBS])
132
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
137     AC_MSG_RESULT(yes)
138     PNG_LIBS=`$PKG_CONFIG --libs $l`
139     png_ok=yes
140     break
141   else
142     AC_MSG_RESULT(no)
143     png_ok=no
144   fi
145 done
146 if test "$png_ok" != yes; then
147   AC_CHECK_LIB(png, png_read_info,
148     [AC_CHECK_HEADER(png.h,
149       png_ok=yes,
150       png_ok=no)],
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;],
156       png_ok=yes,
157       png_ok=no)
158     AC_MSG_RESULT($png_ok)
159     if test "$png_ok" = yes; then
160       PNG_LIBS='-lpng -lz'
161     else
162       AC_MSG_ERROR([PNG library (libpng) not found])
163     fi
164   else
165     AC_MSG_ERROR([PNG library (libpng) not found])
166   fi
167 fi
168 AC_SUBST([PNG_LIBS])
169
170
171 if test "$os_win32" = "yes"; then
172   WINMM_LIBS=-lwinmm
173   SHLWAPI_LIBS=-lshlwapi
174   OLE32_LIBS=-lole32
175 fi
176 AC_SUBST([WINMM_LIBS])
177 AC_SUBST([SHLWAPI_LIBS])
178 AC_SUBST([OLE32_LIBS])
179
180
181 # determine the GTK+ version to use
182 AC_MSG_CHECKING([the GTK+ version to use])
183 AC_ARG_WITH([gtk],
184         [AS_HELP_STRING([--with-gtk=2.0|3.0], [the GTK+ version to use (default: 2.0)])],
185         [case "$with_gtk" in
186         2.0|3.0) ;;
187         *) AC_MSG_ERROR([invalid GTK+ version specified]) ;;
188         esac],
189         [with_gtk=2.0])
190 AC_MSG_RESULT([$with_gtk])
191
192 case "$with_gtk" in
193      2.0) GTK_REQUIRED_VERSION=2.10
194           GTK_API_VERSION=2.0
195           WEBKITGTK_API_MAJOR_VERSION=1
196           WEBKITGTK_API_MINOR_VERSION=0
197           WEBKITGTK_API_VERSION=1.0
198           WEBKITGTK_PC_NAME=webkit
199           GAIL_PC_NAME=gail
200           GAIL_REQUIRED_VERSION=1.8
201           ;;
202      3.0) GTK_REQUIRED_VERSION=2.91
203           GTK_API_VERSION=3.0
204           WEBKITGTK_API_MAJOR_VERSION=3
205           WEBKITGTK_API_MINOR_VERSION=0
206           WEBKITGTK_API_VERSION=3.0
207           WEBKITGTK_PC_NAME=webkitgtk
208           GAIL_PC_NAME=gail-3.0
209           GAIL_REQUIRED_VERSION=2.90.4
210           ;;
211 esac
212
213 AC_SUBST([WEBKITGTK_API_MAJOR_VERSION])
214 AC_SUBST([WEBKITGTK_API_MINOR_VERSION])
215 AC_SUBST([WEBKITGTK_API_VERSION])
216 AC_SUBST([WEBKITGTK_PC_NAME])
217 AC_SUBST([GTK_API_VERSION])
218 AM_CONDITIONAL([GTK_API_VERSION_2],[test "$GTK_API_VERSION" = "2.0"])
219
220 # determine the GDK/GTK+ target
221 AC_MSG_CHECKING([the target windowing system])
222 AC_ARG_WITH(target,
223             AC_HELP_STRING([--with-target=@<:@x11/win32/quartz/directfb@:>@],
224                            [Select webkit target [default=x11]]),
225             [],[with_target="x11"])
226
227 case "$with_target" in
228      x11|win32|quartz|directfb) ;;
229      *) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;;
230 esac
231
232 AC_MSG_RESULT([$with_target])
233
234 AC_MSG_CHECKING([for Hildon UI extensions])
235 AC_ARG_WITH(hildon,
236             AC_HELP_STRING([--with-hildon],
237                            [Use Hildon UI extensions [default=no]]),
238             [],[with_hildon="no"])
239 AC_MSG_RESULT([$with_hildon])
240
241 if test "$with_hildon" = "yes"; then
242     HILDON_CPPFLAGS="-DMAEMO_CHANGES"
243     PKG_CHECK_MODULES([HILDON], [hildon-1])
244     AC_SUBST([HILDON_CPPFLAGS])
245     AC_SUBST([HILDON_CFLAGS])
246     AC_SUBST([HILDON_LIBS])
247 fi
248
249 # minimum base dependencies
250 LIBSOUP_REQUIRED_VERSION=2.28.2
251 CAIRO_REQUIRED_VERSION=1.6
252 FONTCONFIG_REQUIRED_VERSION=2.4
253 FREETYPE2_REQUIRED_VERSION=9.0
254 LIBXML_REQUIRED_VERSION=2.6
255
256 # minimum GTK+ base dependencies
257 PANGO_REQUIRED_VERSION=1.12
258
259 # optional modules
260 LIBXSLT_REQUIRED_VERSION=1.1.7
261 SQLITE_REQUIRED_VERSION=3.0
262 GSTREAMER_REQUIRED_VERSION=0.10
263 GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION=0.10.25
264 ENCHANT_REQUIRED_VERSION=0.22
265
266 # Available modules
267 #
268 # glib - glib and includes gthread
269 # unicode - check and identify which unicode backend to use
270 #
271 # todo: webcore gtk
272 WEBKIT_CHECK_DEPENDENCIES([glib unicode])
273
274 # Check if we can use GSettings
275 PKG_CHECK_MODULES([GSETTINGS],
276                   [gio-2.0 >= 2.25.0],
277                   [have_gsettings=yes],
278                   [have_gsettings=no])
279 if test "$have_gsettings" = "yes"; then
280    AC_DEFINE([HAVE_GSETTINGS], 1, [Whether we can use GSettings])
281    GLIB_GSETTINGS
282 fi
283
284 GETTEXT_PACKAGE=$PACKAGE-$GTK_API_VERSION
285 AC_SUBST(GETTEXT_PACKAGE)
286 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
287                    [The gettext catalog name])
288
289 PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED_VERSION)
290 AC_SUBST(LIBXML_CFLAGS)
291 AC_SUBST(LIBXML_LIBS)
292
293 PKG_CHECK_MODULES(PANGO, 
294                   [pango >= $PANGO_REQUIRED_VERSION
295                    pangoft2])
296 AC_SUBST(PANGO_CFLAGS)
297 AC_SUBST(PANGO_LIBS)
298
299 PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED_VERSION)
300 AC_SUBST(ENCHANT_CFLAGS)
301 AC_SUBST(ENCHANT_LIBS)
302
303 PKG_CHECK_MODULES(GAIL, $GAIL_PC_NAME >= $GAIL_REQUIRED_VERSION)
304 AC_SUBST(GAIL_CFLAGS)
305 AC_SUBST(GAIL_LIBS)
306
307 # check for target-specific dependencies
308 if test "$with_target" = "directfb"; then
309    PKG_CHECK_MODULES(CAIRO, cairo-directfb >= $CAIRO_REQUIRED_VERSION)
310    PKG_CHECK_MODULES(GTK, gtk+-directfb-2.0 >= $GTK_REQUIRED_VERSION)
311    AC_DEFINE([WTF_PLATFORM_DIRECTFB],[1],[Define if target is DirectFB])
312 else
313    PKG_CHECK_MODULES(CAIRO, cairo >= $CAIRO_REQUIRED_VERSION)
314    PKG_CHECK_MODULES(GTK, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED_VERSION)
315
316    if test "$with_target" = "x11" && test "$os_win32" = "no"; then
317       # check for XT
318       PKG_CHECK_MODULES([XT],
319                         [xt],
320                         [xt_has_pkg_config=yes],
321                         [xt_has_pkg_config=no])
322       # some old versions of Xt do not provide xt.pc, so try to link against Xt
323       # and if it's installed fall back to just adding -lXt
324       if test "$xt_has_pkg_config" = "no"; then
325          # using AC_CHECK_LIB instead of AC_SEARCH_LIB is fine in this case as
326          # we don't care about the XtOpenDisplay symbol but only about the
327          # existence of libXt
328          AC_CHECK_LIB([Xt], [XtOpenDisplay],
329                       [XT_CFLAGS=""; XT_LIBS="-lXt"],
330                       [AC_MSG_ERROR([X Toolkit Intrinsics library (libXt) not found])])
331       fi
332       AC_SUBST([XT_CFLAGS])
333       AC_SUBST([XT_LIBS])
334       AC_DEFINE([WTF_PLATFORM_X11],[1],[Define if target is X11])
335    fi
336 fi
337 AC_SUBST(GTK_CFLAGS)
338 AC_SUBST(GTK_LIBS)
339 AC_SUBST(CAIRO_CFLAGS)
340 AC_SUBST(CAIRO_LIBS)
341
342 # check whether to build with debugging enabled
343 AC_MSG_CHECKING([whether to do a debug build])
344 AC_ARG_ENABLE(debug,
345               AC_HELP_STRING([--enable-debug],
346                              [turn on debugging [default=no]]),
347               [],[enable_debug="no"])
348 AC_MSG_RESULT([$enable_debug])
349
350 # check whether to enable optimized builds
351 AC_MSG_CHECKING([whether to enable optimized builds])
352 AC_ARG_ENABLE(optimizations,
353               AC_HELP_STRING([--enable-optimizations],
354                              [turn on optimize builds (GCC only)
355                              [default=yes]]),
356               [enable_optimizations=$enableval],
357               [if test "$enable_debug" = "yes"; then enable_optimizations="no"; else enable_optimizations="yes"; fi])
358 AC_MSG_RESULT([$enable_optimizations])
359
360 # check whether to enable 3D transforms support
361 AC_MSG_CHECKING([whether to enable support for 3D Transforms])
362 AC_ARG_ENABLE(3D_transforms,
363               AC_HELP_STRING([--enable-3D-transforms],
364                              [enable support for 3D transforms [default=no]]),
365               [],[enable_3D_transforms="no"])
366 AC_MSG_RESULT([$enable_3D_transforms])
367
368 # check whether to enable channel messaging support
369 AC_MSG_CHECKING([whether to enable HTML5 Channel Messaging support])
370 AC_ARG_ENABLE(channel_messaging,
371               AC_HELP_STRING([--enable-channel-messaging],
372                              [enable HTML5 channel messaging support [default=yes]]),
373               [],[enable_channel_messaging="yes"])
374 AC_MSG_RESULT([$enable_channel_messaging])
375
376 # check whether to enable JavaScript debugger/profiler support
377 AC_MSG_CHECKING([whether to enable JavaScript debugger/profiler support])
378 AC_ARG_ENABLE(javascript_debugger,
379               AC_HELP_STRING([--enable-javascript-debugger],
380                              [enable JavaScript debugger/profiler support [default=yes]]),
381               [],[enable_javascript_debugger="yes"])
382 AC_MSG_RESULT([$enable_javascript_debugger])
383
384 # check whether to enable HTML5 Offline Web Applications support
385 AC_MSG_CHECKING([whether to enable HTML5 offline web applications support])
386 AC_ARG_ENABLE(offline_web_applications,
387               AC_HELP_STRING([--enable-offline-web-applications],
388                              [enable HTML5 offline web applications support [default=yes]]),
389               [],[enable_offline_web_applications="yes"])
390 AC_MSG_RESULT([$enable_offline_web_applications])
391
392 # check whether to enable HTML5 client-side session and persitent storage support
393 AC_MSG_CHECKING([whether to enable HTML5 client-side session and persistent storage support])
394 AC_ARG_ENABLE(dom_storage,
395               AC_HELP_STRING([--enable-dom-storage],
396                              [enable HTML5 client-side session and persistent storage support [default=yes]]),
397               [],[enable_dom_storage="yes"])
398 AC_MSG_RESULT([$enable_dom_storage])
399
400 # check whether to enable the indexed database API
401 AC_MSG_CHECKING([whether to enable the indexed database API])
402 AC_ARG_ENABLE(indexed_database,
403               AC_HELP_STRING([--enable-indexeddb],
404                              [enable the indexed database API [default=no]]),
405               [],[enable_indexed_database="no"])
406 AC_MSG_RESULT([$enable_indexed_database])
407
408 # check whether to enable the speech input API
409 AC_MSG_CHECKING([whether to enable the speech input API])
410 AC_ARG_ENABLE(input_speech,
411               AC_HELP_STRING([--enable-input-speech],
412                              [enable the speech input API [default=no]]),
413               [],[enable_input_speech="no"])
414 AC_MSG_RESULT([$enable_input_speech])
415
416 # check whether to build with database support
417 AC_MSG_CHECKING([whether to enable HTML5 client-side database storage support])
418 AC_ARG_ENABLE(database,
419               AC_HELP_STRING([--enable-database],
420                              [enable HTML5 client-side database storage support [default=yes]]),
421               [],[enable_database="yes"])
422 AC_MSG_RESULT([$enable_database])
423
424 # check whether to build with server-sent events support
425 AC_MSG_CHECKING([whether to enable HTML5 server-sent events support])
426 AC_ARG_ENABLE(eventsource,
427               AC_HELP_STRING([--enable-eventsource],
428                              [enable HTML5 server-sent events support [default=yes]]),
429               [],[enable_eventsource="yes"])
430 AC_MSG_RESULT([$enable_eventsource])
431
432 # check whether to build with icon database support
433 AC_MSG_CHECKING([whether to enable icon database support])
434 AC_ARG_ENABLE(icon_database,
435               AC_HELP_STRING([--enable-icon-database],
436                              [enable icon database [default=yes]]),
437               [],[enable_icon_database="yes"])
438 AC_MSG_RESULT([$enable_icon_database])
439
440 # check whether to build with image resizer API support
441 AC_MSG_CHECKING([whether to enable image resizer API support])
442 AC_ARG_ENABLE(image_resizer,
443               AC_HELP_STRING([--enable-image-resizer],
444                              [enable image resizer [default=no]]),
445               [],[enable_image_resizer="no"])
446 AC_MSG_RESULT([$enable_image_resizer])
447
448 # check whether to enable HTML5 datalist support
449 AC_MSG_CHECKING([whether to enable HTML5 datalist support])
450 AC_ARG_ENABLE(datalist,
451               AC_HELP_STRING([--enable-datalist],
452                              [enable HTML5 datalist support [default=yes]]),
453               [],[enable_datalist="yes"])
454 AC_MSG_RESULT([$enable_datalist])
455
456 # check whether to enable HTML5 sandbox iframe support
457 AC_MSG_CHECKING([whether to enable HTML5 sandboxed iframe support])
458 AC_ARG_ENABLE(sandbox,
459               AC_HELP_STRING([--enable-sandbox],
460                              [enable HTML5 sandboxed iframe support [default=yes]]),
461               [],[enable_sandbox="yes"])
462 AC_MSG_RESULT([$enable_sandbox])
463
464 # check whether to enable HTML5 audio/video support
465 AC_MSG_CHECKING([whether to enable HTML5 video support])
466 AC_ARG_ENABLE(video,
467               AC_HELP_STRING([--enable-video],
468                              [enable HTML5 video support [default=yes]]),
469               [],[enable_video="yes"])
470 AC_MSG_RESULT([$enable_video])
471
472 # check whether to enable Javascript Fullscreen API support
473 AC_MSG_CHECKING([whether to enable Fullscreen API support])
474 AC_ARG_ENABLE(fullscreen_api,
475               AC_HELP_STRING([--enable-fullscreen-api],
476                              [enable the Fullscreen API support [default=yes]]),
477               [],[enable_fullscreen_api="yes"])
478 AC_MSG_RESULT([$enable_fullscreen_api])
479
480 # check whether to enable XHTML-MP support
481 AC_MSG_CHECKING([whether to enable XHTML-MP support])
482 AC_ARG_ENABLE(xhtmlmp,
483               AC_HELP_STRING([--enable-xhtmlmp],
484                              [enable support for XHTML-MP [default=no]]),
485               [],[enable_xhtmlmp="no"])
486 AC_MSG_RESULT([$enable_xhtmlmp])
487
488 # check whether to enable XPath support
489 AC_MSG_CHECKING([whether to enable XPath support])
490 AC_ARG_ENABLE(xpath,
491               AC_HELP_STRING([--enable-xpath],
492                              [enable support for XPath [default=yes]]),
493               [],[enable_xpath="yes"])
494 AC_MSG_RESULT([$enable_xpath])
495
496 # check whether to enable XSLT support
497 AC_MSG_CHECKING([whether to enable XSLT support])
498 AC_ARG_ENABLE(xslt,
499               AC_HELP_STRING([--enable-xslt],
500                              [enable support for XSLT [default=yes]]),
501               [],[enable_xslt="yes"])
502 AC_MSG_RESULT([$enable_xslt])
503
504 # check whether to enable geolocation support
505 AC_MSG_CHECKING([whether to enable geolocation support])
506 AC_ARG_ENABLE(geolocation,
507               AC_HELP_STRING([--enable-geolocation],
508                              [enable support for geolocation [default=no]]),
509               [],[enable_geolocation="no"])
510 AC_MSG_RESULT([$enable_geolocation])
511
512 # check whether to enable MathML support
513 AC_MSG_CHECKING([whether to enable MathML support])
514 AC_ARG_ENABLE(mathml,
515               AC_HELP_STRING([--enable-mathml],
516                              [enable support for MathML [default=no]]),
517               [],[enable_mathml="no"])
518 AC_MSG_RESULT([$enable_mathml])
519
520 # check whether to enable SVG support
521 AC_MSG_CHECKING([whether to enable SVG support])
522 AC_ARG_ENABLE(svg,
523               AC_HELP_STRING([--enable-svg],
524                              [enable support for SVG [default=yes]]),
525               [],[enable_svg="yes"])
526 AC_MSG_RESULT([$enable_svg])
527
528 # check whether to enable WML support
529 AC_MSG_CHECKING([whether to enable WML support])
530 AC_ARG_ENABLE(wml,
531               AC_HELP_STRING([--enable-wml],
532                              [enable support for WML [default=no]]),
533               [],[enable_wml="no"])
534 AC_MSG_RESULT([$enable_wml])
535
536 # check whether to enable SharedWorkers support
537 AC_MSG_CHECKING([whether to enable SharedWorkers support])
538 AC_ARG_ENABLE(shared_workers,
539               AC_HELP_STRING([--enable-shared-workers],
540                              [enable support for SharedWorkers [default=yes]]),
541               [],[enable_shared_workers="yes"])
542 AC_MSG_RESULT([$enable_shared_workers])
543
544 # check whether to enable Web Workers support
545 AC_MSG_CHECKING([whether to enable Web Workers support])
546 AC_ARG_ENABLE(workers,
547               AC_HELP_STRING([--enable-workers],
548                              [enable support for Web Workers [default=yes]]),
549               [],[enable_workers="yes"])
550 AC_MSG_RESULT([$enable_workers])
551
552 # check whether to enable directory upload support
553 AC_MSG_CHECKING([whether to enable directory upload support])
554 AC_ARG_ENABLE(directory_upload,
555               AC_HELP_STRING([--enable-directory-upload],
556                              [enable support for directory upload [default=no]]),
557               [], [enable_directory_upload="no"])
558 AC_MSG_RESULT([$enable_directory_upload])
559
560 # check whether to enable HTML5 FileSystem API support
561 AC_MSG_CHECKING([whether to enable HTML5 FileSystem API support])
562 AC_ARG_ENABLE(file_system,
563               AC_HELP_STRING([--enable-file-system],
564                              [enable support for HTML5 FileSystem API [default=no]]),
565               [], [enable_file_system="no"])
566 AC_MSG_RESULT([$enable_file_system])
567
568 # turn off svg features if --disable-svg is requested
569 if test "$enable_svg" = "no"; then
570    enable_svg_animation=no
571    enable_svg_fonts=no
572    enable_svg_foreign_object=no
573    enable_svg_as_image=no
574    enable_svg_use=no
575 fi
576
577 # check whether to enable support for SVG animation
578 AC_MSG_CHECKING([whether to enable support for SVG animation])
579 AC_ARG_ENABLE(svg_animation,
580               AC_HELP_STRING([--enable-svg-animation],
581                              [enable support for SVG animation (experimental) [default=yes]]),
582               [],[enable_svg_animation="yes"])
583 AC_MSG_RESULT([$enable_svg_animation])
584
585 # check whether to enable support for filters
586 AC_MSG_CHECKING([whether to enable support for filters])
587 AC_ARG_ENABLE(filters,
588               AC_HELP_STRING([--enable-filters],
589                              [enable support for filters (experimental) [default=yes]]),
590               [],[enable_filters="yes"])
591 AC_MSG_RESULT([$enable_filters])
592
593 # check whether to enable support for SVG fonts
594 AC_MSG_CHECKING([whether to enable support for SVG fonts])
595 AC_ARG_ENABLE(svg_fonts,
596               AC_HELP_STRING([--enable-svg-fonts],
597                              [enable support for SVG fonts (experimental) [default=yes]]),
598               [],[enable_svg_fonts="yes"])
599 AC_MSG_RESULT([$enable_svg_fonts])
600
601 # check whether to enable foreign objects support for SVG
602 AC_MSG_CHECKING([whether to enable support for SVG foreign objects])
603 AC_ARG_ENABLE(svg_foreign_object,
604               AC_HELP_STRING([--enable-svg-foreign-object],
605                              [enable support for SVG foreign objects (experimental) [default=yes]]),
606               [],[enable_svg_foreign_object="yes"])
607 AC_MSG_RESULT([$enable_svg_foreign_object])
608
609 # check whether to enable SVG As Image support
610 AC_MSG_CHECKING([whether to enable SVG as Image support])
611 AC_ARG_ENABLE(svg_as_image,
612               AC_HELP_STRING([--enable-svg-as-image],
613                              [enable SVG as Image support (experimental) [default=yes]]),
614               [],[enable_svg_as_image="yes"])
615 AC_MSG_RESULT([$enable_svg_as_image])
616
617 # check whether to enable SVG USE element support
618 AC_MSG_CHECKING([whether to enable support for SVG use element])
619 AC_ARG_ENABLE(svg_use,
620               AC_HELP_STRING([--enable-svg-use],
621                              [enable SVG use element support (experimental) [default=yes]]),
622               [],[enable_svg_use="yes"])
623 AC_MSG_RESULT([$enable_svg_use])
624
625 # check for SVG features, enabling SVG if necessary
626 if test "$enable_svg_animation" = "yes" || \
627    test "$enable_svg_fonts" = "yes" || \
628    test "$enable_svg_foreign_object" = "yes" || \
629    test "$enable_svg_as_image" = "yes" || \
630    test "$enable_svg_use" = "yes"; then
631    svg_flags=yes
632    if test "$enable_svg" = "no"; then
633        AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support])
634        enable_svg=yes
635    fi
636 fi
637
638 # check whether to enable Web Socket support
639 AC_MSG_CHECKING([whether to enable Web Sockets support])
640 AC_ARG_ENABLE(web_sockets,
641               AC_HELP_STRING([--enable-web-sockets],
642                              [enable support for Web Sockets [default=yes]]),
643               [],[enable_web_sockets="yes"])
644 AC_MSG_RESULT([$enable_web_sockets])
645
646 # check whether to enable Web Audio support
647 AC_MSG_CHECKING([whether to enable Web Audio support])
648 AC_ARG_ENABLE(web_audio,
649               AC_HELP_STRING([--enable-web-audio],
650                              [enable support for Web Audio [default=no]]),
651               [],[enable_web_audio="no"])
652 AC_MSG_RESULT([$enable_web_audio])
653
654 # check whether to enable Web Timing support
655 AC_MSG_CHECKING([whether to enable Web Timing support])
656 AC_ARG_ENABLE(web_timing,
657               AC_HELP_STRING([--enable-web-timing],
658                              [enable support for Web Timing [default=no]]),
659               [],[enable_web_timing="no"])
660 AC_MSG_RESULT([$enable_web_timing])
661
662 # check whether to enable Blob support
663 AC_MSG_CHECKING([whether to enable Blob support])
664 AC_ARG_ENABLE(blob,
665               AC_HELP_STRING([--enable-blob],
666                              [enable support for Blob [default=no]]),
667               [],[enable_blob="no"])
668 AC_MSG_RESULT([$enable_blob])
669
670 # check whether to enable Fast Mobile Scrolling support
671 AC_MSG_CHECKING([whether to enable Fast Mobile Scrolling])
672 AC_ARG_ENABLE(fast_mobile_scrolling,
673               AC_HELP_STRING([--enable-fast-mobile-scrolling],
674                              [enable support for Fast Mobile Scrolling [default=no]]),
675               [],[enable_fast_mobile_scrolling="no"])
676 AC_MSG_RESULT([$enable_fast_mobile_scrolling])
677
678 # check whether to enable code coverage
679 AC_MSG_CHECKING([whether to enable code coverage support])
680 AC_ARG_ENABLE(coverage,
681               AC_HELP_STRING([--enable-coverage],
682                              [enable code coverage support [default=no]]),
683               [],[enable_coverage="no"])
684 AC_MSG_RESULT([$enable_coverage])
685
686 # check whether to enable FastMalloc
687 AC_MSG_CHECKING([whether to enable optimized memory allocator])
688 AC_ARG_ENABLE(fast_malloc,
689               AC_HELP_STRING([--enable-fast-malloc],
690                              [enable optimized memory allocator default=yes, default=no for debug builds]),
691               [],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi])
692 AC_MSG_RESULT([$enable_fast_malloc])
693
694 AC_MSG_CHECKING([whether to enable JIT compilation])
695 AC_ARG_ENABLE([jit],
696               AC_HELP_STRING([--enable-jit],
697                              [Enable JIT compilation default=yes]),
698               [],[enable_jit="yes"])
699 if test "$enable_jit" = "yes"; then
700     case "$host_cpu" in
701         arm*)
702             AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
703             AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
704             AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
705         ;;
706         i*86|x86_64)
707             AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
708             AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
709             AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
710             AC_DEFINE([ENABLE_JIT_OPTIMIZE_CALL], [1], [Define to enable optimizing calls])
711             AC_DEFINE([ENABLE_JIT_OPTIMIZE_PROPERTY_ACCESS], [1], [Define to enable optimized property access])
712             AC_DEFINE([ENABLE_JIT_OPTIMIZE_ARITHMETIC], [1], [Define to enable optimized arithmetic])
713             case "$host_cpu" in
714                 i*86)
715                     AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_VA_LIST], [1], [Use stub va_list])
716                 ;;
717                 x86_64)
718                     AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_REGISTER], [1], [Use stub register])
719                     AC_DEFINE([WTF_USE_ALTERNATE_JSIMMEDIATE], [1], [Use alternate JSImmediate])
720                 ;;
721             esac
722         ;;
723         *)
724             enable_jit="no (CPU '$host_cpu' not supported)"
725         ;;
726     esac
727 else
728         AC_DEFINE([ENABLE_JIT], [0], [Define to enable JIT])
729 fi
730 AC_MSG_RESULT([$enable_jit])
731
732 # Opcode stats
733 AC_MSG_CHECKING([whether to enable opcode stats])
734 AC_ARG_ENABLE([opcode-stats],
735   [AS_HELP_STRING([--enable-opcode-stats], [Enable Opcode statistics (default: disabled)])],
736   [], [enable_opcode_stats=no])
737 AC_MSG_RESULT([$enable_opcode_stats])
738
739 if test "$enable_opcode_stats" = "yes"; then
740   if test "$enable_jit" = "yes"; then
741     AC_MSG_ERROR([JIT must be disabled for Opcode stats to work.])
742   fi
743   AC_DEFINE([ENABLE_OPCODE_STATS], [1], [Define to enable Opcode statistics])
744 fi
745
746 # Link prefetch
747 AC_MSG_CHECKING([whether to enable link prefetch support])
748 AC_ARG_ENABLE([link-prefetch],
749   [AS_HELP_STRING([--enable-link-prefetch], [Enable Link prefetch support (default: disabled)])],
750   [],[enable_link_prefetch=no])
751 AC_MSG_RESULT([$enable_link_prefetch])
752
753 if test "$enable_link_prefetch" = "yes"; then 
754   AC_DEFINE([ENABLE_LINK_PREFETCH], [1], [Define to enable link prefetch support])
755 fi
756
757 # GObject Introspection
758 AC_MSG_CHECKING([whether to enable GObject introspection support])
759 AC_ARG_ENABLE([introspection],
760   [AS_HELP_STRING([--enable-introspection],[Enable GObject introspection (default: disabled)])],
761   [],[enable_introspection=no])
762 AC_MSG_RESULT([$enable_introspection])
763
764 G_IR_SCANNER=
765 G_IR_COMPILER=
766 G_IR_GENERATE=
767 GIRDIR=
768 GIRTYPELIBDIR=
769
770 if test "$enable_introspection" = "yes"; then
771   GOBJECT_INTROSPECTION_REQUIRED=0.9.5
772   PKG_CHECK_MODULES([INTROSPECTION],[gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED])
773   
774   G_IR_SCANNER="$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)"
775   G_IR_COMPILER="$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)"
776   G_IR_GENERATE="$($PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0)"
777   AC_DEFINE([ENABLE_INTROSPECTION],[1],[Define to enable GObject introspection support])
778 fi
779
780 AC_SUBST([G_IR_SCANNER])
781 AC_SUBST([G_IR_COMPILER])
782 AC_SUBST([G_IR_GENERATE])
783
784 # determine the font backend
785 AC_MSG_CHECKING([the font backend to use])
786 AC_ARG_WITH(font_backend,
787             AC_HELP_STRING([--with-font-backend=@<:@freetype/pango@:>@],
788                            [Select font backend [default=freetype]]),
789             [],[with_font_backend="freetype"])
790
791 case "$with_font_backend" in
792      freetype|pango) ;;
793      *) AC_MSG_ERROR([Invalid font backend: must be freetype or pango.]) ;;
794 esac
795 AC_MSG_RESULT([$with_font_backend])
796
797 # Add '-g' flag to gcc if it's debug build
798 if test "$enable_debug" = "yes"; then
799    CXXFLAGS="$CXXFLAGS -g"
800    CFLAGS="$CFLAGS -g"
801 else
802    AC_DEFINE([NDEBUG], [1], [Define to disable debugging features])
803 fi
804
805 # Add the appropriate 'O' level for optimized builds
806 if test "$enable_optimizations" = "yes"; then
807    CXXFLAGS="$CXXFLAGS -O2"
808    CFLAGS="$CFLAGS -O2"
809 else
810    CXXFLAGS="$CXXFLAGS -O0"
811    CFLAGS="$CFLAGS -O0"
812 fi
813
814 PKG_CHECK_MODULES([LIBSOUP],
815                   [libsoup-2.4 >= $LIBSOUP_REQUIRED_VERSION])
816 AC_SUBST([LIBSOUP_CFLAGS])
817 AC_SUBST([LIBSOUP_LIBS])
818
819 # check if we can use libSoup 2.29.90 features
820 PKG_CHECK_MODULES([LIBSOUP_2_29_90],
821                   [libsoup-2.4 >= 2.29.90],
822                   [have_libsoup_2_29_90=yes],
823                   [have_libsoup_2_29_90=no])
824 if test "$have_libsoup_2_29_90" = "yes"; then
825    AC_DEFINE([HAVE_LIBSOUP_2_29_90], 1, [Whether libSoup 2.29.90 features are available])
826 fi
827
828 # check if FreeType/FontConfig are available
829 if test "$with_font_backend" = "freetype"; then
830    if test "$with_target" = "directfb"; then
831    PKG_CHECK_MODULES([FREETYPE],
832                      [fontconfig >= $FONTCONFIG_REQUIRED_VERSION
833                      freetype2 >= $FREETYPE2_REQUIRED_VERSION])
834    else
835    PKG_CHECK_MODULES([FREETYPE],
836                      [cairo-ft
837                      fontconfig >= $FONTCONFIG_REQUIRED_VERSION
838                      freetype2 >= $FREETYPE2_REQUIRED_VERSION])
839    fi
840    AC_SUBST([FREETYPE_CFLAGS])
841    AC_SUBST([FREETYPE_LIBS])
842 fi
843
844 # check if sqlite 3 is available
845 if test "$enable_icon_database" = "yes" || \
846    test "$enable_database" = "yes" || \
847    test "$enable_offline_web_applications" = "yes" || \
848    test "$enable_dom_storage" = "yes"; then
849    PKG_CHECK_MODULES([SQLITE3],
850                      [sqlite3 >= $SQLITE_REQUIRED_VERSION],
851                      [sqlite3_has_pkg_config=yes],
852                      [sqlite3_has_pkg_config=no])
853    if test "$sqlite3_has_pkg_config" = "no"; then
854       AC_SEARCH_LIBS([sqlite3_open16], [sqlite3],
855                      [SQLITE3_LIBS="$LIBS";SQLITE3_CFLAGS="-I $srcdir/WebKitLibraries/WebCoreSQLite3"],
856                      [AC_MSG_ERROR([SQLite3 is required to enable Database support])])
857    fi
858    AC_SUBST([SQLITE3_CFLAGS])
859    AC_SUBST([SQLITE3_LIBS])
860 fi
861
862 # check if libxslt is available
863 if test "$enable_xslt" = "yes"; then
864    PKG_CHECK_MODULES([LIBXSLT],[libxslt >= $LIBXSLT_REQUIRED_VERSION])
865    AC_SUBST([LIBXSLT_CFLAGS])
866    AC_SUBST([LIBXSLT_LIBS])
867 fi
868
869 # check if geoclue is available
870 if test "$enable_geolocation" = "yes"; then
871     PKG_CHECK_MODULES([GEOCLUE], [geoclue])
872     AC_SUBST([GEOCLUE_CFLAGS])
873     AC_SUBST([GEOCLUE_LIBS])
874 fi
875
876 # check if gstreamer is available
877 if test "$enable_video" = "yes"; then
878    PKG_CHECK_MODULES([GSTREAMER],
879                      [gstreamer-0.10 >= $GSTREAMER_REQUIRED_VERSION
880                      gstreamer-app-0.10
881                      gstreamer-base-0.10
882                      gstreamer-interfaces-0.10
883                      gstreamer-pbutils-0.10
884                      gstreamer-plugins-base-0.10 >= $GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION
885                      gstreamer-video-0.10],
886                      [have_gstreamer=yes])
887
888    AC_SUBST([GSTREAMER_CFLAGS])
889    AC_SUBST([GSTREAMER_LIBS])
890 fi
891
892 # check for code coverage support
893 if test "$enable_coverage" = "yes"; then
894    COVERAGE_CFLAGS="-MD"
895    COVERAGE_LDFLAGS="-ftest-coverage -fprofile-arcs"
896    AC_SUBST([COVERAGE_CFLAGS])
897    AC_SUBST([COVERAGE_LDFLAGS])
898 fi
899
900 # check for HTML features
901 if test "$enable_video" = "yes"; then
902     html_flags=yes
903 fi
904
905 GTK_DOC_CHECK([1.10])
906
907 # OS conditionals
908 AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])
909 AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"])
910 AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
911 AM_CONDITIONAL([OS_GNU],[test "$os_gnu" = "yes"])
912 AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
913
914 # target conditionals
915 AM_CONDITIONAL([TARGET_X11], [test "$with_target" = "x11"])
916 AM_CONDITIONAL([TARGET_WIN32], [test "$with_target" = "win32"])
917 AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"])
918 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"])
919
920 # Unicode backend conditionals
921 AM_CONDITIONAL([USE_ICU_UNICODE], [test "$with_unicode_backend" = "icu"])
922 AM_CONDITIONAL([USE_GLIB_UNICODE], [test "$with_unicode_backend" = "glib"])
923
924 # Font backend conditionals
925 AM_CONDITIONAL([USE_FREETYPE], [test "$with_font_backend" = "freetype"])
926 AM_CONDITIONAL([USE_PANGO], [test "$with_font_backend" = "pango"])
927
928 # GLib/GIO feature conditionals
929 AM_CONDITIONAL([USE_GSETTINGS], [test "$have_gsettings" = "yes"])
930
931 # GStreamer feature conditional
932 AM_CONDITIONAL([USE_GSTREAMER], [test "$have_gstreamer" = "yes"])
933
934 # WebKit feature conditionals
935 AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug" = "yes"])
936 AM_CONDITIONAL([ENABLE_3D_TRANSFORMS],[test "$enable_3D_transforms" = "yes"])
937 AM_CONDITIONAL([ENABLE_BLOB],[test "$enable_blob" = "yes"])
938 AM_CONDITIONAL([ENABLE_CHANNEL_MESSAGING],[test "$enable_channel_messaging" = "yes"])
939 AM_CONDITIONAL([ENABLE_JAVASCRIPT_DEBUGGER],[test "$enable_javascript_debugger" = "yes"])
940 AM_CONDITIONAL([ENABLE_OFFLINE_WEB_APPLICATIONS],[test "$enable_offline_web_applications" = "yes"])
941 AM_CONDITIONAL([ENABLE_DIRECTORY_UPLOAD],[test "$enable_directory_upload" = "yes"])
942 AM_CONDITIONAL([ENABLE_DOM_STORAGE],[test "$enable_dom_storage" = "yes"])
943 AM_CONDITIONAL([ENABLE_DATABASE],[test "$enable_database" = "yes"])
944 AM_CONDITIONAL([ENABLE_DATALIST],[test "$enable_datalist" = "yes"])
945 AM_CONDITIONAL([ENABLE_EVENTSOURCE],[test "$enable_eventsource" = "yes"])
946 AM_CONDITIONAL([ENABLE_FAST_MOBILE_SCROLLING],[test "$enable_fast_mobile_scrolling" = "yes"])
947 AM_CONDITIONAL([ENABLE_FILE_SYSTEM],[test "$enable_file_system" = "yes"])
948 AM_CONDITIONAL([ENABLE_ICONDATABASE],[test "$enable_icon_database" = "yes"])
949 AM_CONDITIONAL([ENABLE_IMAGE_RESIZER],[test "$enable_image_resizer" = "yes"])
950 AM_CONDITIONAL([ENABLE_INDEXED_DATABASE],[test "$enable_indexed_database" = "yes"])
951 AM_CONDITIONAL([ENABLE_INPUT_SPEECH],[test "$enable_input_speech" = "yes"])
952 AM_CONDITIONAL([ENABLE_XHTMLMP],[test "$enable_xhtmlmp" = "yes"])
953 AM_CONDITIONAL([ENABLE_XPATH],[test "$enable_xpath" = "yes"])
954 AM_CONDITIONAL([ENABLE_XSLT],[test "$enable_xslt" = "yes"])
955 AM_CONDITIONAL([ENABLE_FILTERS],[test "$enable_filters" = "yes"])
956 AM_CONDITIONAL([ENABLE_GEOLOCATION], [test "$enable_geolocation" = "yes"])
957 AM_CONDITIONAL([ENABLE_MATHML], [test "$enable_mathml" = "yes"])
958 AM_CONDITIONAL([ENABLE_VIDEO],[test "$enable_video" = "yes"])
959 AM_CONDITIONAL([ENABLE_FULLSCREEN_API],[test "$enable_fullscreen_api" = "yes"])
960 AM_CONDITIONAL([ENABLE_NOTIFICATIONS],[test "$enable_notifications" = "yes"])
961 AM_CONDITIONAL([ENABLE_ORIENTATION_EVENTS],[test "$enable_orientation_events" = "yes"])
962 AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"])
963 AM_CONDITIONAL([ENABLE_SVG_ANIMATION],[test "$enable_svg_animation" = "yes"])
964 AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"])
965 AM_CONDITIONAL([ENABLE_SVG_FOREIGN_OBJECT],[test "$enable_svg_foreign_object" = "yes"])
966 AM_CONDITIONAL([ENABLE_SVG_AS_IMAGE],[test "$enable_svg_as_image" = "yes"])
967 AM_CONDITIONAL([ENABLE_SVG_USE],[test "$enable_svg_use" = "yes"])
968 AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"])
969 AM_CONDITIONAL([ENABLE_FAST_MALLOC],[test "$enable_fast_malloc" = "yes"])
970 AM_CONDITIONAL([ENABLE_WML],[test "$enable_wml" = "yes"])
971 AM_CONDITIONAL([ENABLE_WORKERS],[test "$enable_workers" = "yes"])
972 AM_CONDITIONAL([ENABLE_SHARED_WORKERS],[test "$enable_shared_workers" = "yes"])
973 AM_CONDITIONAL([SVG_FLAGS],[test "$svg_flags" = "yes"])
974 AM_CONDITIONAL([HTML_FLAGS],[test "$html_flags" = "yes"])
975 AM_CONDITIONAL([ENABLE_WEB_SOCKETS],[test "$enable_web_sockets" = "yes"])
976 AM_CONDITIONAL([ENABLE_WEB_AUDIO],[test "$enable_web_audio" = "yes"])
977 AM_CONDITIONAL([ENABLE_WEB_TIMING],[test "$enable_web_timing" = "yes"])
978 AM_CONDITIONAL([ENABLE_OPCODE_STATS],[test "$enable_opcode_stats" = "yes"])
979
980 # Gtk conditionals
981 AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"])
982
983
984 AC_CONFIG_FILES([
985 GNUmakefile
986 WebKit/gtk/webkit/webkitversion.h
987 WebKit/gtk/docs/GNUmakefile
988 WebKit/gtk/docs/version.xml
989 ]
990 )
991
992 AC_CONFIG_FILES([
993 WebKit/gtk/${WEBKITGTK_PC_NAME}-${WEBKITGTK_API_VERSION}.pc:WebKit/gtk/webkit.pc.in
994 WebKit/gtk/JSCore-${WEBKITGTK_API_VERSION}.gir:WebKit/gtk/JSCore.gir.in
995 WebKit/gtk/org.webkitgtk-${WEBKITGTK_API_VERSION}.gschema.xml:WebKit/gtk/org.webkitgtk.gschema.xml.in
996 ]
997 ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
998 )
999
1000 AC_OUTPUT
1001
1002 echo "
1003 WebKit was configured with the following options:
1004
1005 Build configuration:
1006  Enable debugging (slow)                                  : $enable_debug
1007  Enable GCC build optimization                            : $enable_optimizations
1008  Code coverage support                                    : $enable_coverage
1009  Unicode backend                                          : $with_unicode_backend
1010  Font backend                                             : $with_font_backend
1011  Optimized memory allocator                               : $enable_fast_malloc
1012 Features:
1013  3D Transforms                                            : $enable_3D_transforms
1014  Blob support                                             : $enable_blob
1015  Directory upload                                         : $enable_directory_upload
1016  Fast Mobile Scrolling                                    : $enable_fast_mobile_scrolling
1017  JIT compilation                                          : $enable_jit
1018  Filters support                                          : $enable_filters
1019  Geolocation support                                      : $enable_geolocation
1020  JavaScript debugger/profiler support                     : $enable_javascript_debugger
1021  MathML support                                           : $enable_mathml
1022  HTML5 offline web applications support                   : $enable_offline_web_applications
1023  HTML5 channel messaging support                          : $enable_channel_messaging
1024  HTML5 client-side session and persistent storage support : $enable_dom_storage
1025  HTML5 client-side database storage support               : $enable_database
1026  HTML5 FileSystem API support                             : $enable_file_system
1027  HTML5 sandboxed iframe support                           : $enable_sandbox
1028  HTML5 server-sent events support                         : $enable_eventsource
1029  HTML5 video element support                              : $enable_video
1030  Fullscreen API support                                   : $enable_fullscreen_api
1031  Icon database support                                    : $enable_icon_database
1032  Image resizer support                                    : $enable_image_resizer
1033  Link prefetch support                                    : $enable_link_prefetch
1034  Opcode stats                                             : $enable_opcode_stats
1035  SharedWorkers support                                    : $enable_shared_workers
1036  Speech input support                                     : $enable_input_speech
1037  SVG support                                              : $enable_svg
1038  SVG animation support                                    : $enable_svg_animation
1039  SVG fonts support                                        : $enable_svg_fonts
1040  SVG foreign object support                               : $enable_svg_foreign_object
1041  SVG as image support                                     : $enable_svg_as_image
1042  SVG use element support                                  : $enable_svg_use
1043  WML support                                              : $enable_wml
1044  Web Audio support                                        : $enable_web_audio
1045  Web Sockets support                                      : $enable_web_sockets
1046  Web Timing support                                       : $enable_web_timing
1047  Web Workers support                                      : $enable_workers
1048  XHTML-MP support                                         : $enable_xhtmlmp
1049  XPATH support                                            : $enable_xpath
1050  XSLT support                                             : $enable_xslt
1051
1052 GTK+ configuration:
1053  GTK+ version                                             : $with_gtk
1054  GDK target                                               : $with_target
1055  Hildon UI extensions                                     : $with_hildon
1056  Introspection support                                    : $enable_introspection
1057 "
1058 if test "$with_unicode_backend" = "glib"; then
1059    echo "     >> WARNING: the glib-based unicode backend is slow and incomplete <<"
1060    echo
1061    echo
1062 fi