Commit 38e753c5 authored by mrobinson@webkit.org's avatar mrobinson@webkit.org

[GTK] Split configure.ac into reusable portions

https://bugs.webkit.org/show_bug.cgi?id=109246

Reviewed by Philippe Normand.

Split up configure.ac into sections based on different "phases"
of configuration. This should make it easier to find what you are
looking for as well as creating a "right" place to put things.
A nice side effect of this is that we can share the different
modules with a gyp build.

* Source/autotools/CheckSystemAndBasicDependencies.m4: Added.
* Source/autotools/FindDependencies.m4: Added.
* Source/autotools/PrintBuildConfiguration.m4: Added.
* Source/autotools/ReadCommandLineArguments.m4: Added.
* Source/autotools/SetupAutoconfHeader.m4: Added.
* Source/autotools/SetupAutomake.m4: Added.
* Source/autotools/SetupCompilerFlags.m4: Added.
* Source/autotools/SetupLibtool.m4: Added.
* Source/autotools/Versions.m4: Added.
* configure.ac:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142284 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 91a8bd83
2013-02-07 Martin Robinson <mrobinson@igalia.com>
[GTK] Split configure.ac into reusable portions
https://bugs.webkit.org/show_bug.cgi?id=109246
Reviewed by Philippe Normand.
Split up configure.ac into sections based on different "phases"
of configuration. This should make it easier to find what you are
looking for as well as creating a "right" place to put things.
A nice side effect of this is that we can share the different
modules with a gyp build.
* Source/autotools/CheckSystemAndBasicDependencies.m4: Added.
* Source/autotools/FindDependencies.m4: Added.
* Source/autotools/PrintBuildConfiguration.m4: Added.
* Source/autotools/ReadCommandLineArguments.m4: Added.
* Source/autotools/SetupAutoconfHeader.m4: Added.
* Source/autotools/SetupAutomake.m4: Added.
* Source/autotools/SetupCompilerFlags.m4: Added.
* Source/autotools/SetupLibtool.m4: Added.
* Source/autotools/Versions.m4: Added.
* configure.ac:
2013-02-07 David Farler <dfarler@apple.com>
Makefiles should work for arbitrary SDKs and architectures on Apple ports
......
AC_CANONICAL_HOST
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
AC_PATH_PROG(PERL, perl)
if test -z "$PERL"; then
AC_MSG_ERROR([You need 'perl' to compile WebKit])
fi
AC_PATH_PROG(PYTHON, python)
if test -z "$PYTHON"; then
AC_MSG_ERROR([You need 'python' to compile WebKit])
fi
AC_PATH_PROG(RUBY, ruby)
if test -z "$RUBY"; then
AC_MSG_ERROR([You need 'ruby' to compile WebKit])
fi
AC_PATH_PROG(BISON, bison)
if test -z "$BISON"; then
AC_MSG_ERROR([You need the 'bison' parser generator to compile WebKit])
fi
AC_PATH_PROG(MV, mv)
if test -z "$MV"; then
AC_MSG_ERROR([You need 'mv' to compile WebKit])
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
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
# If CFLAGS and CXXFLAGS are unset, default to empty.
# This is to tell automake not to include '-g' if C{XX,}FLAGS is not set.
# For more info - http://www.gnu.org/software/automake/manual/autoconf.html#C_002b_002b-Compiler
if test -z "$CXXFLAGS"; then
CXXFLAGS=""
fi
if test -z "$CFLAGS"; then
CFLAGS=""
fi
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AC_SYS_LARGEFILE
# Check whether a C++ was found (AC_PROG_CXX sets $CXX to "g++" even when it doesn't exist).
AC_LANG_PUSH([C++])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],[],[AC_MSG_ERROR([No C++ compiler found])])
AC_LANG_POP([C++])
# C/C++ Language Features
AC_C_CONST
AC_C_INLINE
AC_C_VOLATILE
# C/C++ Headers
AC_HEADER_STDC
AC_HEADER_STDBOOL
# Check for -fvisibility=hidden compiler support (GCC >= 4).
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
AC_MSG_CHECKING([if ${CXX} supports -fvisibility=hidden -fvisibility-inlines-hidden])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([char foo;])], [AC_MSG_RESULT([yes])
SYMBOL_VISIBILITY="-fvisibility=hidden" SYMBOL_VISIBILITY_INLINES="-fvisibility-inlines-hidden"], [AC_MSG_RESULT([no])])
CFLAGS="$saved_CFLAGS"
AC_SUBST(SYMBOL_VISIBILITY)
AC_SUBST(SYMBOL_VISIBILITY_INLINES)
# Disable C++0x compat warnings for GCC >= 4.6.0 until we build cleanly with that.
AC_LANG_PUSH(C++)
TMPCXXFLAGS=$CXXFLAGS
CXXFLAGS="-Wall -Werror"
AC_MSG_CHECKING([if we have to disable C++0x compat warnings for GCC >= 4.6.0])
AC_TRY_COMPILE([
namespace std {
class nullptr_t { };
}
extern std::nullptr_t nullptr;
], [return 0;], disable_cxx0x_compat=no, disable_cxx0x_compat=yes)
AC_MSG_RESULT($disable_cxx0x_compat)
if test "$disable_cxx0x_compat" = yes; then
CXXFLAGS="$TMPCXXFLAGS -Wno-c++0x-compat"
else
CXXFLAGS="$TMPCXXFLAGS"
fi
AC_LANG_POP(C++)
This diff is collapsed.
AC_OUTPUT
echo "
WebKit was configured with the following options:
Build configuration:
Enable debugging (slow) : $enable_debug
Compile with debug symbols (slow) : $enable_debug_symbols
Enable debug features (slow) : $enable_debug_features
Enable GCC build optimization : $enable_optimizations
Code coverage support : $enable_coverage
Unicode backend : $with_unicode_backend
Optimized memory allocator : $enable_fast_malloc
Accelerated rendering backend : $acceleration_backend_description
Features:
=======
WebKit1 support : $enable_webkit1
WebKit2 support : $enable_webkit2
Accelerated Compositing : $enable_accelerated_compositing
Gamepad support : $enable_gamepad
Geolocation support : $enable_geolocation
HTML5 video element support : $enable_video
JIT compilation : $enable_jit
Media stream support : $enable_media_stream
Opcode stats : $enable_opcode_stats
SVG fonts support : $enable_svg_fonts
SVG support : $enable_svg
Spellcheck support : $enable_spellcheck
Web Audio support : $enable_web_audio
WebGL : $enable_webgl
XSLT support : $enable_xslt
GTK+ configuration:
GTK+ version : $with_gtk
GDK target : $with_target
GStreamer version : $with_gstreamer
Introspection support : $enable_introspection
Generate documentation : $enable_gtk_doc
"
if test "$with_unicode_backend" = "glib"; then
echo " >> WARNING: the glib-based unicode backend is slow and incomplete <<"
echo
echo
fi
AC_MSG_CHECKING([whether to build WebKit1])
AC_ARG_ENABLE(webkit1,
AC_HELP_STRING([--enable-webkit1], [build WebKit1 [default=yes]]),
[],
[enable_webkit1="yes"])
AC_MSG_RESULT([$enable_webkit1])
# If you change the default here, please also make sure the assumptions made
# in Tools/Scripts/webkitdirs.pm:buildAutotoolsProject still make sense.
AC_MSG_CHECKING([whether to build WebKit2])
AC_ARG_ENABLE(webkit2,
AC_HELP_STRING([--enable-webkit2], [build WebKit2 [default=yes]]),
[],
[enable_webkit2="yes"])
AC_MSG_RESULT([$enable_webkit2])
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])
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])
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])
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]]),
[
case "$with_target" in
x11|win32|quartz|directfb) ;;
*) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;;
esac
],
[with_target="x11"])
AC_MSG_RESULT([$with_target])
AC_MSG_CHECKING([which Unicode backend to use])
AC_ARG_WITH(unicode_backend,
AC_HELP_STRING([--with-unicode-backend=@<:@icu/glib@:>@],
[Select Unicode backend (WARNING: the glib-based backend is slow, and incomplete) [default=icu]]),
[
case "$with_unicodebackend" in
icu|glib) ;;
*) AC_MSG_ERROR([Invalid Unicode backend: must be icu or glib.]) ;;
esac
],
[with_unicode_backend="icu"])
AC_MSG_RESULT([$with_unicode_backend])
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])
AC_ARG_ENABLE(glx,
AC_HELP_STRING([--enable-glx], [enable support for GLX [default=auto]]),
[],
[enable_glx="auto"])
AC_ARG_ENABLE(egl,
AC_HELP_STRING([--enable-egl], [enable support for EGL [default=auto]]),
[],
[enable_egl="auto"])
AC_ARG_ENABLE(gles2, AC_HELP_STRING([--enable-gles2], [enable support for OpenGL ES 2 [default=auto]]), [], [enable_gles2="auto"])
AC_MSG_CHECKING([whether to enable Gamepad support])
AC_ARG_ENABLE(gamepad,
AC_HELP_STRING([--enable-gamepad], [enable Gamepad support [default=no]]),
[],
[enable_gamepad="no"])
AC_MSG_RESULT([$enable_gamepad])
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])
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])
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])
AC_MSG_CHECKING([whether to enable geolocation support])
AC_ARG_ENABLE(geolocation,
AC_HELP_STRING([--enable-geolocation], [enable support for geolocation [default=yes]]),
[],
[enable_geolocation="yes"])
AC_MSG_RESULT([$enable_geolocation])
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])
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])
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])
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])
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])
AC_MSG_CHECKING([whether to enable debug symbols])
AC_ARG_ENABLE(debug_symbols,
AC_HELP_STRING([--enable-debug-symbols=yes|no|min|full], [enable debug symbols default=no, default=yes for debug builds]),
[
case "$enable_debug_symbols" in
yes) enable_debug_symbols="full" ;;
no|min|full) ;;
*) AC_MSG_ERROR([Invalid debug symbols option: must be yes, no, min or full.]) ;;
esac
],
[
if test "$enable_debug" = "yes"; then
enable_debug_symbols="yes";
else
enable_debug_symbols="no";
fi
])
AC_MSG_RESULT([$enable_debug_symbols])
AC_MSG_CHECKING([the GStreamer version to use])
AC_ARG_WITH([gstreamer],
AS_HELP_STRING([--with-gstreamer=1.0|0.10|auto], [the GStreamer version to use (default: auto, tries 1.0 first, 0.10 is fallback)]),
[
case "$with_gstreamer" in
0.10|1.0|auto) ;;
*) AC_MSG_ERROR([invalid GStreamer version specified]) ;;
esac
],
[with_gstreamer=auto])
AC_MSG_RESULT([$with_gstreamer])
AC_MSG_CHECKING([which GPU acceleration backend to use])
AC_ARG_WITH(acceleration_backend,
AC_HELP_STRING([--with-acceleration-backend=@<:@opengl/clutter/none@:>@],
[Select accelerated backend (Clutter currently unsupported, OpenGL autodetected) [default=autodetect]]),
[],
[with_acceleration_backend="auto"])
AC_MSG_RESULT([$with_acceleration_backend])
AC_MSG_CHECKING([whether to enable WebGL support])
AC_ARG_ENABLE(webgl, AC_HELP_STRING([--enable-webgl], [enable support for WebGL [default=check]]),
[],
[enable_webgl="auto"])
AC_MSG_RESULT([$enable_webgl])
AC_MSG_CHECKING([whether to enable accelerated compositing support])
AC_ARG_ENABLE(accelerated_compositing,
AC_HELP_STRING([--enable-accelerated-compositing], [enable support for accelerated compositing [default=check]]),
[],
[enable_accelerated_compositing="auto"])
AC_MSG_RESULT([$enable_accelerated_compositing])
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, AS_HELP_STRING([--enable-jit], [Enable JIT compilation (default: autodetect)]))
AC_MSG_RESULT([$enable_jit])
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])
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])
# Configuration flags that are used throughout WebKitGTK+.
AC_DEFINE([ENABLE_GLIB_SUPPORT], [1], [ ])
AC_DEFINE([WTF_USE_FREETYPE], [1], [ ])
AC_DEFINE([WTF_USE_HARFBUZZ], [1], [ ])
AC_DEFINE([WTF_USE_SOUP], [1], [ ])
AC_DEFINE([WTF_USE_WEBP], [1], [ ])
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [The gettext catalog name])
if test "$enable_debug_features" = "yes"; then
AC_DEFINE([GDK_PIXBUF_DISABLE_DEPRECATED], [1], [ ])
AC_DEFINE([GDK_DISABLE_DEPRECATED], [1], [ ])
AC_DEFINE([GTK_DISABLE_DEPRECATED], [1], [ ])
AC_DEFINE([PANGO_DISABLE_DEPRECATED], [1], [ ])
else
AC_DEFINE([NDEBUG], [1], [Define to disable debugging features])
fi
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]))
AC_CHECK_LIB(pthread, pthread_rwlock_init,
AC_DEFINE([HAVE_PTHREAD_RWLOCK],[1],[Define if pthread rwlock is present]),
AC_MSG_WARN([pthread rwlock support is not available]))
fi
if test "$GTK_API_VERSION" = "2.0"; then
AC_DEFINE([GTK_API_VERSION_2], [1], [ ])
fi
if test "$enable_webkit2" = "yes"; then
AC_DEFINE([ENABLE_PLUGIN_PROCESS], [1], [ ])
if test "$have_gtk_unix_printing" = "yes"; then
AC_DEFINE([HAVE_GTK_UNIX_PRINTING], [1], [Define if GTK+ UNIX Printing is available])
fi
fi
if test "$os_win32" = "yes"; then
AC_DEFINE([XP_WIN], [1], [ ])
AC_DEFINE([UNICODE], [1], [ ])
AC_DEFINE([_UNICODE], [1], [ ])
else
AC_DEFINE([XP_UNIX], [1], [ ])
fi
if test "$with_target" = "x11"; then
AC_DEFINE([MOZ_X11], [1], [ ])
AC_DEFINE([WTF_PLATFORM_X11], [1], [Define if target is X11])
fi
if test "$with_unicode_backend" = "icu"; then
AC_DEFINE([WTF_USE_ICU_UNICODE], [1], [ ])
else
AC_DEFINE([WTF_USE_GLIB_UNICODE], [1], [ ])
fi
if test "$enable_fast_malloc" = "no"; then
AC_DEFINE([WTF_SYSTEM_MALLOC], [1], [ ])
fi
if test "$enable_opcode_stats" = "yes"; then
AC_DEFINE([ENABLE_OPCODE_STATS], [1], [Define to enable Opcode statistics])
fi
if test "$enable_introspection" = "yes"; then
AC_DEFINE([ENABLE_INTROSPECTION], [1], [Define to enable GObject introspection support])
fi
if test "$have_gstreamer" = "yes"; then
AC_DEFINE([WTF_USE_GSTREAMER], [1], [ ])
if test "$enable_debug_features" = "yes"; then
AC_DEFINE([GST_DISABLE_DEPRECATED], [1], [ ])
fi
if test "$enable_video" = "yes"; then
AC_DEFINE([WTF_USE_NATIVE_FULLSCREEN_VIDEO], [1], [ ])
fi
fi
if test "$GST_API_VERSION" = "1.0"; then
AC_DEFINE([GST_API_VERSION_1], [1], [Using GStreamer 1.0])
fi
if test "$enable_web_audio" = "yes"; then
AC_DEFINE([WTF_USE_WEBAUDIO_GSTREAMER], [1], [1])
fi
if test "$enable_accelerated_compositing" = "yes"; then
AC_DEFINE([WTF_USE_ACCELERATED_COMPOSITING], [1], [ ])
AC_DEFINE([ENABLE_3D_RENDERING], [1], [ ])
if test "$with_acceleration_backend" = "none"; then
AC_DEFINE([DWTF_USE_TEXTURE_MAPPER], [1], [ ])
AC_DEFINE([DWTF_USE_TEXTURE_MAPPER_CAIRO], [1], [ ])
fi
if test "$with_acceleration_backend" = "opengl"; then
AC_DEFINE([WTF_USE_TEXTURE_MAPPER], [1], [ ])
AC_DEFINE([WTF_USE_TEXTURE_MAPPER_GL], [1], [ ])
fi
if test "$with_acceleration_backend" = "clutter"; then
AC_DEFINE([WTF_USE_CLUTTER], [1], [ ])
fi
fi
if test "$with_acceleration_backend" = "opengl"; then
AC_DEFINE([WTF_USE_OPENGL], [1], [ ])
fi
if test "$enable_glx" = "yes"; then
AC_DEFINE([WTF_USE_GLX], [1], [ ])
fi
if test "$enable_egl" = "yes"; then
AC_DEFINE([WTF_USE_EGL], [1], [ ])
fi
if test "$enable_gles2" = "yes"; then
AC_DEFINE([WTF_USE_OPENGL_ES_2], [1], [ ])
fi
if test "$enable_spellcheck" = "yes"; then
AC_DEFINE([ENABLE_SPELLCHECK], [1], [ ])
fi
#######################################################################################
# ATTENTION #
# Please refer to the following guidelines if you're about to add an Automake #
# conditional that reflects any configuration option you've probably also added. #
# Chances are neither of these changes are required. #
# http://trac.webkit.org/wiki/AddingFeatures#ActivatingafeatureforAutotoolsbasedports #
#######################################################################################
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AM_PROG_CC_C_O
AM_CONDITIONAL([GTK_API_VERSION_2],[test "$GTK_API_VERSION" = "2.0"])
# For the moment we need to check whether or not indexed database is
# enabled because it determines if we build leveldb or not.
AM_WEBKIT_FEATURE_CONDITIONAL([ENABLE_INDEXED_DATABASE])
# OS conditionals.
AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])
AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"])
AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
AM_CONDITIONAL([OS_GNU],[test "$os_gnu" = "yes"])
AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
# Target conditionals.
AM_CONDITIONAL([TARGET_X11], [test "$with_target" = "x11"])
AM_CONDITIONAL([TARGET_WIN32], [test "$with_target" = "win32"])
AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"])
AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"])
# Unicode backend conditionals.
AM_CONDITIONAL([USE_ICU_UNICODE], [test "$with_unicode_backend" = "icu"])
AM_CONDITIONAL([USE_GLIB_UNICODE], [test "$with_unicode_backend" = "glib"])
# GStreamer feature conditionals.
AM_CONDITIONAL([USE_GSTREAMER], [test "$have_gstreamer" = "yes"])
AM_CONDITIONAL([USE_WEBAUDIO_GSTREAMER], [test "$enable_web_audio" = "yes"])
# ATSPI2 conditional.
AM_CONDITIONAL([HAVE_ATSPI2], [test "$have_atspi2" = "yes"])
# Accelerated compositing conditionals.
AM_CONDITIONAL([USE_ACCELERATED_COMPOSITING], [test "$enable_accelerated_compositing" = "yes"])
AM_CONDITIONAL([USE_TEXTURE_MAPPER_CAIRO],
[test "$enable_accelerated_compositing" = "yes" && test "$with_acceleration_backend" = "none"])
AM_CONDITIONAL([USE_TEXTURE_MAPPER_GL],
[test "$enable_accelerated_compositing" = "yes" && test "$with_acceleration_backend" = "opengl"])
AM_CONDITIONAL([USE_CLUTTER], [test "$with_acceleration_backend" = "clutter"])
# These are the same for now, but they will soon be separate.
AM_CONDITIONAL([USE_OPENGL], [test "$with_acceleration_backend" = "opengl"])
AM_CONDITIONAL([USE_EGL], [test "$enable_egl" = "yes"])
AM_CONDITIONAL([USE_GLES2], [test "$enable_gles2" = "yes"])
AM_CONDITIONAL([USE_GLX], [test "$enable_glx" = "yes"])
# WebKit feature conditionals.
AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug_features" = "yes"])
AM_CONDITIONAL([ENABLE_WEBGL],[test "$enable_webgl" = "yes"])
AM_CONDITIONAL([ENABLE_GAMEPAD],[test "$enable_gamepad" = "yes"])
AM_CONDITIONAL([ENABLE_XSLT],[test "$enable_xslt" = "yes"])
AM_CONDITIONAL([ENABLE_GEOLOCATION], [test "$enable_geolocation" = "yes"])
AM_CONDITIONAL([ENABLE_VIDEO],[test "$enable_video" = "yes"])
AM_CONDITIONAL([ENABLE_MEDIA_STREAM],[test "$enable_media_stream" = "yes"])
AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"])
AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"])
AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"])
AM_CONDITIONAL([ENABLE_WEB_AUDIO],[test "$enable_web_audio" = "yes"])
AM_CONDITIONAL([ENABLE_OPCODE_STATS],[test "$enable_opcode_stats" = "yes"])
AM_CONDITIONAL([ENABLE_WEBKIT1],[test "$enable_webkit1" = "yes"])
AM_CONDITIONAL([ENABLE_WEBKIT2],[test "$enable_webkit2" = "yes"])
AM_CONDITIONAL([ENABLE_SPELLCHECK],[test "$enable_spellcheck" = "yes"])
AM_CONDITIONAL([ENABLE_CSS_FILTERS],[test "$enable_css_filters" = "yes"])
AM_CONDITIONAL([ENABLE_CSS_SHADERS],[test "$enable_css_shaders" = "yes"])
# Introspection conditional.
AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"])