forked from NexTVTeam/hbbtv-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
1295 lines (1142 loc) · 51.9 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
AC_PREREQ(2.59)
m4_define([webkit_major_version], [1])
m4_define([webkit_minor_version], [6])
m4_define([webkit_micro_version], [1])
# This is the version we'll be using as part of our User-Agent string
# e.g., AppleWebKit/$(webkit_user_agent_version) ...
#
# Sourced from Source/WebCore/Configurations/Version.xcconfig
m4_define([webkit_user_agent_major_version], [535])
m4_define([webkit_user_agent_minor_version], [4])
AC_INIT([WebKit],[webkit_major_version.webkit_minor_version.webkit_micro_version],[http://bugs.webkit.org/])
AC_CONFIG_MACRO_DIR([Source/autotools])
AC_CONFIG_AUX_DIR([Source/autotools])
AC_SUBST(ACLOCAL_AMFLAGS, "-I Source/autotools")
AC_CONFIG_HEADERS([autotoolsconfig.h])
AC_CANONICAL_HOST
WEBKIT_MAJOR_VERSION=webkit_major_version
WEBKIT_MINOR_VERSION=webkit_minor_version
WEBKIT_MICRO_VERSION=webkit_micro_version
WEBKIT_USER_AGENT_MAJOR_VERSION=webkit_user_agent_major_version
WEBKIT_USER_AGENT_MINOR_VERSION=webkit_user_agent_minor_version
AC_SUBST(WEBKIT_MAJOR_VERSION)
AC_SUBST(WEBKIT_MINOR_VERSION)
AC_SUBST(WEBKIT_MICRO_VERSION)
AC_SUBST(WEBKIT_USER_AGENT_MAJOR_VERSION)
AC_SUBST(WEBKIT_USER_AGENT_MINOR_VERSION)
AC_CONFIG_SRCDIR([Source/WebCore/config.h])
dnl # Libtool library version, not to confuse with API version
dnl # see http://www.gnu.org/software/libtool/manual/html_node/Libtool-versioning.html
LIBWEBKITGTK_VERSION=11:0:11
AC_SUBST([LIBWEBKITGTK_VERSION])
AM_INIT_AUTOMAKE([foreign subdir-objects tar-ustar])
# Use AM_SILENT_RULES if present
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
# host checking - inspired by the GTK+ configure.in
# TODO: move these to webkit.m4?
AC_MSG_CHECKING([for native Win32])
case "$host" in
*-*-mingw*)
os_win32=yes
;;
*)
os_win32=no
;;
esac
AC_MSG_RESULT([$os_win32])
case "$host" in
*-*-linux*)
os_linux=yes
;;
*-*-freebsd*)
os_freebsd=yes
;;
*-*-darwin*)
os_darwin=yes
;;
esac
case "$host_os" in
gnu* | linux* | k*bsd*-gnu)
os_gnu=yes
;;
*)
os_gnu=no
;;
esac
# initialize webkit options
WEBKIT_INIT
AC_DISABLE_STATIC
AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL
# use dolt to speedup the build
DOLT
AC_PATH_PROG(FLEX, flex)
if test -z "$FLEX"; then
AC_MSG_ERROR([You need the 'flex' lexer generator to compile WebKit])
else
FLEX_VERSION=`$FLEX --version | sed 's,.*\ \([0-9]*\.[0-9]*\.[0-9]*\)$,\1,'`
AX_COMPARE_VERSION([2.5.33],[gt],[$FLEX_VERSION],
AC_MSG_WARN([You need at least version 2.5.33 of the 'flex' lexer generator to compile WebKit correctly]))
fi
AC_PATH_PROG(GPERF, gperf)
if test -z "$GPERF"; then
AC_MSG_ERROR([You need the 'gperf' hash function generator to compile WebKit])
fi
# Disable C++0x compat warnings for GCC >= 4.6.0 until we build
# cleanly with that.
if test "$CXX" = "g++"; then
CXX_VERSION=`$CXX -dumpversion`
AX_COMPARE_VERSION([$CXX_VERSION],[ge],[4.6.0],CXXFLAGS="$CXXFLAGS -Wno-c++0x-compat")
fi
# pthread (not needed on Windows)
if test "$os_win32" = "no"; then
AC_CHECK_HEADERS([pthread.h],
AC_DEFINE([HAVE_PTHREAD_H],[1],[Define if pthread exists]),
AC_MSG_ERROR([pthread support is required to build WebKit]))
fi
# check for libjpeg the way Gtk does it.
AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
jpeg_ok=yes, jpeg_ok=no
AC_MSG_ERROR([JPEG library (libjpeg) not found]))
if test "$jpeg_ok" = yes; then
AC_MSG_CHECKING([for jpeglib])
AC_TRY_CPP(
[#include <stdio.h>
#undef PACKAGE
#undef VERSION
#undef HAVE_STDLIB_H
#include <jpeglib.h>],
jpeg_ok=yes,
jpeg_ok=no)
AC_MSG_RESULT($jpeg_ok)
if test "$jpeg_ok" = yes; then
JPEG_LIBS="-ljpeg"
# should we check for progressive JPEG like GTK+ as well?
else
AC_MSG_ERROR([JPEG library (libjpeg) not found])
fi
fi
AC_SUBST([JPEG_LIBS])
# Check for libpng the way Gtk+ does it
for l in libpng libpng14 libpng12; do
AC_MSG_CHECKING(for $l)
if $PKG_CONFIG --exists $l ; then
AC_MSG_RESULT(yes)
PNG_LIBS=`$PKG_CONFIG --libs $l`
png_ok=yes
break
else
AC_MSG_RESULT(no)
png_ok=no
fi
done
if test "$png_ok" != yes; then
AC_CHECK_LIB(png, png_read_info,
[AC_CHECK_HEADER(png.h,
png_ok=yes,
png_ok=no)],
AC_MSG_ERROR([PNG library (libpng) not found]), -lz -lm)
if test "$png_ok" = yes; then
AC_MSG_CHECKING([for png_structp in png.h])
AC_TRY_COMPILE([#include <png.h>],
[png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;],
png_ok=yes,
png_ok=no)
AC_MSG_RESULT($png_ok)
if test "$png_ok" = yes; then
PNG_LIBS='-lpng -lz'
else
AC_MSG_ERROR([PNG library (libpng) not found])
fi
else
AC_MSG_ERROR([PNG library (libpng) not found])
fi
fi
AC_SUBST([PNG_LIBS])
if test "$os_win32" = "yes"; then
WINMM_LIBS=-lwinmm
SHLWAPI_LIBS=-lshlwapi
OLE32_LIBS=-lole32
fi
AC_SUBST([WINMM_LIBS])
AC_SUBST([SHLWAPI_LIBS])
AC_SUBST([OLE32_LIBS])
# determine the GTK+ version to use
AC_MSG_CHECKING([the GTK+ version to use])
AC_ARG_WITH([gtk],
[AS_HELP_STRING([--with-gtk=2.0|3.0], [the GTK+ version to use (default: 3.0)])],
[case "$with_gtk" in
2.0|3.0) ;;
*) AC_MSG_ERROR([invalid GTK+ version specified]) ;;
esac],
[with_gtk=3.0])
AC_MSG_RESULT([$with_gtk])
GTK2_REQUIRED_VERSION=2.10
GAIL2_REQUIRED_VERSION=1.8
GTK3_REQUIRED_VERSION=3.0
GAIL3_REQUIRED_VERSION=3.0
case "$with_gtk" in
2.0) GTK_REQUIRED_VERSION=$GTK2_REQUIRED_VERSION
GTK_API_VERSION=2.0
WEBKITGTK_API_MAJOR_VERSION=1
WEBKITGTK_API_MINOR_VERSION=0
WEBKITGTK_API_VERSION=1.0
WEBKITGTK_PC_NAME=webkit
GAIL_PC_NAME=gail
GAIL_REQUIRED_VERSION=$GAIL2_REQUIRED_VERSION
;;
3.0) GTK_REQUIRED_VERSION=$GTK3_REQUIRED_VERSION
GTK_API_VERSION=3.0
WEBKITGTK_API_MAJOR_VERSION=3
WEBKITGTK_API_MINOR_VERSION=0
WEBKITGTK_API_VERSION=3.0
WEBKITGTK_PC_NAME=webkitgtk
GAIL_PC_NAME=gail-3.0
GAIL_REQUIRED_VERSION=$GAIL3_REQUIRED_VERSION
;;
esac
AC_SUBST([WEBKITGTK_API_MAJOR_VERSION])
AC_SUBST([WEBKITGTK_API_MINOR_VERSION])
AC_SUBST([WEBKITGTK_API_VERSION])
AC_SUBST([WEBKITGTK_PC_NAME])
AC_SUBST([GTK_API_VERSION])
AM_CONDITIONAL([GTK_API_VERSION_2],[test "$GTK_API_VERSION" = "2.0"])
# determine the GDK/GTK+ target
AC_MSG_CHECKING([the target windowing system])
AC_ARG_WITH(target,
AC_HELP_STRING([--with-target=@<:@x11/win32/quartz/directfb@:>@],
[Select webkit target [default=x11]]),
[],[with_target="x11"])
case "$with_target" in
x11|win32|quartz|directfb) ;;
*) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;;
esac
AC_MSG_RESULT([$with_target])
AC_MSG_CHECKING([for Hildon UI extensions])
AC_ARG_WITH(hildon,
AC_HELP_STRING([--with-hildon],
[Use Hildon UI extensions [default=no]]),
[],[with_hildon="no"])
AC_MSG_RESULT([$with_hildon])
if test "$with_hildon" = "yes"; then
HILDON_CPPFLAGS="-DMAEMO_CHANGES"
PKG_CHECK_MODULES([HILDON], [hildon-1])
AC_SUBST([HILDON_CPPFLAGS])
AC_SUBST([HILDON_CFLAGS])
AC_SUBST([HILDON_LIBS])
fi
# minimum base dependencies
LIBSOUP_REQUIRED_VERSION=2.33.6
CAIRO_REQUIRED_VERSION=1.10
FONTCONFIG_REQUIRED_VERSION=2.4
FREETYPE2_REQUIRED_VERSION=9.0
LIBXML_REQUIRED_VERSION=2.6
# minimum GTK+ base dependencies
PANGO_REQUIRED_VERSION=1.12
# optional modules
LIBXSLT_REQUIRED_VERSION=1.1.7
SQLITE_REQUIRED_VERSION=3.0
GSTREAMER_REQUIRED_VERSION=0.10
GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION=0.10.30
ENCHANT_REQUIRED_VERSION=0.22
# Available modules
#
# glib - glib and includes gthread
# unicode - check and identify which unicode backend to use
#
# todo: webcore gtk
WEBKIT_CHECK_DEPENDENCIES([glib unicode])
GETTEXT_PACKAGE=$PACKAGE-$GTK_API_VERSION
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
[The gettext catalog name])
PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED_VERSION)
AC_SUBST(LIBXML_CFLAGS)
AC_SUBST(LIBXML_LIBS)
PKG_CHECK_MODULES(PANGO,
[pango >= $PANGO_REQUIRED_VERSION
pangoft2])
AC_SUBST(PANGO_CFLAGS)
AC_SUBST(PANGO_LIBS)
AC_MSG_CHECKING([whether to enable spellcheck support])
AC_ARG_ENABLE([spellcheck],
[AS_HELP_STRING([--enable-spellcheck],[enable support for spellcheck])],
[],[enable_spellcheck="yes"])
AC_MSG_RESULT([$enable_spellcheck])
if test "$enable_spellcheck" = "yes"; then
PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED_VERSION, [], [enable_spellcheck="no"])
AC_SUBST(ENCHANT_CFLAGS)
AC_SUBST(ENCHANT_LIBS)
fi
PKG_CHECK_MODULES(GAIL, $GAIL_PC_NAME >= $GAIL_REQUIRED_VERSION)
AC_SUBST(GAIL_CFLAGS)
AC_SUBST(GAIL_LIBS)
# check for target-specific dependencies
if test "$with_target" = "directfb"; then
PKG_CHECK_MODULES(CAIRO, cairo-directfb >= $CAIRO_REQUIRED_VERSION)
PKG_CHECK_MODULES(GTK, gtk+-directfb-2.0 >= $GTK_REQUIRED_VERSION)
AC_DEFINE([WTF_PLATFORM_DIRECTFB],[1],[Define if target is DirectFB])
else
PKG_CHECK_MODULES(CAIRO, cairo >= $CAIRO_REQUIRED_VERSION)
PKG_CHECK_MODULES(GTK, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED_VERSION)
if test "$with_target" = "x11" && test "$os_win32" = "no"; then
# check for XT
PKG_CHECK_MODULES([XT],
[xt],
[xt_has_pkg_config=yes],
[xt_has_pkg_config=no])
# some old versions of Xt do not provide xt.pc, so try to link against Xt
# and if it's installed fall back to just adding -lXt
if test "$xt_has_pkg_config" = "no"; then
# using AC_CHECK_LIB instead of AC_SEARCH_LIB is fine in this case as
# we don't care about the XtOpenDisplay symbol but only about the
# existence of libXt
AC_CHECK_LIB([Xt], [XtOpenDisplay],
[XT_CFLAGS=""; XT_LIBS="-lXt"],
[AC_MSG_ERROR([X Toolkit Intrinsics library (libXt) not found])])
fi
AC_SUBST([XT_CFLAGS])
AC_SUBST([XT_LIBS])
AC_DEFINE([WTF_PLATFORM_X11],[1],[Define if target is X11])
fi
fi
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
AC_SUBST(CAIRO_CFLAGS)
AC_SUBST(CAIRO_LIBS)
# check whether to build with debugging enabled
AC_MSG_CHECKING([whether to do a debug build])
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug],
[turn on debugging [default=no]]),
[],[enable_debug="no"])
AC_MSG_RESULT([$enable_debug])
# check whether to enable optimized builds
AC_MSG_CHECKING([whether to enable optimized builds])
AC_ARG_ENABLE(optimizations,
AC_HELP_STRING([--enable-optimizations],
[turn on optimize builds (GCC only)
[default=yes]]),
[enable_optimizations=$enableval],
[if test "$enable_debug" = "yes"; then enable_optimizations="no"; else enable_optimizations="yes"; fi])
AC_MSG_RESULT([$enable_optimizations])
# check whether to enable 3D rendering support
AC_MSG_CHECKING([whether to enable support for 3D Rendering])
AC_ARG_ENABLE(3d_rendering,
AC_HELP_STRING([--enable-3d-rendering],
[enable support for 3D Rendering (experimental) [default=no]]),
[],[enable_3d_rendering="no"])
AC_MSG_RESULT([$enable_3d_rendering])
# check whether to enable WebGL support
AC_MSG_CHECKING([whether to enable WebGL support])
AC_ARG_ENABLE(webgl,
AC_HELP_STRING([--enable-webgl],
[enable support for WebGL (experimental) [default=no]]),
[], [enable_webgl="no"])
AC_MSG_RESULT([$enable_webgl])
if test "$enable_webgl" = "yes"; then
AC_CHECK_HEADERS([GL/gl.h], [], AC_MSG_ERROR([OpenGL header not found]))
AC_CHECK_HEADERS([GL/glx.h], [], AC_MSG_ERROR([GLX header not found]))
OPENGL_LIBS=-lGL
fi
AC_SUBST([OPENGL_LIBS])
# check whether to enable channel messaging support
AC_MSG_CHECKING([whether to enable HTML5 Channel Messaging support])
AC_ARG_ENABLE(channel_messaging,
AC_HELP_STRING([--enable-channel-messaging],
[enable HTML5 channel messaging support [default=yes]]),
[],[enable_channel_messaging="yes"])
AC_MSG_RESULT([$enable_channel_messaging])
# check whether to enable notifications
AC_MSG_CHECKING([whether to enable notifications])
AC_ARG_ENABLE(notifications,
AC_HELP_STRING([--enable-notifications],
[enable notifications [default=no]]),
[],[enable_notifications="no"])
AC_MSG_RESULT([$enable_notifications])
# check whether to enable the meter tag
AC_MSG_CHECKING([whether to enable HTML5 meter tag])
AC_ARG_ENABLE(meter_tag,
AC_HELP_STRING([--enable-meter-tag],
[enable HTML5 meter [default=yes]]),
[],[enable_meter_tag="yes"])
AC_MSG_RESULT([$enable_meter_tag])
# check whether to enable page visibility API.
AC_MSG_CHECKING([whether to enable Page Visibility API support])
AC_ARG_ENABLE(page_visibility_api,
AC_HELP_STRING([--enable-page-visibility-api],
[enable page visibility api[default=no]]),
[],[enable_page_visibility_api="no"])
AC_MSG_RESULT([$enable_page_visibility_api])
# check whether to enable the progress tag
AC_MSG_CHECKING([whether to enable HTML5 progress tag])
AC_ARG_ENABLE(progress_tag,
AC_HELP_STRING([--enable-progress-tag],
[enable HTML5 progress [default=yes]]),
[],[enable_progress_tag="yes"])
AC_MSG_RESULT([$enable_progress_tag])
# check whether to enable JavaScript debugger/profiler support
AC_MSG_CHECKING([whether to enable JavaScript debugger/profiler support])
AC_ARG_ENABLE(javascript_debugger,
AC_HELP_STRING([--enable-javascript-debugger],
[enable JavaScript debugger/profiler support [default=yes]]),
[],[enable_javascript_debugger="yes"])
AC_MSG_RESULT([$enable_javascript_debugger])
# check whether to build with datagrid support
AC_MSG_CHECKING([whether to enable HTML5 datagrid support])
AC_ARG_ENABLE(datagrid,
AC_HELP_STRING([--enable-datagrid],
[enable HTML5 datagrid support [default=no]]),
[],[enable_datagrid="no"])
AC_MSG_RESULT([$enable_datagrid])
# check whether to build with data transfer items support
AC_MSG_CHECKING([whether to enable HTML5 data transfer items support])
AC_ARG_ENABLE(data_transfer_items,
AC_HELP_STRING([--enable-data-transfer-items],
[enable HTML5 data transfer items support [default=no]]),
[],[enable_data_transfer_items="no"])
AC_MSG_RESULT([$enable_data_transfer_items])
# check whether to enable HTML5 Offline Web Applications support
AC_MSG_CHECKING([whether to enable HTML5 offline web applications support])
AC_ARG_ENABLE(offline_web_applications,
AC_HELP_STRING([--enable-offline-web-applications],
[enable HTML5 offline web applications support [default=yes]]),
[],[enable_offline_web_applications="yes"])
AC_MSG_RESULT([$enable_offline_web_applications])
# check whether to enable HTML5 client-side session and persitent storage support
AC_MSG_CHECKING([whether to enable HTML5 client-side session and persistent storage support])
AC_ARG_ENABLE(dom_storage,
AC_HELP_STRING([--enable-dom-storage],
[enable HTML5 client-side session and persistent storage support [default=yes]]),
[],[enable_dom_storage="yes"])
AC_MSG_RESULT([$enable_dom_storage])
# check whether to enable the indexed database API
AC_MSG_CHECKING([whether to enable the indexed database API])
AC_ARG_ENABLE(indexed_database,
AC_HELP_STRING([--enable-indexed-database],
[enable the indexed database API [default=no]]),
[],[enable_indexed_database="no"])
AC_MSG_RESULT([$enable_indexed_database])
# check whether to enable the color input
AC_MSG_CHECKING([whether to enable the color input])
AC_ARG_ENABLE(input_color,
AC_HELP_STRING([--enable-input-color],
[enable the color input [default=no]]),
[],[enable_input_color="no"])
AC_MSG_RESULT([$enable_input_color])
# check whether to enable the speech input API
AC_MSG_CHECKING([whether to enable the speech input API])
AC_ARG_ENABLE(input_speech,
AC_HELP_STRING([--enable-input-speech],
[enable the speech input API [default=no]]),
[],[enable_input_speech="no"])
AC_MSG_RESULT([$enable_input_speech])
# check whether to build with SQL database support
AC_MSG_CHECKING([whether to enable SQL client-side database storage support])
AC_ARG_ENABLE(sql_database,
AC_HELP_STRING([--enable-sql-database],
[enable SQL client-side database storage support [default=yes]]),
[],[enable_sql_database="yes"])
AC_MSG_RESULT([$enable_sql_database])
# check whether to build with icon database support
AC_MSG_CHECKING([whether to enable icon database support])
AC_ARG_ENABLE(icon_database,
AC_HELP_STRING([--enable-icon-database],
[enable icon database [default=yes]]),
[],[enable_icon_database="yes"])
AC_MSG_RESULT([$enable_icon_database])
# check whether to build with image resizer API support
AC_MSG_CHECKING([whether to enable image resizer API support])
AC_ARG_ENABLE(image_resizer,
AC_HELP_STRING([--enable-image-resizer],
[enable image resizer [default=no]]),
[],[enable_image_resizer="no"])
AC_MSG_RESULT([$enable_image_resizer])
# check whether to enable HTML5 datalist support
AC_MSG_CHECKING([whether to enable HTML5 datalist support])
AC_ARG_ENABLE(datalist,
AC_HELP_STRING([--enable-datalist],
[enable HTML5 datalist support [default=yes]]),
[],[enable_datalist="yes"])
AC_MSG_RESULT([$enable_datalist])
# check whether to enable HTML5 sandbox iframe support
AC_MSG_CHECKING([whether to enable HTML5 sandboxed iframe support])
AC_ARG_ENABLE(sandbox,
AC_HELP_STRING([--enable-sandbox],
[enable HTML5 sandboxed iframe support [default=yes]]),
[],[enable_sandbox="yes"])
AC_MSG_RESULT([$enable_sandbox])
# check whether to enable HTML5 audio/video support
AC_MSG_CHECKING([whether to enable HTML5 video support])
AC_ARG_ENABLE(video,
AC_HELP_STRING([--enable-video],
[enable HTML5 video support [default=yes]]),
[],[enable_video="yes"])
AC_MSG_RESULT([$enable_video])
# check whether to enable HTML5 audio/video support
AC_MSG_CHECKING([whether to enable elis media support])
AC_ARG_ENABLE(video,
AC_HELP_STRING([--enable-elis-media],
[enable Elis Media support [default=no]]),
[],[enable_elis_media="no"])
AC_MSG_RESULT([$enable_elis_media])
# turn off video features if --disable-video is requested
if test "$enable_video" = "no"; then
enable_video_track=no
fi
# check whether to enable HTML5 video track support
AC_MSG_CHECKING([whether to enable HTML5 video track support])
AC_ARG_ENABLE(video_track,
AC_HELP_STRING([--enable-video-track],
[enable HTML5 video track support [default=yes]]),
[],[enable_video_track="yes"])
AC_MSG_RESULT([$enable_video_track])
# check whether to enable media source support
AC_MSG_CHECKING([whether to enable media source support])
AC_ARG_ENABLE(media_source,
AC_HELP_STRING([--enable-media-source],
[enable support for media source [default=no]]),
[], [enable_media_source="no"])
AC_MSG_RESULT([$enable_media_source])
# check whether to enable media statistics support
AC_MSG_CHECKING([whether to enable media statistics support])
AC_ARG_ENABLE(media_statistics,
AC_HELP_STRING([--enable-media-statistics],
[enable support for media statistics [default=no]]),
[], [enable_media_statistics="no"])
AC_MSG_RESULT([$enable_media_statistics])
# check whether to enable Javascript Fullscreen API support
AC_MSG_CHECKING([whether to enable Fullscreen API support])
AC_ARG_ENABLE(fullscreen_api,
AC_HELP_STRING([--enable-fullscreen-api],
[enable the Fullscreen API support [default=yes]]),
[],[enable_fullscreen_api="yes"])
AC_MSG_RESULT([$enable_fullscreen_api])
# check whether to enable media stream support
AC_MSG_CHECKING([whether to enable media stream support])
AC_ARG_ENABLE(media_stream,
AC_HELP_STRING([--enable-media-stream],
[enable media stream support (incomplete) [default=no]]),
[],[enable_media_stream="no"])
AC_MSG_RESULT([$enable_media_stream])
# check whether to enable XHTML-MP support
AC_MSG_CHECKING([whether to enable XHTML-MP support])
AC_ARG_ENABLE(xhtmlmp,
AC_HELP_STRING([--enable-xhtmlmp],
[enable support for XHTML-MP [default=no]]),
[],[enable_xhtmlmp="no"])
AC_MSG_RESULT([$enable_xhtmlmp])
# check whether to enable XPath support
AC_MSG_CHECKING([whether to enable XPath support])
AC_ARG_ENABLE(xpath,
AC_HELP_STRING([--enable-xpath],
[enable support for XPath [default=yes]]),
[],[enable_xpath="yes"])
AC_MSG_RESULT([$enable_xpath])
# check whether to enable XSLT support
AC_MSG_CHECKING([whether to enable XSLT support])
AC_ARG_ENABLE(xslt,
AC_HELP_STRING([--enable-xslt],
[enable support for XSLT [default=yes]]),
[],[enable_xslt="yes"])
AC_MSG_RESULT([$enable_xslt])
# check whether to enable geolocation support
AC_MSG_CHECKING([whether to enable geolocation support])
AC_ARG_ENABLE(geolocation,
AC_HELP_STRING([--enable-geolocation],
[enable support for geolocation [default=no]]),
[],[enable_geolocation="no"])
AC_MSG_RESULT([$enable_geolocation])
# check whether to enable client-based geolocation support
AC_MSG_CHECKING([whether to enable client-based geolocation support])
AC_ARG_ENABLE(client_based_geolocation,
AC_HELP_STRING([--enable-client-based-geolocation],
[enable support for client-based geolocation [default=no]]),
[],[enable_client_based_geolocation="no"])
AC_MSG_RESULT([$enable_client_based_geolocation])
# check whether to enable MathML support
AC_MSG_CHECKING([whether to enable MathML support])
AC_ARG_ENABLE(mathml,
AC_HELP_STRING([--enable-mathml],
[enable support for MathML [default=no]]),
[],[enable_mathml="no"])
AC_MSG_RESULT([$enable_mathml])
# check whether to enable SVG support
AC_MSG_CHECKING([whether to enable SVG support])
AC_ARG_ENABLE(svg,
AC_HELP_STRING([--enable-svg],
[enable support for SVG [default=yes]]),
[],[enable_svg="yes"])
AC_MSG_RESULT([$enable_svg])
# check whether to enable WCSS support
AC_MSG_CHECKING([whether to enable WCSS support])
AC_ARG_ENABLE(wcss,
AC_HELP_STRING([--enable-wcss],
[enable support for WCSS [default=no]]),
[],[enable_wcss="no"])
AC_MSG_RESULT([$enable_wcss])
# check whether to enable SharedWorkers support
AC_MSG_CHECKING([whether to enable SharedWorkers support])
AC_ARG_ENABLE(shared_workers,
AC_HELP_STRING([--enable-shared-workers],
[enable support for SharedWorkers [default=yes]]),
[],[enable_shared_workers="yes"])
AC_MSG_RESULT([$enable_shared_workers])
# check whether to enable Web Workers support
AC_MSG_CHECKING([whether to enable Web Workers support])
AC_ARG_ENABLE(workers,
AC_HELP_STRING([--enable-workers],
[enable support for Web Workers [default=yes]]),
[],[enable_workers="yes"])
AC_MSG_RESULT([$enable_workers])
# check whether to enable directory upload support
AC_MSG_CHECKING([whether to enable directory upload support])
AC_ARG_ENABLE(directory_upload,
AC_HELP_STRING([--enable-directory-upload],
[enable support for directory upload [default=no]]),
[], [enable_directory_upload="no"])
AC_MSG_RESULT([$enable_directory_upload])
# check whether to enable HTML5 FileSystem API support
AC_MSG_CHECKING([whether to enable HTML5 FileSystem API support])
AC_ARG_ENABLE(file_system,
AC_HELP_STRING([--enable-file-system],
[enable support for HTML5 FileSystem API [default=no]]),
[], [enable_file_system="no"])
AC_MSG_RESULT([$enable_file_system])
# check whether to enable Quota API support
AC_MSG_CHECKING([whether to enable Quota API support])
AC_ARG_ENABLE(quota,
AC_HELP_STRING([--enable-quota],
[enable support for Quota API [default=no]]),
[], [enable_quota="no"])
AC_MSG_RESULT([$enable_quota])
# turn off svg features if --disable-svg is requested
if test "$enable_svg" = "no"; then
enable_svg_fonts=no
fi
# check whether to enable support for filters
AC_MSG_CHECKING([whether to enable support for filters])
AC_ARG_ENABLE(filters,
AC_HELP_STRING([--enable-filters],
[enable support for filters (experimental) [default=yes]]),
[],[enable_filters="yes"])
AC_MSG_RESULT([$enable_filters])
# check whether to enable support for SVG fonts
AC_MSG_CHECKING([whether to enable support for SVG fonts])
AC_ARG_ENABLE(svg_fonts,
AC_HELP_STRING([--enable-svg-fonts],
[enable support for SVG fonts (experimental) [default=yes]]),
[],[enable_svg_fonts="yes"])
AC_MSG_RESULT([$enable_svg_fonts])
# check for SVG features, enabling SVG if necessary
if test "$enable_svg_fonts" = "yes"; then
svg_flags=yes
if test "$enable_svg" = "no"; then
AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support])
enable_svg=yes
fi
fi
# check whether to enable Web Socket support
AC_MSG_CHECKING([whether to enable Web Sockets support])
AC_ARG_ENABLE(web_sockets,
AC_HELP_STRING([--enable-web-sockets],
[enable support for Web Sockets [default=yes]]),
[],[enable_web_sockets="yes"])
AC_MSG_RESULT([$enable_web_sockets])
# check whether to enable Web Audio support
AC_MSG_CHECKING([whether to enable Web Audio support])
AC_ARG_ENABLE(web_audio,
AC_HELP_STRING([--enable-web-audio],
[enable support for Web Audio [default=no]]),
[],[enable_web_audio="no"])
AC_MSG_RESULT([$enable_web_audio])
# check whether to enable Web Timing support
AC_MSG_CHECKING([whether to enable Web Timing support])
AC_ARG_ENABLE(web_timing,
AC_HELP_STRING([--enable-web-timing],
[enable support for Web Timing [default=no]]),
[],[enable_web_timing="no"])
AC_MSG_RESULT([$enable_web_timing])
# check whether to enable Blob support
AC_MSG_CHECKING([whether to enable Blob support])
AC_ARG_ENABLE(blob,
AC_HELP_STRING([--enable-blob],
[enable support for Blob [default=yes]]),
[],[enable_blob="yes"])
AC_MSG_RESULT([$enable_blob])
# check whether to enable Fast Mobile Scrolling support
AC_MSG_CHECKING([whether to enable Fast Mobile Scrolling])
AC_ARG_ENABLE(fast_mobile_scrolling,
AC_HELP_STRING([--enable-fast-mobile-scrolling],
[enable support for Fast Mobile Scrolling [default=no]]),
[],[enable_fast_mobile_scrolling="no"])
AC_MSG_RESULT([$enable_fast_mobile_scrolling])
# check whether to enable code coverage
AC_MSG_CHECKING([whether to enable code coverage support])
AC_ARG_ENABLE(coverage,
AC_HELP_STRING([--enable-coverage],
[enable code coverage support [default=no]]),
[],[enable_coverage="no"])
AC_MSG_RESULT([$enable_coverage])
# check whether to enable FastMalloc
AC_MSG_CHECKING([whether to enable optimized memory allocator])
AC_ARG_ENABLE(fast_malloc,
AC_HELP_STRING([--enable-fast-malloc],
[enable optimized memory allocator default=yes, default=no for debug builds]),
[],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi])
AC_MSG_RESULT([$enable_fast_malloc])
# check whether to enable debug symbols
AC_MSG_CHECKING([whether to enable debug symbols])
AC_ARG_ENABLE(debug_symbols,
AC_HELP_STRING([--enable-debug-symbols],
[enable debug symbols default=no, default=yes for debug builds]),
[],[if test "$enable_debug" = "yes"; then enable_debug_symbols="yes"; else enable_debug_symbols="no"; fi])
AC_MSG_RESULT([$enable_debug_symbols])
# check whether to enable debug features
AC_MSG_CHECKING([whether to enable debug features])
AC_ARG_ENABLE(debug_features,
AC_HELP_STRING([--enable-debug-features],
[enable debug features default=no, default=yes for debug builds]),
[],[if test "$enable_debug" = "yes"; then enable_debug_features="yes"; else enable_debug_features="no"; fi])
AC_MSG_RESULT([$enable_debug_features])
AC_MSG_CHECKING([whether to enable JIT compilation])
AC_ARG_ENABLE([jit],
AC_HELP_STRING([--enable-jit],
[Enable JIT compilation default=yes]),
[],[enable_jit="yes"])
if test "$enable_jit" = "yes"; then
case "$host_cpu" in
arm*)
AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
;;
i*86|x86_64)
AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
AC_DEFINE([ENABLE_JIT_OPTIMIZE_CALL], [1], [Define to enable optimizing calls])
AC_DEFINE([ENABLE_JIT_OPTIMIZE_PROPERTY_ACCESS], [1], [Define to enable optimized property access])
AC_DEFINE([ENABLE_JIT_OPTIMIZE_ARITHMETIC], [1], [Define to enable optimized arithmetic])
case "$host_cpu" in
i*86)
AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_VA_LIST], [1], [Use stub va_list])
;;
x86_64)
AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_REGISTER], [1], [Use stub register])
AC_DEFINE([WTF_USE_ALTERNATE_JSIMMEDIATE], [1], [Use alternate JSImmediate])
;;
esac
;;
sh4)
AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_REGISTER], [1], [Use stub register])
;;
*)
enable_jit="no (CPU '$host_cpu' not supported)"
;;
esac
else
AC_DEFINE([ENABLE_JIT], [0], [Define to enable JIT])
fi
AC_MSG_RESULT([$enable_jit])
# Opcode stats
AC_MSG_CHECKING([whether to enable opcode stats])
AC_ARG_ENABLE([opcode-stats],
[AS_HELP_STRING([--enable-opcode-stats], [Enable Opcode statistics (default: disabled)])],
[], [enable_opcode_stats=no])
AC_MSG_RESULT([$enable_opcode_stats])
if test "$enable_opcode_stats" = "yes"; then
if test "$enable_jit" = "yes"; then
AC_MSG_ERROR([JIT must be disabled for Opcode stats to work.])
fi
AC_DEFINE([ENABLE_OPCODE_STATS], [1], [Define to enable Opcode statistics])
fi
# Link prefetch
AC_MSG_CHECKING([whether to enable link prefetch support])
AC_ARG_ENABLE([link-prefetch],
[AS_HELP_STRING([--enable-link-prefetch], [Enable Link prefetch support (default: disabled)])],
[],[enable_link_prefetch=no])
AC_MSG_RESULT([$enable_link_prefetch])
if test "$enable_link_prefetch" = "yes"; then
AC_DEFINE([ENABLE_LINK_PREFETCH], [1], [Define to enable link prefetch support])
fi
# GObject Introspection
AC_MSG_CHECKING([whether to enable GObject introspection support])
AC_ARG_ENABLE([introspection],
[AS_HELP_STRING([--enable-introspection],[Enable GObject introspection (default: disabled)])],
[],[enable_introspection=no])
AC_MSG_RESULT([$enable_introspection])
# check whether to enable animation API
AC_MSG_CHECKING([whether to enable Animation API support])
AC_ARG_ENABLE(animation_api,
AC_HELP_STRING([--enable-animation-api],
[enable support for Animation API (experimental) [default=no]]),
[], [enable_animation_api="no"])
AC_MSG_RESULT([$enable_animation_api])
# check whether to enable touch icon loading
AC_MSG_CHECKING([whether to enable touch icon loading])
AC_ARG_ENABLE(touch_icon_loading,
AC_HELP_STRING([--enable-touch-icon-loading],
[enable support for loading touch icons [default=no]]),
[], [enable_touch_icon_loading="no"])
AC_MSG_RESULT([$enable_touch_icon_loading])
# check whether to enable Register Protocol Handler support
AC_MSG_CHECKING([whether to enable Register Protocol Handler])
AC_ARG_ENABLE(register_protocol_handler,
AC_HELP_STRING([--enable-register-protocol-handler],
[enable support for Register Protocol Handler (experimental) [default=no]]),
[],[enable_register_protocol_handler="no"])
AC_MSG_RESULT([$enable_register_protocol_handler])
# check whether to enable DeviceOrientation support
AC_MSG_CHECKING([whether to enable DeviceOrientation])
AC_ARG_ENABLE(device_orientation,
AC_HELP_STRING([--enable-device-orientation],
[enable support for DeviceOrientation (experimental and incomplete) [default=no]]),
[],[enable_device_orientation="no"])
AC_MSG_RESULT([$enable_device_orientation])
G_IR_SCANNER=
G_IR_COMPILER=
G_IR_GENERATE=
GIRDIR=
GIRTYPELIBDIR=
if test "$enable_introspection" = "yes"; then
GOBJECT_INTROSPECTION_REQUIRED=0.9.5
PKG_CHECK_MODULES([INTROSPECTION],[gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED])
G_IR_SCANNER="$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)"
G_IR_COMPILER="$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)"
G_IR_GENERATE="$($PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0)"
AC_DEFINE([ENABLE_INTROSPECTION],[1],[Define to enable GObject introspection support])
fi
AC_SUBST([G_IR_SCANNER])
AC_SUBST([G_IR_COMPILER])
AC_SUBST([G_IR_GENERATE])
# determine the font backend
AC_MSG_CHECKING([the font backend to use])
AC_ARG_WITH(font_backend,
AC_HELP_STRING([--with-font-backend=@<:@freetype/pango@:>@],
[Select font backend [default=freetype]]),
[],[with_font_backend="freetype"])
case "$with_font_backend" in
freetype|pango) ;;
*) AC_MSG_ERROR([Invalid font backend: must be freetype or pango.]) ;;
esac
AC_MSG_RESULT([$with_font_backend])
if test "$host_cpu" = "sh4"; then
CXXFLAGS="$CXXFLAGS -mieee -w"
CFLAGS="$CFLAGS -mieee -w"
fi
# Add '-g' flag to gcc to build with debug symbols
if test "$enable_debug_symbols" = "yes"; then
CXXFLAGS="$CXXFLAGS -g"
CFLAGS="$CFLAGS -g"
fi
if test "$enable_debug_features" = "no"; then
AC_DEFINE([NDEBUG], [1], [Define to disable debugging features])
fi
# Add the appropriate 'O' level for optimized builds
if test "$enable_optimizations" = "yes"; then
CXXFLAGS="$CXXFLAGS -O2"
CFLAGS="$CFLAGS -O2"
else
CXXFLAGS="$CXXFLAGS -O0"
CFLAGS="$CFLAGS -O0"
fi
PKG_CHECK_MODULES([LIBSOUP],
[libsoup-2.4 >= $LIBSOUP_REQUIRED_VERSION])
AC_SUBST([LIBSOUP_CFLAGS])
AC_SUBST([LIBSOUP_LIBS])
# check if FreeType/FontConfig are available
if test "$with_font_backend" = "freetype"; then
if test "$with_target" = "directfb"; then
PKG_CHECK_MODULES([FREETYPE],
[fontconfig >= $FONTCONFIG_REQUIRED_VERSION
freetype2 >= $FREETYPE2_REQUIRED_VERSION])
else
PKG_CHECK_MODULES([FREETYPE],
[cairo-ft
fontconfig >= $FONTCONFIG_REQUIRED_VERSION
freetype2 >= $FREETYPE2_REQUIRED_VERSION])
fi
AC_SUBST([FREETYPE_CFLAGS])
AC_SUBST([FREETYPE_LIBS])
fi
# check if SQLite3 is available. Error out only if one of the
# features hard-depending on it is enabled while SQLite3 is
# unavailable.
PKG_CHECK_MODULES([SQLITE3],
[sqlite3 >= $SQLITE_REQUIRED_VERSION],
[sqlite3_has_pkg_config=yes],
[sqlite3_has_pkg_config=no])
if test "$sqlite3_has_pkg_config" = "no"; then
AC_SEARCH_LIBS([sqlite3_open16], [sqlite3],
[sqlite3_found=yes;SQLITE3_LIBS="$LIBS";SQLITE3_CFLAGS="-I $srcdir/WebKitLibraries/WebCoreSQLite3"],
[sqlite3_found=no])