5223d56b9cf723df131376eb2783731a9eb1aef0
[WebKit-https.git] / Source / autotools / SetupAutomake.m4
1 #######################################################################################
2 #                                     ATTENTION                                       #
3 # Please refer to the following guidelines if you're about to add an Automake         #
4 # conditional that reflects any configuration option you've probably also added.      #
5 # Chances are neither of these changes are required.                                  #
6 # http://trac.webkit.org/wiki/AddingFeatures#ActivatingafeatureforAutotoolsbasedports #
7 #######################################################################################
8
9 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
10 AM_PROG_CC_C_O
11 AM_CONDITIONAL([GTK_API_VERSION_2],[test "$GTK_API_VERSION" = "2.0"])
12
13 # For the moment we need to check whether or not indexed database is
14 # enabled because it determines if we build leveldb or not.
15 AM_WEBKIT_FEATURE_CONDITIONAL([ENABLE_INDEXED_DATABASE])
16
17 # OS conditionals.
18 AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])
19 AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"])
20 AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
21 AM_CONDITIONAL([OS_GNU],[test "$os_gnu" = "yes"])
22 AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
23
24 # Target conditionals.
25 AM_CONDITIONAL([TARGET_X11], [test "$with_target" = "x11"])
26 AM_CONDITIONAL([TARGET_WIN32], [test "$with_target" = "win32"])
27 AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"])
28 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"])
29
30 # GStreamer feature conditionals.
31 AM_CONDITIONAL([USE_GSTREAMER], [test "$have_gstreamer" = "yes"])
32 AM_CONDITIONAL([USE_WEBAUDIO_GSTREAMER], [test "$enable_web_audio" = "yes"])
33
34 # ATSPI2 conditional.
35 AM_CONDITIONAL([HAVE_ATSPI2], [test "$have_atspi2" = "yes"])
36
37 # Accelerated compositing conditionals.
38 AM_CONDITIONAL([USE_ACCELERATED_COMPOSITING], [test "$enable_accelerated_compositing" = "yes"])
39 AM_CONDITIONAL([USE_TEXTURE_MAPPER_CAIRO],
40     [test "$enable_accelerated_compositing" = "yes" && test "$with_acceleration_backend" = "none"])
41 AM_CONDITIONAL([USE_TEXTURE_MAPPER_GL],
42     [test "$enable_accelerated_compositing" = "yes" && test "$with_acceleration_backend" = "opengl"])
43 AM_CONDITIONAL([USE_CLUTTER], [test "$with_acceleration_backend" = "clutter"])
44
45 # These are the same for now, but they will soon be separate.
46 AM_CONDITIONAL([USE_OPENGL], [test "$with_acceleration_backend" = "opengl"])
47 AM_CONDITIONAL([USE_EGL], [test "$enable_egl" = "yes"])
48 AM_CONDITIONAL([USE_GLES2], [test "$enable_gles2" = "yes"])
49 AM_CONDITIONAL([USE_GLX], [test "$enable_glx" = "yes"])
50
51 # WebKit feature conditionals.
52 AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug" = "yes"])
53 AM_CONDITIONAL([ENABLE_WEBGL],[test "$enable_webgl" = "yes"])
54 AM_CONDITIONAL([ENABLE_GAMEPAD],[test "$enable_gamepad" = "yes"])
55 AM_CONDITIONAL([ENABLE_XSLT],[test "$enable_xslt" = "yes"])
56 AM_CONDITIONAL([ENABLE_GEOLOCATION], [test "$enable_geolocation" = "yes"])
57 AM_CONDITIONAL([ENABLE_VIDEO],[test "$enable_video" = "yes"])
58 AM_CONDITIONAL([ENABLE_MEDIA_STREAM],[test "$enable_media_stream" = "yes"])
59 AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"])
60 AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"])
61 AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"])
62 AM_CONDITIONAL([ENABLE_WEB_AUDIO],[test "$enable_web_audio" = "yes"])
63 AM_CONDITIONAL([ENABLE_OPCODE_STATS],[test "$enable_opcode_stats" = "yes"])
64 AM_CONDITIONAL([ENABLE_WEBKIT1],[test "$enable_webkit1" = "yes"])
65 AM_CONDITIONAL([ENABLE_WEBKIT2],[test "$enable_webkit2" = "yes"])
66 AM_CONDITIONAL([ENABLE_SPELLCHECK],[test "$enable_spellcheck" = "yes"])
67 AM_CONDITIONAL([ENABLE_CSS_FILTERS],[test "$enable_css_filters" = "yes"])
68 AM_CONDITIONAL([ENABLE_CSS_SHADERS],[test "$enable_css_shaders" = "yes"])
69
70 # Introspection conditional.
71 AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"])
72