2010-05-28 22:42:21 -07:00
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2010-08-15 23:58:07 -07:00
m4_define([v_maj], [1])
2012-07-09 03:20:21 -07:00
m4_define([v_min], [6])
2012-04-25 21:51:32 -07:00
m4_define([v_mic], [99])
2011-12-13 00:53:37 -08:00
m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v '\(export\|Unversioned directory\)' || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n']))
2010-06-03 18:04:24 -07:00
m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))])
2010-05-28 22:42:21 -07:00
##-- When released, remove the dnl on the below line
2012-04-25 21:51:32 -07:00
dnl m4_undefine([v_rev])
2010-05-28 22:42:21 -07:00
##-- When doing snapshots - change soname. remove dnl on below line
2010-08-15 23:58:07 -07:00
dnl m4_define([relname], [ver-pre-svn-07])
dnl m4_define([v_rel], [-release relname])
2010-05-28 22:42:21 -07:00
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2010-08-15 23:58:07 -07:00
m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])], [m4_define([v_ver], [v_maj.v_min.v_mic])])
2011-03-27 11:07:42 -07:00
m4_define([lt_cur], m4_eval(v_maj + v_min))
m4_define([lt_rev], v_mic)
2010-05-28 22:42:21 -07:00
m4_define([lt_age], v_min)
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2002-11-07 23:46:04 -08:00
2010-03-04 22:23:25 -08:00
# rw_PROG_OBJC_WORKS
# Check whether the Objective C compiler works.
AC_DEFUN([rw_PROG_OBJC_WORKS],
2011-01-28 17:29:21 -08:00
[m4_ifdef([AC_PROG_OBJC], [AC_REQUIRE([AC_PROG_OBJC])dnl
2010-03-04 22:23:25 -08:00
AC_CACHE_CHECK([whether the Objective C compiler works],
[rw_cv_prog_objc_works],
[AC_LANG_PUSH([Objective C])
AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
[rw_cv_prog_objc_works=yes],
[rw_cv_prog_objc_works=no])
2011-01-28 17:29:21 -08:00
AC_LANG_POP([Objective C])])], [rw_cv_prog_objc_works=no])
2010-03-04 22:23:25 -08:00
])
2012-04-25 21:35:43 -07:00
AC_INIT([evas], [v_ver], [enlightenment-devel@lists.sourceforge.net])
2009-05-15 01:25:44 -07:00
AC_PREREQ([2.52])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_MACRO_DIR([m4])
2011-01-06 10:32:20 -08:00
AC_CONFIG_HEADERS([config.h])
AH_TOP([
#ifndef EFL_CONFIG_H__
#define EFL_CONFIG_H__
])
AH_BOTTOM([
#endif /* EFL_CONFIG_H__ */
])
2007-11-04 01:21:50 -08:00
2009-10-06 09:54:43 -07:00
AM_INIT_AUTOMAKE([1.6 dist-bzip2])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
2002-11-07 23:46:04 -08:00
2011-01-06 10:32:20 -08:00
AC_GNU_SOURCE
2007-11-04 01:21:50 -08:00
AC_LIBTOOL_WIN32_DLL
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
AC_PROG_LIBTOOL
2010-05-28 22:42:21 -07:00
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
m4_ifdef([v_rel], , [m4_define([v_rel], [])])
AC_DEFINE_UNQUOTED(VMAJ, [v_maj], [Major version])
AC_DEFINE_UNQUOTED(VMIN, [v_min], [Minor version])
AC_DEFINE_UNQUOTED(VMIC, [v_mic], [Micro version])
AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison])
2011-03-27 11:07:42 -07:00
version_info="lt_cur:lt_rev:lt_age"
2010-05-28 22:42:21 -07:00
release_info="v_rel"
2007-11-04 01:21:50 -08:00
AC_SUBST(version_info)
2010-05-28 22:42:21 -07:00
AC_SUBST(release_info)
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2010-07-08 23:10:55 -07:00
VMAJ=v_maj
AC_SUBST(VMAJ)
2009-05-13 11:56:32 -07:00
2009-06-27 06:07:00 -07:00
### Needed information
2011-01-06 10:32:20 -08:00
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
2009-05-13 11:56:32 -07:00
case "$host_os" in
2011-09-28 23:26:03 -07:00
mingw32ce*)
2009-05-13 11:56:32 -07:00
MODULE_ARCH="$host_os-$host_cpu"
;;
*)
2010-08-15 23:58:07 -07:00
MODULE_ARCH="$host_os-$host_cpu-v_maj.v_min.v_mic"
2009-05-13 11:56:32 -07:00
;;
esac
AC_SUBST(MODULE_ARCH)
AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
2007-11-04 01:21:50 -08:00
2009-02-28 03:47:43 -08:00
want_fontconfig="auto"
2009-05-19 20:14:29 -07:00
want_fribidi="auto"
2011-01-30 02:34:56 -08:00
want_harfbuzz="auto"
2011-04-22 04:47:14 -07:00
want_pixman="no"
2009-06-27 06:07:00 -07:00
want_evas_cserve="yes"
2012-05-03 14:01:31 -07:00
want_evas_cserve2="yes"
2009-02-28 03:47:43 -08:00
2008-11-23 22:18:31 -08:00
want_evas_engine_buffer="yes"
2009-07-14 14:16:08 -07:00
want_evas_engine_software_xlib="no"
2008-11-23 22:18:31 -08:00
want_evas_engine_software_xcb="no"
2009-04-22 20:20:51 -07:00
want_evas_engine_software_gdi="no"
2008-11-23 22:18:31 -08:00
want_evas_engine_software_ddraw="no"
2010-07-27 17:16:06 -07:00
want_evas_engine_software_8_x11="no"
2008-11-23 22:18:31 -08:00
want_evas_engine_software_16_x11="no"
want_evas_engine_software_16_wince="no"
2011-09-06 23:53:28 -07:00
want_evas_engine_software_16_sdl="no"
2011-07-07 17:17:52 -07:00
want_evas_engine_gl_xlib="no"
want_evas_engine_gl_xcb="no"
want_evas_engine_gl_sdl="no"
2011-11-11 01:57:15 -08:00
want_evas_engine_gl_cocoa="no"
2011-07-07 17:17:52 -07:00
want_evas_engine_direct3d="no"
want_evas_engine_fb="no"
want_evas_engine_directfb="no"
2011-11-05 10:49:37 -07:00
want_evas_engine_psl1ght="no"
2011-12-14 10:44:20 -08:00
want_evas_engine_wayland_shm="no"
2011-12-26 15:13:52 -08:00
want_evas_engine_wayland_egl="no"
2008-11-23 22:18:31 -08:00
want_evas_image_loader_edb="yes"
want_evas_image_loader_eet="yes"
want_evas_image_loader_gif="yes"
want_evas_image_loader_jpeg="yes"
want_evas_image_loader_pmaps="yes"
want_evas_image_loader_png="yes"
want_evas_image_loader_svg="yes"
want_evas_image_loader_tiff="yes"
want_evas_image_loader_xpm="yes"
2010-05-30 06:04:34 -07:00
want_evas_image_loader_bmp="yes"
2010-05-30 10:48:19 -07:00
want_evas_image_loader_tga="yes"
2011-02-01 01:38:48 -08:00
want_evas_image_loader_wbmp="yes"
2011-03-11 07:07:25 -08:00
want_evas_image_loader_ico="yes"
2011-04-24 12:45:43 -07:00
want_evas_image_loader_psd="yes"
2011-04-25 18:03:06 -07:00
want_evas_image_loader_generic="yes"
2008-11-23 22:18:31 -08:00
want_evas_font_loader_eet="yes"
case "$host_os" in
2011-09-28 23:26:03 -07:00
mingw32ce*)
2009-02-28 03:47:43 -08:00
want_fontconfig="no"
2008-11-23 22:18:31 -08:00
want_evas_engine_software_16_wince="yes"
want_evas_image_loader_edb="no"
want_evas_image_loader_gif="no"
want_evas_image_loader_svg="no"
want_evas_image_loader_tiff="no"
;;
mingw*)
2009-04-22 20:20:51 -07:00
want_evas_engine_software_gdi="yes"
2008-11-23 22:18:31 -08:00
want_evas_engine_software_ddraw="yes"
2009-03-24 00:44:54 -07:00
want_evas_engine_direct3d="yes"
2008-11-23 22:18:31 -08:00
want_evas_image_loader_edb="no"
want_evas_image_loader_svg="no"
;;
2009-01-11 00:00:06 -08:00
darwin*)
2009-07-14 14:16:08 -07:00
want_evas_engine_software_xlib="auto"
2011-11-02 11:23:54 -07:00
want_evas_engine_gl_cocoa="auto"
2009-01-11 00:00:06 -08:00
;;
2008-11-23 22:18:31 -08:00
*)
2009-07-14 14:16:08 -07:00
want_evas_engine_software_xlib="auto"
2011-07-07 17:17:52 -07:00
want_evas_engine_gl_xlib="auto"
want_evas_engine_software_xcb="no"
want_evas_engine_gl_xcb="no"
2010-09-25 20:39:18 -07:00
want_evas_engine_fb="auto"
2011-12-26 15:13:52 -08:00
want_evas_engine_wayland_shm="auto"
want_evas_engine_wayland_egl="auto"
2010-09-28 15:43:24 -07:00
### no - not ready/usable/complete
# want_evas_engine_software_8_x11="auto"
# want_evas_engine_software_16_x11="auto"
2008-11-23 22:18:31 -08:00
;;
esac
2011-11-05 10:49:37 -07:00
case "$host_vendor" in
ps3*)
want_evas_engine_psl1ght="static"
;;
esac
2009-09-27 12:57:01 -07:00
requirement_evas=""
2002-11-07 23:46:04 -08:00
2009-06-27 06:07:00 -07:00
### Additional options to configure
# when used, that option makes configure script fails when
# a requirement is selected, but not met.
use_strict="no"
AC_ARG_ENABLE([strict],
AC_HELP_STRING([--enable-strict], [enable strict checking mode. @<:@default==disabled@:>@]),
[use_strict="yes"],
[use_strict="no"])
# Simple X11 build/link
AC_ARG_ENABLE([simple-x11],
AC_HELP_STRING([--enable-simple-x11], [enable simple x11 linking]),
[
if test "x${enableval}" = "xyes" ; then
want_evas_simple_x11="yes"
else
want_evas_simple_x11="no"
fi
])
### Checks for programs
2010-03-04 22:23:25 -08:00
2009-12-11 02:54:57 -08:00
m4_ifdef([AC_PROG_OBJC],
[
AC_PROG_OBJC
_AM_DEPENDENCIES(OBJC)
],
[
2011-01-28 17:29:21 -08:00
dnl#AC_CHECK_TOOL([OBJC], [gcc])
dnl#AC_SUBST([OBJC])
dnl#AC_SUBST([OBJCFLAGS])
2010-03-04 22:23:25 -08:00
])
rw_PROG_OBJC_WORKS
2009-06-27 06:07:00 -07:00
AC_PROG_CXX
AC_PROG_CC
# pkg-config
2008-03-14 09:49:49 -07:00
PKG_PROG_PKG_CONFIG
2009-09-27 12:57:01 -07:00
# Check whether pkg-config supports Requires.private
if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
pkgconfig_requires_private="Requires.private"
else
pkgconfig_requires_private="Requires"
fi
AC_SUBST(pkgconfig_requires_private)
2009-06-27 06:07:00 -07:00
# doxygen program for documentation building
EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
### Checks for libraries
# Evil library for compilation on Windows CE
2008-12-03 14:21:40 -08:00
2007-02-10 09:23:09 -08:00
case "$host_os" in
2011-09-28 23:26:03 -07:00
mingw*)
2011-11-16 09:48:50 -08:00
PKG_CHECK_MODULES([EVIL], [evil >= 1.0.0])
2009-09-27 12:57:01 -07:00
AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed])
requirement_evas="evil ${requirement_evas}"
2009-06-27 06:07:00 -07:00
;;
2007-02-10 09:23:09 -08:00
esac
2012-02-24 03:21:57 -08:00
### Checks for portability layer
PKG_CHECK_MODULES([EXOTIC],
[exotic],
[enable_exotic="yes"],
[enable_exotic="no"])
if test "x${enable_exotic}" = "xyes"; then
2012-02-24 06:07:57 -08:00
requirement_evas="exotic ${requirement_evas}"
2012-02-24 03:21:57 -08:00
AC_DEFINE([HAVE_EXOTIC], [1], [Define to 1 if you have Exotic.])
fi
AM_CONDITIONAL([EVAS_HAVE_EXOTIC], [test "x${enable_exotic}" = "xyes"])
2009-06-27 06:07:00 -07:00
## strong dependencies
2002-11-07 23:46:04 -08:00
2009-06-27 06:07:00 -07:00
# Eina
2012-07-09 03:20:21 -07:00
PKG_CHECK_MODULES([EINA], [eina >= 1.6.0])
2011-05-02 06:24:26 -07:00
CPPFLAGS_SAVE="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $EINA_CFLAGS"
AC_CHECK_SIZEOF(Eina_Unicode,, [#include <Eina.h>])
CPPFLAGS="$CPPFLAGS_SAVE"
2007-12-06 01:36:06 -08:00
2009-06-27 06:07:00 -07:00
# Freetype
2011-04-23 15:37:42 -07:00
PKG_CHECK_MODULES([FREETYPE], [freetype2 >= 9.3.0])
2009-05-01 00:11:07 -07:00
2012-07-09 03:20:21 -07:00
requirement_evas="freetype2 eina >= 1.6.0 ${requirement_evas}"
2009-09-27 12:57:01 -07:00
2009-06-27 06:07:00 -07:00
## optional dependencies
2009-05-08 14:34:38 -07:00
2009-06-27 06:07:00 -07:00
# FontConfig
have_fontconfig="no"
AC_ARG_ENABLE([fontconfig],
AC_HELP_STRING([--disable-fontconfig],
[disable fontconfig for finding fonts. @<:@default=enabled@:>@]),
[
if test "x${enableval}" = "xyes" ; then
want_fontconfig="yes"
else
want_fontconfig="no"
fi
])
2009-05-01 00:11:07 -07:00
2009-05-19 20:14:29 -07:00
2009-06-27 06:07:00 -07:00
if test "x${want_fontconfig}" = "xyes" -o "x${want_fontconfig}" = "xauto" ; then
PKG_CHECK_MODULES([FONTCONFIG],
2011-09-08 11:37:29 -07:00
[fontconfig >= 2.5.0],
2009-06-27 06:07:00 -07:00
[
have_fontconfig="yes"
AC_DEFINE(HAVE_FONTCONFIG, 1, [have fontconfig searching capabilities])
2009-09-27 12:57:01 -07:00
requirement_evas="fontconfig ${requirement_evas}"
2009-06-27 06:07:00 -07:00
],
[
if test "x${want_fontconfig}" = "xyes" -a "x${use_strict}" = "xyes" ; then
AC_MSG_ERROR([Fontconfig not found (strict dependencies checking)])
fi
])
fi
2011-05-05 04:05:44 -07:00
# linebreak
have_linebreak="no"
want_linebreak="yes"
AC_ARG_ENABLE([liblinebreak],
AC_HELP_STRING([--disable-liblinebreak],
[disable linking against liblinebreak. @<:@default=enabled@:>@]),
[
if test "x${enableval}" = "xyes" ; then
want_linebreak="yes"
else
want_linebreak="no"
fi
])
AM_CONDITIONAL(EVAS_USE_LINEBREAK, test "x${want_linebreak}" = "xyes")
if test "x${want_linebreak}" = "xyes" ; then
have_linebreak="yes"
LINEBREAK_CFLAGS='-I$(top_srcdir)/src/static_deps/liblinebreak'
LINEBREAK_LIBS='$(top_builddir)/src/static_deps/liblinebreak/liblinebreak.la'
AC_SUBST(LINEBREAK_CFLAGS)
AC_SUBST(LINEBREAK_LIBS)
AC_DEFINE(HAVE_LINEBREAK, 1, [have liblinebreak support])
else
have_linebreak="no"
fi
2009-06-27 06:07:00 -07:00
# fribidi support
2009-05-19 20:14:29 -07:00
have_fribidi="no"
2009-06-27 06:07:00 -07:00
AC_ARG_ENABLE([fribidi],
AC_HELP_STRING([--disable-fribidi],
[disable bidirectional text support. @<:@default=enabled@:>@]),
[
if test "x${enableval}" = "xyes" ; then
want_fribidi="yes"
else
want_fribidi="no"
fi
])
2009-05-19 20:14:29 -07:00
2009-06-27 06:07:00 -07:00
if test "x${want_fribidi}" = "xyes" -o "x${want_fribidi}" = "xauto" ; then
PKG_CHECK_MODULES([FRIBIDI],
2010-07-28 05:00:41 -07:00
[fribidi >= 0.19.2],
2009-06-27 06:07:00 -07:00
[
have_fribidi="yes"
AC_DEFINE(HAVE_FRIBIDI, 1, [have fribidi support])
2009-09-27 12:57:01 -07:00
requirement_evas="fribidi ${requirement_evas}"
2011-05-02 06:24:26 -07:00
CPPFLAGS_SAVE="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $FRIBIDI_CFLAGS"
AC_CHECK_SIZEOF(FriBidiChar,, [#include <fribidi/fribidi.h>])
CPPFLAGS="$CPPFLAGS_SAVE"
2009-06-27 06:07:00 -07:00
],
[
if test "x$want_fribidi" = "xyes" -a "x$use_strict" = "xyes" ; then
AC_MSG_ERROR([Fribidi not found (strict dependencies checking)])
fi
])
2009-05-19 20:14:29 -07:00
fi
2009-06-27 06:07:00 -07:00
if test "x${have_fribidi}" = "xno"; then
2009-05-19 20:14:29 -07:00
HAS_BIDI=0
fi
2007-12-06 01:36:06 -08:00
2011-01-30 02:34:56 -08:00
# harfbuzz support
have_harfbuzz="no"
2011-01-30 02:36:24 -08:00
have_harfbuzz_ft="no"
2011-01-30 02:34:56 -08:00
AC_ARG_ENABLE([harfbuzz],
AC_HELP_STRING([--disable-harfbuzz],
[disable complex text shaping and layouting support. @<:@default=enabled@:>@]),
[
if test "x${enableval}" = "xyes" ; then
want_harfbuzz="yes"
else
want_harfbuzz="no"
fi
])
if test "x${want_harfbuzz}" = "xyes" -o "x${want_harfbuzz}" = "xauto" ; then
PKG_CHECK_MODULES([HARFBUZZ],
2012-06-21 04:14:35 -07:00
[harfbuzz >= 0.9.0],
2011-01-30 02:34:56 -08:00
[
have_harfbuzz="yes"
requirement_evas="harfbuzz ${requirement_evas}"
],
[
if test "x$want_harfbuzz" = "xyes" -a "x$use_strict" = "xyes" ; then
AC_MSG_ERROR([Harfbuzz not found (strict dependencies checking)])
fi
])
2011-01-30 02:36:24 -08:00
if test "x$have_harfbuzz" = "xyes" ; then
CPPFLAGS_SAVE="$CPPFLAGS"
2011-01-30 02:42:01 -08:00
CPPFLAGS="$CPPFLAGS $HARFBUZZ_CFLAGS $FREETYPE_CFLAGS"
2011-01-30 02:36:24 -08:00
# must have for usage with harfbuzz although harfbuzz may not have it.
AC_CHECK_HEADER(hb-ft.h,
[
have_harfbuzz_ft="yes"
2011-01-30 02:42:01 -08:00
#Depend on harfbuzz ft for harfbuzz support
AC_DEFINE(HAVE_HARFBUZZ, 1, [have harfbuzz support])
2011-01-30 02:36:24 -08:00
],
[
if test "x$want_harfbuzz" = "xyes" -a "x$use_strict" = "xyes" ; then
AC_MSG_ERROR([Harfbuzz-ft not found (strict dependencies checking)])
fi
have_harfbuzz="no"
])
CPPFLAGS="$CPPFLAGS_SAVE"
fi
2011-01-30 02:34:56 -08:00
fi
if test "x${have_harfbuzz}" = "xno"; then
HAS_HARFBUZZ=0
fi
2011-04-22 04:47:14 -07:00
# Pixman
have_pixman="no"
AC_ARG_ENABLE([pixman],
2011-12-23 03:50:29 -08:00
AC_HELP_STRING([--enable-pixman],
[enable pixman for software rendering. @<:@default=enabled@:>@]),
2011-04-22 04:47:14 -07:00
[
if test "x${enableval}" = "xyes" ; then
want_pixman="yes"
else
want_pixman="no"
fi
])
if test "x${want_pixman}" = "xyes" -o "x${want_pixman}" = "xauto" ; then
PKG_CHECK_MODULES([PIXMAN],
[pixman-1],
[
have_pixman="yes"
AC_DEFINE(HAVE_PIXMAN, 1, [have pixman for rendering])
requirement_evas="pixman-1 ${requirement_evas}"
],
[
if test "x${want_pixman}" = "xyes" -a "x${use_strict}" = "xyes" ; then
AC_MSG_ERROR([Pixman not found (strict dependencies checking)])
fi
])
fi
2011-12-23 03:50:29 -08:00
have_pixman_font="no"
AC_ARG_ENABLE(pixman-font,
AC_HELP_STRING([--enable-pixman-font], [Allow pixman to render fonts]),
[
have_pixman_font="yes"
AC_DEFINE(PIXMAN_FONT, 1, [Allow pixman to render fonts])
]
)
have_pixman_rect="no"
AC_ARG_ENABLE(pixman-rect,
AC_HELP_STRING([--enable-pixman-rect], [Allow pixman to render rects]),
[
have_pixman_rect="yes"
AC_DEFINE(PIXMAN_RECT, 1, [Allow pixman to render rects])
]
)
have_pixman_line="no"
AC_ARG_ENABLE(pixman-line,
AC_HELP_STRING([--enable-pixman-line], [Allow pixman to render lines]),
[
have_pixman_line="yes"
AC_DEFINE(PIXMAN_LINE, 1, [Allow pixman to render lines])
]
)
have_pixman_poly="no"
AC_ARG_ENABLE(pixman-poly,
AC_HELP_STRING([--enable-pixman-poly], [Allow pixman to render polys]),
[
have_pixman_poly="yes"
AC_DEFINE(PIXMAN_POLY, 1, [Allow pixman to render polys])
]
)
have_pixman_image="no"
AC_ARG_ENABLE(pixman-image,
AC_HELP_STRING([--enable-pixman-image], [Allow pixman to render images]),
[
have_pixman_image="yes"
AC_DEFINE(PIXMAN_IMAGE, 1, [Allow pixman to render images])
]
)
have_pixman_image_scale_sample="no"
AC_ARG_ENABLE(pixman-image-scale-sample,
AC_HELP_STRING([--enable-pixman-image-scale-sample], [Allow pixman to render sampled scaled images]),
[
have_pixman_image_scale_sample="yes"
AC_DEFINE(PIXMAN_IMAGE_SCALE_SAMPLE, 1, [Allow pixman to render image sampled scaling])
]
)
have_tile_rotate="no"
AC_ARG_ENABLE(tile-rotate,
AC_HELP_STRING([--enable-tile-rotate], [Enable tiled rotate algorithm]),
[
have_tile_rotate="yes"
AC_DEFINE(TILE_ROTATE, 1, [Enable tiled rotate algorithm])
]
)
2009-06-27 06:07:00 -07:00
### Checks for header files
AC_HEADER_STDC
2011-12-05 06:00:53 -08:00
AC_CHECK_HEADERS([unistd.h stdint.h sys/param.h netinet/in.h sys/mman.h])
2011-01-06 10:32:20 -08:00
EFL_CHECK_PATH_MAX
2009-06-27 06:07:00 -07:00
### Checks for types
2011-09-18 14:57:17 -07:00
AC_CHECK_TYPES([struct sigaction], [], [],
[[#include <signal.h>]])
2007-12-15 19:37:03 -08:00
2006-03-18 20:29:57 -08:00
2009-06-27 06:07:00 -07:00
### Checks for structures
2007-03-23 15:25:12 -07:00
2006-03-18 20:29:57 -08:00
2009-06-27 06:07:00 -07:00
### Checks for compiler characteristics
AC_C_CONST
AC_C_BIGENDIAN
2011-11-04 13:28:56 -07:00
AC_PROG_CC_STDC
2011-09-28 23:26:03 -07:00
EFL_ATTRIBUTE_UNUSED
EFL_ATTRIBUTE_VECTOR
2011-09-29 19:35:45 -07:00
EFL_ATTRIBUTE_ALWAYS_INLINE
2006-03-18 20:29:57 -08:00
2009-06-27 06:07:00 -07:00
### Checks for linker characteristics
lt_enable_auto_import=""
case "${host_os}" in
2011-09-28 23:26:03 -07:00
mingw*)
2009-06-27 06:07:00 -07:00
AC_DEFINE(EFL_EVAS_BUILD, 1, [Define to mention that evas is built])
lt_enable_auto_import="-Wl,--enable-auto-import"
;;
esac
AC_SUBST(lt_enable_auto_import)
### Checks for library functions
2011-01-06 10:32:20 -08:00
AC_ISC_POSIX
2011-09-18 14:57:17 -07:00
AC_CHECK_FUNCS([siglongjmp])
2011-01-06 10:32:20 -08:00
2009-06-27 06:07:00 -07:00
# alloca
AC_FUNC_ALLOCA
# fnmatch
2010-02-03 12:57:36 -08:00
EFL_CHECK_FNMATCH([], [AC_MSG_ERROR([Cannot find fnmatch()])])
2009-06-27 06:07:00 -07:00
2010-01-13 15:44:06 -08:00
# dlopen
dlopen_libs=""
case "$host_os" in
2011-09-28 23:26:03 -07:00
mingw32ce*)
2010-01-13 15:44:06 -08:00
# managed by evil
2011-10-15 02:31:04 -07:00
AC_DEFINE(HAVE_DLSYM)
2010-01-13 15:44:06 -08:00
;;
mingw*)
# nothing on mingw platform
;;
*)
2011-10-15 02:31:04 -07:00
AC_CHECK_FUNCS(dlsym, res=yes, res=no)
2010-01-13 15:44:06 -08:00
if test "x$res" = "xyes"; then
2011-10-15 02:31:04 -07:00
AC_DEFINE(HAVE_DLSYM)
2010-01-13 15:44:06 -08:00
else
2011-10-15 02:31:04 -07:00
AC_CHECK_LIB(dl, dlsym, res=yes, res=no)
2010-01-13 15:44:06 -08:00
if test "x$res" = "xyes"; then
dlopen_libs=-ldl
2011-10-15 02:31:04 -07:00
AC_DEFINE(HAVE_DLSYM)
2010-01-13 15:44:06 -08:00
else
2011-10-15 02:31:04 -07:00
want_evas_engine_gl_xlib="no"
want_evas_engine_gl_xcb="no"
want_evas_engine_gl_sdl="no"
2010-01-13 15:44:06 -08:00
fi
fi
esac
AC_SUBST(dlopen_libs)
2011-10-12 23:15:28 -07:00
res=no
AC_CHECK_LIB(m, lround, res=yes, res=no)
if test "x$res" = "xyes"; then
AC_DEFINE(HAVE_LROUND, 1, C99 lround function exists)
fi
2012-03-25 09:39:04 -07:00
if test "x${want_evas_image_loader_generic}" = "xyes" ; then
EFL_CHECK_SHM_OPEN
fi
2011-04-25 18:03:06 -07:00
2009-06-27 06:07:00 -07:00
# (shm_open (for cache server)
AC_ARG_ENABLE([evas-cserve],
AC_HELP_STRING([--disable-evas-cserve],
[disable shared cache server support. @<:@default=enabled@:>@]),
[
if test "x${enableval}" = "xyes" ; then
want_evas_cserve="yes"
else
want_evas_cserve="no"
fi
])
AC_MSG_CHECKING(whether to build shared cache server and support)
AC_MSG_RESULT(${want_evas_cserve})
2007-05-26 23:43:23 -07:00
2012-05-03 14:01:31 -07:00
# (shm_open (for cache server)
AC_ARG_ENABLE([evas-cserve2],
AC_HELP_STRING([--disable-evas-cserve2],
[disable shared cache server 2 support. @<:@default=enabled@:>@]),
[
if test "x${enableval}" = "xyes" ; then
want_evas_cserve2="yes"
else
want_evas_cserve2="no"
fi
])
AC_MSG_CHECKING(whether to build shared cache server 2 and support)
AC_MSG_RESULT(${want_evas_cserve2})
2012-05-04 10:57:01 -07:00
# cserve2 only works on Linux so far.
if test "x${want_evas_cserve2}" = "xyes" ; then
AC_CHECK_HEADERS(
[sys/epoll.h sys/inotify.h sys/signalfd.h],
[],
[
want_evas_cserve2="no"
]
)
fi
2012-05-03 14:01:31 -07:00
if test "x${want_evas_cserve2}" = "xyes"; then
want_evas_cserve="no"
fi
2012-03-25 10:40:44 -07:00
shm_open_libs=""
2012-05-03 14:01:31 -07:00
if test "x${want_evas_cserve}" = "xyes" -o "x${want_evas_cserve2}" = "xyes" ; then
2012-03-25 10:40:44 -07:00
EFL_CHECK_SHM_OPEN(
[
shm_open_libs=${EFL_SHM_OPEN_LIBS}
],
2012-05-03 14:01:31 -07:00
[
want_evas_cserve="no"
want_evas_cserve2="no"
])
2009-06-27 06:07:00 -07:00
fi
2012-03-25 10:40:44 -07:00
AC_SUBST([shm_open_libs])
2009-06-27 06:07:00 -07:00
if test "x${want_evas_cserve}" = "xyes" ; then
2012-03-25 09:39:04 -07:00
AC_DEFINE(EVAS_CSERVE, 1, [Shared cache server.])
2007-05-26 23:43:23 -07:00
fi
2009-06-27 06:07:00 -07:00
AM_CONDITIONAL([EVAS_CSERVE], [test "x${want_evas_cserve}" = "xyes"])
2012-05-03 14:01:31 -07:00
if test "x${want_evas_cserve2}" = "xyes" ; then
AC_DEFINE(EVAS_CSERVE2, 1, [Shared cache server.])
fi
AM_CONDITIONAL([EVAS_CSERVE2], [test "x${want_evas_cserve2}" = "xyes"])
2009-06-27 06:07:00 -07:00
2009-10-09 20:46:27 -07:00
#######################################
## GL force flavor gles
gl_flavor_gles="no"
AC_MSG_CHECKING(whether to build GLES flavor of GL)
AC_ARG_ENABLE(gl-flavor-gles,
2012-01-28 05:40:21 -08:00
AC_HELP_STRING([--enable-gl-flavor-gles], [enable gles flavor of gl instead of standard]),
2009-10-09 20:46:27 -07:00
[
if test "x$enableval" = "xyes" ; then
AC_MSG_RESULT(yes)
gl_flavor_gles="yes"
else
AC_MSG_RESULT(no)
gl_flavor_gles="no"
fi
], [
2009-10-11 20:31:24 -07:00
AC_MSG_RESULT(no)
2009-10-09 20:46:27 -07:00
gl_flavor_gles="no"
]
)
2009-10-11 20:31:24 -07:00
#######################################
## GLES variety sgx
gles_variety_sgx="no"
AC_MSG_CHECKING(whether to build GLES variety for SGX)
AC_ARG_ENABLE(gles-variety-sgx,
AC_HELP_STRING([--enable-gles-variety-sgx], [GLES variety SGX 3D unit]),
[
if test "x$enableval" = "xyes" ; then
AC_MSG_RESULT(yes)
AC_DEFINE(GLES_VARIETY_SGX, 1, [Imagination SGX GLES2 support])
gles_variety_sgx="yes"
else
AC_MSG_RESULT(no)
gles_variety_sgx="no"
fi
], [
AC_MSG_RESULT(no)
gles_variety_sgx="no"
]
)
#######################################
## GLES variety s3c6410
gles_variety_s3c6410="no"
AC_MSG_CHECKING(whether to build GLES variety for s3c6410)
AC_ARG_ENABLE(gles-variety-s3c6410,
AC_HELP_STRING([--enable-gles-variety-s3c6410], [GLES variety s3c6410 3D unit]),
[
if test "x$enableval" = "xyes" ; then
AC_MSG_RESULT(yes)
AC_DEFINE(GLES_VARIETY_S3C6410, 1, [Samsung S3c6410 GLES2 support])
gles_variety_s3c6410="yes"
else
AC_MSG_RESULT(no)
gles_variety_s3c6410="no"
fi
], [
AC_MSG_RESULT(no)
gles_variety_s3c6410="no"
]
)
2010-08-17 01:42:37 -07:00
if test "x$gl_flavor_gles" = "xyes"; then
eng=""
if test "x$gles_variety_sgx" = "xyes"; then eng="x"$eng; fi
if test "x$gles_variety_s3c6410" = "xyes"; then eng="x"$eng; fi
if test "x$eng" = "xx"; then
eng=""
else
AC_MSG_ERROR(
[Please enable just 1 OpenGL-ES flavor. Choices are:
--enable-gles-variety-sgx (Most GL-ES2 GPUs with shader compiler)
--enable-gles-variety-s3c6410 (s3c6410 with offline shader compiler)
You will also need to enable the OpenGL engine for X11 with:
2011-07-07 17:17:52 -07:00
--enable-gl-xlib or --enable-gl-xcb
2010-08-17 01:42:37 -07:00
])
fi
fi
2004-01-27 18:07:41 -08:00
#####################################################################
## Engines
2002-11-07 23:46:04 -08:00
2010-07-31 11:50:51 -07:00
EVAS_CHECK_ENGINE([buffer], [${want_evas_engine_buffer}], [yes], [Buffer])
2007-10-08 12:08:42 -07:00
2009-04-22 20:20:51 -07:00
EVAS_CHECK_ENGINE([software-gdi], [${want_evas_engine_software_gdi}], [no], [Software GDI])
2008-11-23 22:18:31 -08:00
EVAS_CHECK_ENGINE([software-ddraw], [${want_evas_engine_software_ddraw}], [no], [Software DirectDraw])
2008-04-23 12:17:59 -07:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_ENGINE([direct3d], [${want_evas_engine_direct3d}], [no], [Direct3D])
2008-04-23 12:17:59 -07:00
2011-11-05 10:49:37 -07:00
EVAS_CHECK_ENGINE([psl1ght], [${want_evas_engine_psl1ght}], [no], [PSL1GHT])
2011-07-07 17:17:52 -07:00
EVAS_CHECK_ENGINE([gl-sdl], [${want_evas_engine_gl_sdl}], [no], [OpenGL SDL])
2010-01-28 18:31:37 -08:00
2011-11-02 11:23:54 -07:00
EVAS_CHECK_ENGINE([gl-cocoa], [${want_evas_engine_gl_cocoa}], [no], [OpenGL Cocoa])
2011-07-07 17:17:52 -07:00
EVAS_CHECK_ENGINE([fb], [${want_evas_engine_fb}], [no], [Framebuffer])
2007-11-04 11:09:19 -08:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_ENGINE([directfb], [${want_evas_engine_directfb}], [no], [DirectFB])
2007-04-29 08:45:40 -07:00
2011-07-07 17:17:52 -07:00
EVAS_CHECK_ENGINE([software-8-x11], [${want_evas_engine_software_8_x11}], [no], [Software X11 8 bits grayscale])
2010-07-27 17:16:06 -07:00
2011-07-07 17:17:52 -07:00
EVAS_CHECK_ENGINE([software-16-x11], [${want_evas_engine_software_16_x11}], [no], [Software X11 16 bits])
2005-03-20 15:44:22 -08:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_ENGINE([software-16-wince], [${want_evas_engine_software_16_wince}], [no], [Software Windows CE 16 bits])
2007-11-04 11:09:19 -08:00
2011-09-06 23:53:28 -07:00
EVAS_CHECK_ENGINE([software-16-sdl], [${want_evas_engine_software_16_sdl}], [no], [Software SDL 16 bits])
2011-12-14 10:44:20 -08:00
EVAS_CHECK_ENGINE([wayland-shm], [${want_evas_engine_wayland_shm}], [no], [Wayland Shm])
2011-12-26 15:13:52 -08:00
EVAS_CHECK_ENGINE([wayland-egl], [${want_evas_engine_wayland_egl}], [no], [Wayland Egl])
2008-11-23 22:18:31 -08:00
# SDL primitive
sdl_primitive="no"
2008-09-19 19:03:22 -07:00
2008-11-23 22:18:31 -08:00
AC_ARG_ENABLE([sdl-primitive],
[AC_HELP_STRING([--enable-sdl-primitive], [])],
[sdl_primitive=${enableval}]
2007-11-04 11:09:19 -08:00
)
2008-11-23 22:18:31 -08:00
AC_MSG_CHECKING([whether to use SDL primitive when possible])
AC_MSG_RESULT([${sdl_primitive}])
2007-08-05 00:22:44 -07:00
2008-11-23 22:18:31 -08:00
if test "x${sdl_primitive}" = "xyes" ; then
AC_DEFINE([ENGINE_SDL_PRIMITIVE], [1], [Use SDL primitive when possible])
2007-08-05 00:22:44 -07:00
fi
2009-06-16 06:01:36 -07:00
# if software generic need to be build as part of libevas.so
have_static_software_generic="no"
AC_ARG_ENABLE([static-software-generic],
[AC_HELP_STRING([--enable-static-software-generic], [Build software generic engine as part of libevas])],
[have_static_software_generic=${enableval}]
)
AC_MSG_CHECKING([Whether to build software generic engine as part of libevas])
AC_MSG_RESULT([${have_static_software_generic}])
2011-03-22 19:45:19 -07:00
if test "x${have_static_module}" = "xyes" -a "x${have_static_software_generic}" = "xno"; then
AC_MSG_WARN([Forcing --enable-static-software-generic as engines must be compiled statically])
have_static_software_generic="yes"
fi
2009-06-16 06:01:36 -07:00
AM_CONDITIONAL(EVAS_STATIC_BUILD_SOFTWARE_GENERIC, test "x${have_static_software_generic}" = "xyes")
if test "x${have_static_software_generic}" = "xyes"; then
AC_DEFINE(EVAS_STATIC_BUILD_SOFTWARE_GENERIC, [1], [Build software generic engine as part of libevas])
fi
2011-07-07 17:17:52 -07:00
######## Software Engine ########
2009-07-14 14:16:08 -07:00
have_evas_engine_software_x11="no"
2011-07-07 17:17:52 -07:00
have_evas_engine_software_xcb="no"
have_evas_engine_software_xlib="no"
build_software_xcb=
## XCB Checks ##
2011-07-09 14:12:43 -07:00
want_xcb="no"
2011-07-07 17:17:52 -07:00
AC_MSG_CHECKING(whether to build Software XCB Engine)
AC_ARG_ENABLE(software-xcb,
2011-07-09 13:34:32 -07:00
AC_HELP_STRING([--enable-software-xcb], [enable Software XCB Engine. @<:@default=disabled@:>@]), [want_xcb=$enableval]
2011-07-07 17:17:52 -07:00
)
2011-07-09 14:12:43 -07:00
if test "x$want_xcb" != "xno" ; then
2011-07-07 17:17:52 -07:00
EVAS_CHECK_ENGINE([software-xcb], [${want_evas_engine_software_xcb}], [no], [Software XCB])
if test "x$have_evas_engine_software_xcb" != "xno" ; then
2011-09-19 22:45:00 -07:00
build_software_xcb="yes"
have_evas_engine_software_x11="yes"
AC_DEFINE_UNQUOTED(BUILD_ENGINE_SOFTWARE_X11, [1], [Build software X11 engine])
AC_DEFINE_UNQUOTED(BUILD_ENGINE_SOFTWARE_XCB, [1], [Build software XCB backend])
2011-07-07 17:17:52 -07:00
fi
2009-07-14 14:16:08 -07:00
else
2011-07-07 17:17:52 -07:00
AC_MSG_RESULT(no)
build_software_xcb="no"
2009-07-14 14:16:08 -07:00
fi
2011-07-07 17:17:52 -07:00
## If we are not building XCB, then we can build XLib ##
if test "x$build_software_xcb" = "xno" ; then
EVAS_CHECK_ENGINE([software-xlib], [${want_evas_engine_software_xlib}], [no], [Software Xlib])
# if software_x11 is available, define everything needed for X11
if test "x$have_evas_engine_software_xlib" != "xno" ; then
have_evas_engine_software_x11="yes"
AC_DEFINE_UNQUOTED(BUILD_ENGINE_SOFTWARE_X11, [1], [Build software X11 engine])
AC_DEFINE_UNQUOTED(BUILD_ENGINE_SOFTWARE_XLIB, [1], [Build software Xlib backend])
fi
else
have_evas_engine_software_xlib="no"
2009-07-14 14:16:08 -07:00
fi
2011-07-09 11:34:13 -07:00
2011-08-08 01:06:38 -07:00
if test "x$have_evas_engine_software_xlib" = "xstatic" -o "x$have_evas_engine_software_xcb" = "xstatic"; then
AC_DEFINE_UNQUOTED(EVAS_STATIC_BUILD_SOFTWARE_X11, [1], [Build software X11 engine as part of libevas])
fi
2011-07-09 11:34:13 -07:00
AC_SUBST(have_evas_engine_software_xcb)
2011-07-07 17:17:52 -07:00
AC_SUBST(have_evas_engine_software_xlib)
AM_CONDITIONAL([BUILD_ENGINE_SOFTWARE_XLIB], [test "x${have_evas_engine_software_xlib}" != "xno"])
AM_CONDITIONAL([BUILD_ENGINE_SOFTWARE_XCB], [test "x${have_evas_engine_software_xcb}" != "xno"])
AM_CONDITIONAL([BUILD_ENGINE_SOFTWARE_X11], [test "x${have_evas_engine_software_x11}" != "xno"])
AM_CONDITIONAL([EVAS_STATIC_BUILD_SOFTWARE_X11], [test "x${have_evas_engine_software_xcb}" = "xstatic" -o "x${have_evas_engine_software_xlib}" = "xstatic"])
AM_CONDITIONAL([EVAS_STATIC_BUILD_SOFTWARE_XLIB], [test "x${have_evas_engine_software_xlib}" = "xstatic"])
AM_CONDITIONAL([EVAS_STATIC_BUILD_SOFTWARE_XCB], [test "x${have_evas_engine_software_xcb}" = "xstatic"])
AC_SUBST(have_evas_engine_software_x11)
2009-07-14 14:16:08 -07:00
2011-07-07 17:17:52 -07:00
######## OpenGL Engine ########
have_evas_engine_gl_x11="no"
2011-07-25 02:30:12 -07:00
have_evas_engine_gl_xcb="no"
build_gl_xcb="no"
2011-07-07 17:17:52 -07:00
## XCB Checks ##
2011-07-25 02:30:12 -07:00
want_gl_xcb="no"
2011-07-07 17:17:52 -07:00
AC_MSG_CHECKING(whether to build OpenGL XCB Engine)
AC_ARG_ENABLE(gl-xcb,
2011-07-09 13:34:32 -07:00
AC_HELP_STRING([--enable-gl-xcb], [enable OpenGL XCB Engine. @<:@default=disabled@:>@]), [want_gl_xcb=$enableval]
2011-07-07 17:17:52 -07:00
)
if test "x$want_gl_xcb" = "xyes" ; then
EVAS_CHECK_ENGINE([gl-xcb], [${want_evas_engine_gl_xcb}], [no], [OpenGL XCB])
if test "x$have_evas_engine_gl_xcb" != "xno" ; then
build_gl_xcb="yes"
have_evas_engine_gl_x11="yes"
AC_DEFINE(BUILD_ENGINE_GL_X11, [1], [Build GL X11 engine])
AC_DEFINE(BUILD_ENGINE_GL_XCB, [1], [Build GL Xcb backend])
if test "x$have_evas_engine_gl_xcb" = "xstatic" ; then
AC_DEFINE(EVAS_STATIC_BUILD_GL_X11, [1], [Build GL X11 engine as part of libevas])
fi
fi
AC_SUBST(have_evas_engine_gl_xcb)
else
AC_MSG_RESULT(no)
build_gl_xcb="no"
2009-07-14 14:16:08 -07:00
fi
2011-07-07 17:17:52 -07:00
## If we are not building XCB, then we can build XLib ##
if test "x$build_gl_xcb" = "xno" ; then
EVAS_CHECK_ENGINE([gl-xlib], [${want_evas_engine_gl_xlib}], [no], [OpenGL XLib])
if test "x$have_evas_engine_gl_xlib" != "xno" ; then
have_evas_engine_gl_x11="yes"
AC_DEFINE_UNQUOTED(BUILD_ENGINE_GL_X11, [1], [Build OpenGL X11 engine])
AC_DEFINE_UNQUOTED(BUILD_ENGINE_GL_XLIB, [1], [Build OpenGL Xlib backend])
if test "x$have_evas_engine_gl_xlib" = "xstatic" ; then
2011-08-07 09:47:09 -07:00
AC_DEFINE_UNQUOTED(EVAS_STATIC_BUILD_GL_X11, [1], [Build OpenGL X11 engine as part of libevas])
2011-07-07 17:17:52 -07:00
fi
fi
else
have_evas_engine_gl_xlib="no"
2009-07-14 14:16:08 -07:00
fi
2011-07-07 17:17:52 -07:00
AC_SUBST(have_evas_engine_gl_xlib)
AM_CONDITIONAL([BUILD_ENGINE_GL_XLIB], [test "x${have_evas_engine_gl_xlib}" != "xno"])
AM_CONDITIONAL([BUILD_ENGINE_GL_XCB], [test "x${have_evas_engine_gl_xcb}" != "xno"])
AM_CONDITIONAL([BUILD_ENGINE_GL_X11], [test "x${have_evas_engine_gl_x11}" != "xno"])
2009-07-14 14:16:08 -07:00
2011-07-07 17:17:52 -07:00
AM_CONDITIONAL([EVAS_STATIC_BUILD_GL_X11], [test "x${have_evas_engine_gl_xcb}" = "xstatic" -o "x${have_evas_engine_gl_xlib}" = "xstatic"])
AM_CONDITIONAL([EVAS_STATIC_BUILD_GL_XLIB], [test "x${have_evas_engine_gl_xlib}" = "xstatic"])
AM_CONDITIONAL([EVAS_STATIC_BUILD_GL_XCB], [test "x${have_evas_engine_gl_xcb}" = "xstatic"])
AC_SUBST(have_evas_engine_gl_x11)
# common gl
have_evas_engine_gl_common="no"
have_static_evas_engine_gl_common="no"
if test "x$have_evas_engine_gl_xlib" = "xyes" \
|| test "x$have_evas_engine_gl_xcb" = "xyes" \
2011-11-02 11:23:54 -07:00
|| test "x$have_evas_engine_gl_sdl" = "xyes" \
2012-01-11 15:17:54 -08:00
|| test "x$have_evas_engine_gl_cocoa" = "xyes" \
|| test "x$have_evas_engine_wayland_egl" = "xyes"; then
2011-07-07 17:17:52 -07:00
have_evas_engine_gl_common="yes"
fi
if test "x$have_evas_engine_gl_xlib" = "xstatic" \
|| test "x$have_evas_engine_gl_xcb" = "xstatic" \
2011-11-02 11:23:54 -07:00
|| test "x$have_evas_engine_gl_sdl" = "xstatic" \
2012-01-11 15:17:54 -08:00
|| test "x$have_evas_engine_gl_cocoa" = "xstatic" \
|| test "x$have_evas_engine_wayland_egl" = "xstatic"; then
2011-07-07 17:17:52 -07:00
have_evas_engine_gl_common="yes"
have_static_evas_engine_gl_common="yes"
2009-07-14 14:16:08 -07:00
fi
2011-07-07 17:17:52 -07:00
if test "x$have_evas_engine_gl_common" = "xyes"; then
evas_engine_gl_common_libs=""
AC_DEFINE(BUILD_ENGINE_GL_COMMON, [1], [Generic OpenGL Rendering Support])
fi
2009-07-14 14:16:08 -07:00
2011-07-07 17:17:52 -07:00
AC_SUBST([evas_engine_gl_common_libs])
AM_CONDITIONAL(BUILD_ENGINE_GL_COMMON, [test "x$have_evas_engine_gl_common" = "xyes"])
AM_CONDITIONAL(EVAS_STATIC_BUILD_GL_COMMON, test "x${have_static_evas_engine_gl_common}" = "xyes")
if test "x${have_static_evas_engine_gl_common}" = "xyes"; then
AC_DEFINE(EVAS_STATIC_BUILD_GL_COMMON, [1], [Build GL generic engine as part of libevas])
fi
# gl_sdl
if test "x$have_evas_engine_gl_sdl" = "xyes" || test "x$have_evas_engine_gl_sdl" = "xstatic" ; then
AC_CHECK_DECL(SDL_GL_CONTEXT_MAJOR_VERSION,
[AC_DEFINE(HAVE_SDL_GL_CONTEXT_VERSION, [1], [SDL_GL version attributes present])],,
[#include <SDL/SDL_video.h>])
fi
if test "x$gl_flavor_gles" = "xyes"; then
AC_CHECK_DECL(SDL_OPENGLES,
[AC_DEFINE(HAVE_SDL_FLAG_OPENGLES, [1], [SDL_OPENGLES flag is present])],,
[#include <SDL/SDL_video.h>])
fi
2009-07-14 14:16:08 -07:00
2009-06-26 06:15:32 -07:00
# if software 16 x11 is enabled - build software_16 (the generic 16bit
# engine). later enable it fb_16 or other "16" bit engines are enabled.
have_evas_engine_software_16="no"
if test "x$have_evas_engine_software_16_x11" = "xyes" -o "x$have_evas_engine_software_16_x11" = "xstatic"; then
have_evas_engine_software_16="yes"
fi
2011-09-06 23:53:28 -07:00
if test "x$have_evas_engine_software_16_sdl" = "xyes" -o "x$have_evas_engine_software_16_sdl" = "xstatic"; then
2009-06-26 06:15:32 -07:00
have_evas_engine_software_16="yes"
fi
if test "x$have_evas_engine_software_16_wince" = "xyes" -o "x$have_evas_engine_software_16_wince" = "xstatic"; then
have_evas_engine_software_16="yes"
fi
AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_16, test "x$have_evas_engine_software_16" = "xyes")
2009-06-16 06:01:36 -07:00
# if software 16 need to be build as part of libevas.so
have_static_software_16="no"
AC_ARG_ENABLE([static-software-16],
[AC_HELP_STRING([--enable-static-software-16], [Build software 16 engine as part of libevas])],
[have_static_software_16=${enableval}]
)
AC_MSG_CHECKING([Whether to build software 16 engine as part of libevas])
AC_MSG_RESULT([${have_static_software_16}])
AM_CONDITIONAL(EVAS_STATIC_BUILD_SOFTWARE_16, test "x${have_static_software_16}" = "xyes")
if test "x${have_static_software_16}" = "xyes"; then
AC_DEFINE(EVAS_STATIC_BUILD_SOFTWARE_16, [1], [Build software 16 engine as part of libevas])
fi
2005-10-02 08:15:44 -07:00
2010-07-27 17:16:06 -07:00
# if software 8 x11 is enabled - build software_8 (the generic 8bit
# engine).
have_evas_engine_software_8="no"
if test "x$have_evas_engine_software_8_x11" = "xyes" -o "x$have_evas_engine_software_8_x11" = "xstatic"; then
have_evas_engine_software_8="yes"
fi
AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_8, test "x$have_evas_engine_software_8" = "xyes")
# if software 8 need to be build as part of libevas.so
have_static_software_8="no"
AC_ARG_ENABLE([static-software-8],
[AC_HELP_STRING([--enable-static-software-8], [Build software 8 engine as part of libevas])],
[have_static_software_8=${enableval}]
)
AC_MSG_CHECKING([Whether to build software 8 engine as part of libevas])
AC_MSG_RESULT([${have_static_software_8}])
AM_CONDITIONAL(EVAS_STATIC_BUILD_SOFTWARE_8, test "x${have_static_software_8}" = "xyes")
if test "x${have_static_software_8}" = "xyes"; then
AC_DEFINE(EVAS_STATIC_BUILD_SOFTWARE_8, [1], [Build software 8 engine as part of libevas])
fi
2004-01-27 18:07:41 -08:00
#####################################################################
## Image loaders
2003-12-17 23:55:21 -08:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_IMAGE_LOADER([Edb], [${want_evas_image_loader_edb}])
2007-12-06 01:36:06 -08:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_IMAGE_LOADER([Eet], [${want_evas_image_loader_eet}])
EVAS_CHECK_FONT_LOADER([${want_evas_font_loader_eet}])
2007-12-06 01:36:06 -08:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_IMAGE_LOADER([Gif], [${want_evas_image_loader_gif}])
2006-04-08 05:22:18 -07:00
2008-11-20 14:00:50 -08:00
have_evas_image_saver_jpeg="no"
2008-11-23 22:18:31 -08:00
EVAS_CHECK_IMAGE_LOADER([Jpeg], [${want_evas_image_loader_jpeg}])
2007-12-06 01:36:06 -08:00
2007-02-10 09:23:09 -08:00
dnl Windows has no sigsetjmp function, nor equivalent.
dnl So we disable the jpeg saver.
2008-11-20 14:00:50 -08:00
dnl TODO: must find a workaround
2007-02-10 09:23:09 -08:00
case "$host_os" in
2011-09-28 23:26:03 -07:00
mingw*)
2008-11-20 14:00:50 -08:00
;;
*)
if test "x${have_evas_image_loader_jpeg}" = "xyes" ; then
2011-02-27 02:32:52 -08:00
AC_DEFINE(EVAS_BUILD_SAVER_JPEG, [1], [Build JPEG saver])
2008-11-20 14:00:50 -08:00
have_evas_image_saver_jpeg="yes"
2007-12-06 01:36:06 -08:00
fi
2008-11-20 14:00:50 -08:00
;;
esac
AM_CONDITIONAL([BUILD_SAVER_JPEG], [test "x${have_evas_image_saver_jpeg}" = "xyes"])
2007-12-06 01:36:06 -08:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_IMAGE_LOADER([PMAPS], [${want_evas_image_loader_pmaps}])
2007-12-06 01:36:06 -08:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_IMAGE_LOADER([PNG], [${want_evas_image_loader_png}])
2006-08-17 09:43:30 -07:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_IMAGE_LOADER([SVG], [${want_evas_image_loader_svg}])
2008-03-01 07:27:20 -08:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_IMAGE_LOADER([Tiff], [${want_evas_image_loader_tiff}])
2008-03-01 07:27:20 -08:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_IMAGE_LOADER([XPM], [${want_evas_image_loader_xpm}])
2008-03-01 07:27:20 -08:00
2010-05-30 06:04:34 -07:00
EVAS_CHECK_IMAGE_LOADER([BMP], [${want_evas_image_loader_bmp}])
2010-05-30 10:48:19 -07:00
EVAS_CHECK_IMAGE_LOADER([TGA], [${want_evas_image_loader_tga}])
2011-02-01 01:38:48 -08:00
EVAS_CHECK_IMAGE_LOADER([WBMP], [${want_evas_image_loader_wbmp}])
2011-03-11 07:07:25 -08:00
EVAS_CHECK_IMAGE_LOADER([ICO], [${want_evas_image_loader_ico}])
2008-03-01 07:27:20 -08:00
2011-04-24 12:45:43 -07:00
EVAS_CHECK_IMAGE_LOADER([PSD], [${want_evas_image_loader_psd}])
2011-04-25 18:03:06 -07:00
EVAS_CHECK_IMAGE_LOADER([GENERIC], [${want_evas_image_loader_generic}])
2004-01-27 18:07:41 -08:00
#####################################################################
## Cpu based optimizations
2006-10-27 20:02:23 -07:00
#######################################
## PTHREADS
pthread_cflags=""
pthread_libs=""
2006-11-15 04:04:02 -08:00
build_pthreads="no"
2008-04-30 05:21:31 -07:00
has_pthreads="no"
2008-09-16 07:52:57 -07:00
need_pthreads="no"
# basic pthread support
AC_CHECK_HEADER(pthread.h,
[
has_pthreads="yes"
],
[
has_pthreads="no"
]
)
2006-11-15 22:31:52 -08:00
# sched_getaffinity pthread_attr_setaffinity_np
2011-11-10 10:02:43 -08:00
AC_CHECK_HEADERS([pthread.h sched.h],
[
CFLAGS_save="${CFLAGS}"
CFLAGS="${CFLAGS} -pthread"
LIBS_save="${LIBS}"
LIBS="${LIBS} -pthread"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[
#include <pthread.h>
#include <sched.h>
]],
[[
pthread_attr_setaffinity_np(NULL, 0, NULL);
pthread_barrier_wait(NULL);
]])],
[build_pthreads="yes"],
[build_pthreads="no"])
CFLAGS=${CFLAGS_save}
LIBS=${LIBS_save}
2010-08-31 15:36:35 -07:00
],
2011-11-10 10:02:43 -08:00
[build_pthreads="no"])
AC_MSG_CHECKING([whether pthread_attr_setaffinity_np() and pthread_barrier_wait() are supported])
AC_MSG_RESULT([${build_pthreads}])
2009-03-26 18:48:58 -07:00
#######################################
2010-02-24 21:59:44 -08:00
## Pthread
2006-10-27 20:02:23 -07:00
AC_MSG_CHECKING(whether to build pthread code)
2010-02-24 21:59:44 -08:00
AC_ARG_ENABLE(pthreads,
AC_HELP_STRING([--enable-pthreads], [enable threaded rendering]),
2007-11-05 22:44:54 -08:00
[
2010-08-31 15:36:35 -07:00
if test "x$enableval" = "xyes" ; then
if test "x$build_pthreads" = "xyes"; then
AC_MSG_RESULT(yes)
AC_DEFINE(BUILD_PTHREAD, 1, [Build Threaded Rendering])
build_pthreads="yes"
need_pthreads="yes"
else
if "x$use_strict" = "xyes"; then
AC_MSG_ERROR(pthreads headers or functions not found (strict dependencies checking))
2008-05-05 02:21:15 -07:00
else
2010-08-31 15:36:35 -07:00
AC_MSG_RESULT(no: pthread headers or functions not found)
2008-05-05 02:21:15 -07:00
fi
2006-10-27 20:02:23 -07:00
fi
2010-08-31 15:36:35 -07:00
else
AC_MSG_RESULT(no)
build_pthreads="no"
fi
2006-10-27 20:02:23 -07:00
],
2007-07-16 01:13:40 -07:00
[
2006-10-27 20:02:23 -07:00
AC_MSG_RESULT($build_pthreads)
2007-11-04 11:09:19 -08:00
if test "x$build_pthreads" = "xyes" ; then
2006-10-27 20:02:23 -07:00
AC_DEFINE(BUILD_PTHREAD, 1, [Build Threaded Rendering])
2008-09-16 07:52:57 -07:00
need_pthreads="yes"
2006-10-27 20:02:23 -07:00
fi
]
)
2009-03-26 18:48:58 -07:00
#######################################
## Pipe Renderer
build_pipe_render="no"
2010-09-01 05:25:25 -07:00
2012-07-05 05:04:47 -07:00
# Let disable pipe render strongly as it doesn't massively improve performance, but
# just hammer more watt for a few more percent. The code is kept as the understanding
# is that with an async pipeline things will be better.
#
#AC_MSG_CHECKING(whether to build Threaded Pipe Rendering support)
#AC_ARG_ENABLE(pipe-render,
# AC_HELP_STRING([--enable-pipe-render], [enable threaded pipe rendering support]),
# [ build_pipe_render=$enableval ]
#)
#AC_MSG_RESULT($build_pipe_render)
#AC_MSG_CHECKING(whether we can build Threaded Pipe Rendering support)
#if test \( "x$build_pipe_render" = "xyes" -o "x$build_pipe_render" = "xauto" \); then
# AC_MSG_RESULT(yes)
# AC_DEFINE(BUILD_PIPE_RENDER, 1, [Build pipe render support])
# build_pipe_render="yes"
# need_pthreads="yes"
#else
# AC_MSG_RESULT(no)
# build_pipe_render="no"
#fi
2009-03-26 18:48:58 -07:00
2008-04-30 05:21:31 -07:00
#######################################
## Async events
build_async_events="auto"
AC_MSG_CHECKING(whether to build Async Events support)
AC_ARG_ENABLE(async-events,
AC_HELP_STRING([--enable-async-events], [enable async events support]),
[ build_async_events=$enableval ]
)
AC_MSG_RESULT($build_async_events)
AC_MSG_CHECKING(whether we can build Async Events support)
2010-01-28 09:25:52 -08:00
if test "x$build_async_events" = "xyes" || test "x$build_async_events" = "xauto" ; then
2008-04-30 05:21:31 -07:00
AC_MSG_RESULT(yes)
AC_DEFINE(BUILD_ASYNC_EVENTS, 1, [Build async events support])
build_async_events="yes"
else
AC_MSG_RESULT(no)
build_async_events="no"
fi
2008-09-16 07:52:57 -07:00
#######################################
## Async image preload
build_async_preload="auto"
AC_MSG_CHECKING(whether to build Async Image Preload support)
AC_ARG_ENABLE(async-preload,
AC_HELP_STRING([--enable-async-preload], [enable async image preloading support]),
[ build_async_preload=$enableval ]
)
AC_MSG_RESULT($build_async_preload)
AC_MSG_CHECKING(whether we can build Async Image Preload support)
if test \( "x$build_async_preload" = "xyes" -o "x$build_async_preload" = "xauto" \) -a "x$build_async_events" = "xyes"; then
AC_MSG_RESULT(yes)
AC_DEFINE(BUILD_ASYNC_PRELOAD, 1, [Build async image preload support])
build_async_preload="yes"
need_pthreads="yes"
else
AC_MSG_RESULT(no)
build_async_preload="no"
fi
#######################################
## Link with pthread if needed
AC_MSG_CHECKING(whether we should link with pthread)
if test "x$need_pthreads" = "xyes"; then
AC_MSG_RESULT(yes)
2011-11-10 10:02:43 -08:00
pthread_cflags="-pthread"
pthread_libs="-pthread"
2008-09-16 07:52:57 -07:00
else
AC_MSG_RESULT(no)
fi
2004-01-27 18:07:41 -08:00
#######################################
## MMX
build_cpu_mmx="no"
2005-04-28 19:10:36 -07:00
case $host_cpu in
2004-01-27 18:07:41 -08:00
i*86)
build_cpu_mmx="yes"
;;
2005-12-11 23:49:22 -08:00
x86_64)
build_cpu_mmx="yes"
;;
2010-04-24 07:07:17 -07:00
amd64)
build_cpu_mmx="yes"
;;
2004-01-27 18:07:41 -08:00
esac
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build mmx code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(cpu-mmx,
2007-11-05 22:44:54 -08:00
AC_HELP_STRING([--enable-cpu-mmx], [enable mmx code]),
[
2007-11-04 11:09:19 -08:00
if test "x$enableval" = "xyes" ; then
2003-10-14 21:20:38 -07:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_MMX, 1, [Build MMX Code])
2004-01-27 18:07:41 -08:00
build_cpu_mmx="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
build_cpu_mmx="no"
2003-10-14 21:20:38 -07:00
fi
2004-01-27 18:07:41 -08:00
],
[
AC_MSG_RESULT($build_cpu_mmx)
2007-11-04 11:09:19 -08:00
if test "x$build_cpu_mmx" = "xyes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_MMX, 1, [Build MMX Code])
fi
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#######################################
## SSE
build_cpu_sse="no"
2005-04-28 19:10:36 -07:00
case $host_cpu in
2004-01-27 18:07:41 -08:00
i*86)
build_cpu_sse="yes"
;;
2005-12-11 23:49:22 -08:00
x86_64)
build_cpu_sse="yes"
;;
2010-04-24 07:07:17 -07:00
amd64)
build_cpu_sse="yes"
;;
2004-01-27 18:07:41 -08:00
esac
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build sse code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(cpu-sse,
2007-11-05 22:44:54 -08:00
AC_HELP_STRING([--enable-cpu-sse], [enable sse code]),
[
2007-11-04 11:09:19 -08:00
if test "x$enableval" = "xyes" ; then
2003-10-14 21:20:38 -07:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_SSE, 1, [Build SSE Code])
2004-01-27 18:07:41 -08:00
build_cpu_sse="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
build_cpu_sse="no"
2003-10-14 21:20:38 -07:00
fi
2004-01-27 18:07:41 -08:00
],
2007-07-16 01:13:40 -07:00
[
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($build_cpu_sse)
2007-11-04 11:09:19 -08:00
if test "x$build_cpu_sse" = "xyes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_SSE, 1, [Build SSE Code])
fi
]
2002-11-07 23:46:04 -08:00
)
2011-09-29 19:35:31 -07:00
#######################################
## SSE3
build_cpu_sse3="no"
case $host_cpu in
i*86)
2011-10-02 21:44:23 -07:00
build_cpu_sse3="yes"
2011-09-29 19:35:31 -07:00
;;
x86_64)
build_cpu_sse3="yes"
;;
amd64)
build_cpu_sse3="yes"
;;
esac
AC_MSG_CHECKING(whether to build sse3 code)
AC_ARG_ENABLE(cpu-sse3,
2011-10-02 04:29:03 -07:00
AS_HELP_STRING([--enable-cpu-sse3], [enable sse3 code]),
2011-09-29 19:35:31 -07:00
[
if test "x$enableval" = "xyes" ; then
2011-12-06 16:10:36 -08:00
AC_CHECK_HEADER(immintrin.h,
[
AC_MSG_RESULT(yes)
AC_DEFINE(BUILD_SSE3, 1, [Build SSE3 Code])
build_cpu_sse3="yes"
],
[
AC_MSG_RESULT(no)
build_cpu_sse3="no"
])
2011-09-29 19:35:31 -07:00
else
AC_MSG_RESULT(no)
build_cpu_sse3="no"
fi
],
[
AC_MSG_RESULT($build_cpu_sse3)
if test "x$build_cpu_sse3" = "xyes" ; then
2011-12-06 16:10:36 -08:00
AC_CHECK_HEADER(immintrin.h,
[
AC_MSG_RESULT(yes)
AC_DEFINE(BUILD_SSE3, 1, [Build SSE3 Code])
build_cpu_sse3="yes"
],
[
AC_MSG_RESULT(no)
build_cpu_sse3="no"
])
2011-09-29 19:35:31 -07:00
fi
]
)
2011-10-02 22:06:11 -07:00
# as a big warning flag to anyone doing stuff like this...
2011-10-02 03:57:26 -07:00
# NEVER EVER EVER EVER put **OPTIMIZATION** flags in
2011-10-02 22:06:11 -07:00
# build flags in makefiles (from configure or anywhere else)
# EVER as this screws your ability to build 1 binary and
# cover ALL x86 arch's. This is the HEIGHT of WRONG. If the
2011-10-02 03:57:26 -07:00
# person building choses to add optimization flags themselves
# and decide the minimum baseline cpu arch is X then that's
2011-10-02 22:06:11 -07:00
# their business, but NEVER should it be done here. NEVER.
# I now have to do this due to the way this sse3 code was done - using
2011-10-02 04:29:03 -07:00
# intrinsics and "functions" (opcodes) and types that only compile *IF*
# you compile with -msse3. this ALSO tries to optimize REGULAR c code
# with sse3 asm.. and this breaks things so badly. so... sse3 will be
# off until further notice for 32bit x86.
2011-10-02 21:44:23 -07:00
EVAS_SSE3_CFLAGS=" "
2011-09-29 19:35:31 -07:00
if test "x$build_cpu_sse3" = "xyes" ; then
2011-10-02 21:44:23 -07:00
EVAS_SSE3_CFLAGS="-msse3 "
# CFLAGS="${CFLAGS} ${EVAS_SSE3_CFLAGS}"
2011-09-29 19:35:31 -07:00
fi
AC_SUBST(CFLAGS)
2011-10-02 21:44:23 -07:00
AC_SUBST(EVAS_SSE3_CFLAGS)
2011-09-29 19:35:31 -07:00
2004-01-27 18:07:41 -08:00
#######################################
## ALTIVEC
build_cpu_altivec="no"
2005-04-28 19:10:36 -07:00
case $host_cpu in
2004-01-27 18:07:41 -08:00
*power* | *ppc*)
2007-12-06 01:36:06 -08:00
build_cpu_altivec="auto"
2004-01-27 18:07:41 -08:00
;;
esac
2003-12-15 17:58:17 -08:00
altivec_cflags=""
AC_MSG_CHECKING(whether to build altivec code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(cpu-altivec,
2007-11-05 22:44:54 -08:00
AC_HELP_STRING([--enable-cpu-altivec], [enable altivec code]),
2007-12-06 01:36:06 -08:00
[ build_cpu_altivec=$enableval ],
[
if test ! "x$build_cpu_altivec" = "xauto"; then
build_cpu_altivec="no"
fi
]
2003-12-15 17:58:17 -08:00
)
2005-10-12 19:38:04 -07:00
AC_MSG_RESULT($build_cpu_altivec)
2007-12-06 01:36:06 -08:00
2005-10-12 19:38:04 -07:00
if test "x$build_cpu_altivec" = "xyes"; then
2003-12-15 17:58:17 -08:00
AC_CHECK_HEADER(altivec.h,
[
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
2005-10-12 19:38:04 -07:00
AC_DEFINE(HAVE_ALTIVEC_H, 1, [Have altivec.h header file])
build_cpu_altivec="yes"
2004-01-27 18:07:41 -08:00
],
[
2005-10-12 19:38:04 -07:00
save_CFLAGS=$CFLAGS
save_CPPFLAGS=$CPPFLAGS
2005-09-23 22:53:27 -07:00
CFLAGS=$CFLAGS" -maltivec"
2005-10-12 19:38:04 -07:00
CPPFLAGS=$CPPFLAGS" -maltivec"
unset ac_cv_header_altivec_h
2005-09-23 22:53:27 -07:00
AC_CHECK_HEADER(altivec.h,
[
AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
2005-10-12 19:38:04 -07:00
AC_DEFINE(HAVE_ALTIVEC_H, 1, [Have altivec.h header file])
build_cpu_altivec="yes"
2005-09-23 22:53:27 -07:00
],
[
2007-12-06 01:36:06 -08:00
if test "x$build_cpu_altivec" = "xyes" -a "x$use_strict" = "xyes" ; then
AC_MSG_ERROR(Altivec not found (strict dependencies checking))
fi
2005-09-23 22:53:27 -07:00
build_cpu_altivec="no"
]
)
2005-10-12 19:38:04 -07:00
CFLAGS=$save_CFLAGS
CPPFLAGS=$save_CPPFLAGS
2003-12-16 09:37:26 -08:00
]
)
2003-12-15 17:58:17 -08:00
fi
2007-12-06 01:36:06 -08:00
2005-10-12 19:38:04 -07:00
if test "x$build_cpu_altivec" = "xyes"; then
2003-12-15 17:58:17 -08:00
AC_MSG_CHECKING(whether to use altivec compiler flag)
2007-11-04 11:09:19 -08:00
if test "x$GCC" = "xyes"; then
2005-10-12 19:38:04 -07:00
if echo "int main(){return 0;}" | ${CPP} -faltivec - > /dev/null 2>&1; then
2003-12-15 17:58:17 -08:00
altivec_cflags="-faltivec"
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
2005-10-12 19:38:04 -07:00
elif echo "int main(){return 0;}" | ${CPP} -maltivec - > /dev/null 2>&1; then
2005-09-23 22:53:27 -07:00
altivec_cflags="-maltivec"
AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
2003-12-15 17:58:17 -08:00
fi
fi
2009-03-13 23:48:25 -07:00
AC_MSG_RESULT($altivec_cflags)
2005-10-12 19:38:04 -07:00
CFLAGS="$CFLAGS $altivec_cflags"
2003-12-15 17:58:17 -08:00
fi
2009-03-13 23:48:25 -07:00
#######################################
## NEON
build_cpu_neon="no"
case $host_cpu in
2010-12-05 18:20:31 -08:00
arm*)
2009-03-13 23:48:25 -07:00
build_cpu_neon="yes"
;;
esac
AC_MSG_CHECKING(whether to build neon code)
AC_ARG_ENABLE(cpu-neon,
2010-12-05 17:58:19 -08:00
AC_HELP_STRING([--enable-cpu-neon], [build neon code, the code will be
checked at run time to see if the CPU supports it]),
2009-03-13 23:48:25 -07:00
[
2010-06-30 21:52:45 -07:00
if test "x$enableval" = "xyes" ; then
2010-12-05 18:20:31 -08:00
AC_TRY_COMPILE([],
2010-12-05 17:58:19 -08:00
[asm volatile (".fpu neon\nvqadd.u8 d0, d1, d0\n")],
2010-06-30 21:52:45 -07:00
[
AC_MSG_RESULT(yes)
AC_DEFINE(BUILD_NEON, 1, [Build NEON Code])
build_cpu_neon="yes"
],[
AC_MSG_RESULT(no)
build_cpu_neon="no"
])
2009-03-13 23:48:25 -07:00
else
AC_MSG_RESULT(no)
build_cpu_neon="no"
fi
],
[
if test "x$build_cpu_neon" = "xyes" ; then
2010-06-30 22:06:23 -07:00
AC_TRY_COMPILE([#include <arm_neon.h>],
[asm volatile ("vqadd.u8 d0, d1, d0\n")],
2010-06-30 21:52:45 -07:00
[
AC_MSG_RESULT(yes)
AC_DEFINE(BUILD_NEON, 1, [Build NEON Code])
build_cpu_neon="yes"
],[
AC_MSG_RESULT(no)
build_cpu_neon="no"
])
2009-03-13 23:48:25 -07:00
fi
]
)
2010-06-30 21:52:45 -07:00
2004-01-27 18:07:41 -08:00
#######################################
## C
build_cpu_c="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build c code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(cpu-c,
2007-11-05 22:44:54 -08:00
AC_HELP_STRING([--enable-cpu-c], [enable C code]),
[
2007-11-04 11:09:19 -08:00
if test "x$enableval" = "xyes" ; then
2003-10-14 21:20:38 -07:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_C, 1, [Build plain C code])
2007-11-04 11:09:19 -08:00
build_cpu_c="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2007-11-04 11:09:19 -08:00
build_cpu_c="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($build_cpu_c)
2007-11-04 11:09:19 -08:00
if test "x$build_cpu_c" = "xyes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_C, 1, [Build plain C code])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2008-09-12 06:14:08 -07:00
#######################################
## MAGIC_DEBUG
want_evas_magic_debug="yes"
AC_MSG_CHECKING(whether to check magic for evas object)
AC_ARG_ENABLE(evas-magic-debug,
AC_HELP_STRING(
[--disable-evas-magic-debug],
[disable MAGIC_DEBUG check when people pass in wrong object type. [[default=enabled]]]
),
[ want_evas_magic_debug="$enableval" ]
)
AC_MSG_RESULT($want_evas_magic_debug)
AM_CONDITIONAL(EVAS_MAGIC_DEBUG, test "x$want_evas_magic_debug" = "xyes")
if test "x$want_evas_magic_debug" = "xyes"; then
2010-06-13 22:59:23 -07:00
AC_DEFINE(EVAS_MAGIC_DEBUG, 1, [complain when people pass in wrong object types etc.])
2008-09-12 06:14:08 -07:00
fi
2010-06-13 22:59:23 -07:00
#######################################
## Word Caching
want_word_cache="no"
AC_MSG_CHECKING(whether to enable caching of rendered words)
AC_ARG_ENABLE(word-cache,
AC_HELP_STRING(
[--enable-word-cache],
[Enable experimental word caching to speed up rendering [[default=disabled]]]
),
[ want_word_cache="$enableval" ]
)
AC_MSG_RESULT($want_word_cache)
AM_CONDITIONAL(WORD_CACHE, test "x$want_word_cache" = "xyes")
if test "x$want_word_cache" = "xyes"; then
AC_DEFINE(WORD_CACHE, 1, [Experimental word caching to speed up text rendering.])
fi
#######################################
## Metric Caching
want_metric_cache="no"
AC_MSG_CHECKING(whether to enable caching of rendered metrics)
AC_ARG_ENABLE(metric-cache,
AC_HELP_STRING(
[--enable-metric-cache],
[Enable experimental metric caching to speed up rendering [[default=disabled]]]
),
[ want_metric_cache="$enableval" ]
)
AC_MSG_RESULT($want_metric_cache)
AM_CONDITIONAL(METRIC_CACHE, test "x$want_metric_cache" = "xyes")
if test "x$want_metric_cache" = "xyes"; then
AC_DEFINE(METRIC_CACHE, 1, [Experimental metric caching to speed up text rendering.])
fi
2004-01-27 18:07:41 -08:00
#####################################################################
## ARGB engine options
2002-11-07 23:46:04 -08:00
2004-01-27 18:07:41 -08:00
#######################################
## Nearest sampling scaler
2009-06-27 06:07:00 -07:00
EVAS_CHECK_SCALER([scale-sample], [sampling scaler], [scaler_sample="yes"], [scaler_sample="no"])
2004-01-27 18:07:41 -08:00
## Smooth super and sub sampling scaler
2009-06-27 06:07:00 -07:00
EVAS_CHECK_SCALER([scale-smooth], [smooth scaler], [scaler_smooth="yes"], [scaler_smooth="no"])
2002-11-07 23:46:04 -08:00
2004-01-27 18:07:41 -08:00
#######################################
## YUV -> ARGB converter
conv_yuv="no"
conv_yuv="yes"
AC_MSG_CHECKING(whether to build yuv converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-yuv,
2007-11-05 22:44:54 -08:00
AC_HELP_STRING([--enable-convert-yuv], [enable yuv converter code]),
[
2007-11-04 11:09:19 -08:00
if test "x$enableval" = "xyes" ; then
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT(yes)
AC_DEFINE(BUILD_CONVERT_YUV, 1, [YUV Converter Support])
2007-11-04 11:09:19 -08:00
conv_yuv="yes"
2004-01-27 18:07:41 -08:00
else
AC_MSG_RESULT(no)
2007-11-04 11:09:19 -08:00
conv_yuv="no"
2004-01-27 18:07:41 -08:00
fi
], [
AC_MSG_RESULT($conv_yuv)
2007-11-04 11:09:19 -08:00
if test "x$conv_yuv" = "xyes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_YUV, 1, [YUV Converter Support])
fi
]
)
2002-11-07 23:46:04 -08:00
2004-01-27 18:07:41 -08:00
#####################################################################
## Output rendering features
2002-11-07 23:46:04 -08:00
2004-01-27 18:07:41 -08:00
#######################################
## Small dither mask instead of big one (lower quality)
2009-06-27 06:07:00 -07:00
EVAS_CHECK_DITHER([small-dither-mask], [small dither mask], [conv_small_dither="yes"], [conv_small_dither="no"])
2008-09-30 23:37:31 -07:00
## Alternate Line dither mask instead of big one (lower quality - but fastest)
2009-06-27 06:07:00 -07:00
EVAS_CHECK_DITHER([line-dither-mask], [line dither mask], [conv_line_dither="yes"], [conv_line_dither="no"])
2007-04-24 04:16:24 -07:00
## No dither mask at all for 16bpp
2009-06-27 06:07:00 -07:00
EVAS_CHECK_DITHER([no-dither-mask], [conversion to 16bpp without dither mask], [conv_no_dither="yes"], [conv_no_dither="no"])
2007-04-24 04:16:24 -07:00
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 8bpp RGB 332
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(8, RGB, 332, [yes])
2004-01-27 18:07:41 -08:00
## Convert to 8bpp RGB 666
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(8, RGB, 666, [yes])
2004-01-27 18:07:41 -08:00
## Convert to 8bpp RGB 232
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(8, RGB, 232, [yes])
2004-01-27 18:07:41 -08:00
## Convert to 8bpp RGB 222
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(8, RGB, 222, [yes])
2004-01-27 18:07:41 -08:00
## Convert to 8bpp RGB 221
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(8, RGB, 221, [yes])
2004-01-27 18:07:41 -08:00
## Convert to 8bpp RGB 121
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(8, RGB, 121, [yes])
2004-01-27 18:07:41 -08:00
## Convert to 8bpp RGB 111
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(8, RGB, 111, [yes])
2004-01-27 18:07:41 -08:00
## Convert to 16bpp RGB 565
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(16, RGB, 565)
2007-02-10 09:23:09 -08:00
## Convert to 16bpp BGR 565
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(16, BGR, 565)
2004-01-27 18:07:41 -08:00
## Convert to 16bpp RGB 555
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(16, RGB, 555)
2004-01-27 18:07:41 -08:00
## Convert to 16bpp RGB 444
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(16, RGB, 444)
2002-11-07 23:46:04 -08:00
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 16bpp RGB 565 (444 ipaq)
conv_16_rgb_ipq="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build 16bpp 565 (444 ipaq) converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-16-rgb-ipq,
2007-11-04 23:55:17 -08:00
AC_HELP_STRING([--disable-convert-16-rgb-ipq], [disable 16bpp 565 (444 ipaq) converter code]),
[
2007-11-04 11:09:19 -08:00
if test "x$enableval" = "xyes" ; then
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_CONVERT_16_RGB_454645, 1, [16bpp 565 (444 ipaq) Converter Support])
2004-01-27 18:07:41 -08:00
conv_16_rgb_ipq="yes"
2003-10-14 21:20:38 -07:00
else
2007-11-04 11:09:19 -08:00
conv_16_rgb_ipq="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2007-11-04 11:09:19 -08:00
if test "x$conv_16_rgb_ipq" = "xyes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_16_RGB_454645, 1, [16bpp 565 (444 ipaq) Converter Support])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2007-11-04 23:55:17 -08:00
AC_MSG_RESULT($conv_16_rgb_ipq)
2002-11-07 23:46:04 -08:00
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 16bpp RGB with rotation of 0
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_ROT(16, RGB, 0)
2007-03-02 06:51:17 -08:00
## Convert to 16bpp RGB with rotation of 180
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_ROT(16, RGB, 180)
2004-01-27 18:07:41 -08:00
## Convert to 16bpp RGB with rotation of 270
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_ROT(16, RGB, 270)
2004-01-27 18:07:41 -08:00
## Convert to 16bpp RGB with rotation of 90
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_ROT(16, RGB, 90)
2002-11-07 23:46:04 -08:00
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 24bpp RGB 888
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(24, RGB, 888)
2004-01-27 18:07:41 -08:00
## Convert to 24bpp BGR 888
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(24, BGR, 888)
2004-01-27 18:07:41 -08:00
## Convert to 32bpp RGB 8888
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(32, RGB, 8888)
2004-01-27 18:07:41 -08:00
## Convert to 32bpp RGBX 8888
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(32, RGBX, 8888)
2004-01-27 18:07:41 -08:00
## Convert to 32bpp BGR 8888
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(32, BGR, 8888)
2004-01-27 18:07:41 -08:00
## Convert to 32bpp BGRX 8888
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(32, BGRX, 8888)
2002-11-07 23:46:04 -08:00
2009-04-02 18:00:54 -07:00
#######################################
## Convert to 24bpp RGB 666 (666 ezx)
conv_24_rgb_ezx="yes"
AC_MSG_CHECKING(whether to build 24bpp 666 (666 ezx) converter code)
AC_ARG_ENABLE(convert-24-rgb-ezx,
AC_HELP_STRING([--disable-convert-24-rgb-ezx], [disable 24bpp 666 (666 ezx) converter code]),
[
if test "x$enableval" = "xyes" ; then
AC_DEFINE(BUILD_CONVERT_24_RGB_666, 1, [24bpp 666 (666 ezx) Converter Support])
conv_24_rgb_ezx="yes"
else
conv_24_rgb_ezx="no"
fi
], [
if test "x$conv_24_rgb_ezx" = "xyes" ; then
AC_DEFINE(BUILD_CONVERT_24_RGB_666, 1, [24bpp 666 (666 ezx) Converter Support])
fi
]
)
AC_MSG_RESULT($conv_24_rgb_ezx)
#######################################
## Convert to 32bpp RGB 666 (666 ezx)
conv_32_rgb_ezx="yes"
AC_MSG_CHECKING(whether to build 32bpp 666 (666 ezx) converter code)
AC_ARG_ENABLE(convert-32-rgb-ezx,
AC_HELP_STRING([--disable-convert-32-rgb-ezx], [disable 32bpp 666 (666 ezx) converter code]),
[
if test "x$enableval" = "xyes" ; then
AC_DEFINE(BUILD_CONVERT_32_RGB_666, 1, [32bpp 666 (666 ezx) Converter Support])
conv_32_rgb_ezx="yes"
else
conv_32_rgb_ezx="no"
fi
], [
if test "x$conv_32_rgb_ezx" = "xyes" ; then
AC_DEFINE(BUILD_CONVERT_32_RGB_666, 1, [32bpp 666 (666 ezx) Converter Support])
fi
]
)
AC_MSG_RESULT($conv_32_rgb_ezx)
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 32bpp RGB with rotation of 0
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_ROT(32, RGB, 0)
2007-03-02 06:51:17 -08:00
## Convert to 32bpp RGB with rotation of 180
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_ROT(32, RGB, 180)
2004-01-27 18:07:41 -08:00
## Convert to 32bpp RGB with rotation of 270
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_ROT(32, RGB, 270)
2004-01-27 18:07:41 -08:00
## Convert to 32bpp RGB with rotation of 90
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_ROT(32, RGB, 90)
2003-12-09 17:12:13 -08:00
2009-11-06 07:15:37 -08:00
#######################################
## Convert to 8bpp grayscale with 256 value, no palette
EVAS_CONVERT_COLOR(8, GRY, 1)
## Convert to 8bpp grayscale with 16 value, no palette
EVAS_CONVERT_COLOR(8, GRY, 16)
2009-08-16 18:41:07 -07:00
#######################################
## Convert to 8bpp grayscale, 64-palette
conv_8_grayscale_64="yes"
AC_MSG_CHECKING(whether to build 8bpp grayscale 64-palette converter code)
AC_ARG_ENABLE(convert-8-grayscale-64,
AC_HELP_STRING([--disable-convert-8-grayscale-64], [disable 8bpp grayscale 64-palette converter code]),
[
2010-01-13 15:23:49 -08:00
if test "x$enableval" = "xyes"; then
2009-08-16 18:41:07 -07:00
AC_DEFINE(BUILD_CONVERT_8_GRAYSCALE_64, 1, [8bpp Grayscale 64-palette Converter Support])
conv_8_grayscale_64="yes"
else
conv_8_grayscale_64="no"
fi
], [
if test "x$conv_8_grayscale_64" = "xyes"; then
AC_DEFINE(BUILD_CONVERT_8_GRAYSCALE_64, 1, [32bpp Grayscale 64-palette Converter Support])
fi
]
)
AC_MSG_RESULT($conv_8_grayscale_64)
2007-11-04 23:55:17 -08:00
## valgrind
want_valgrind="no"
2006-06-07 16:30:15 -07:00
have_valgrind="no"
2004-05-02 01:41:11 -07:00
2007-11-04 23:55:17 -08:00
AC_MSG_CHECKING(whether to enable build with valgrind)
2006-06-07 16:30:15 -07:00
AC_ARG_ENABLE(valgrind,
2007-11-04 23:55:17 -08:00
AC_HELP_STRING([--enable-valgrind], [enable valgrind fixes to stop false reports]),
[ want_valgrind=$enableval ]
2006-06-07 16:30:15 -07:00
)
2007-11-04 23:55:17 -08:00
AC_MSG_RESULT($want_valgrind)
2006-06-07 16:30:15 -07:00
2007-11-04 23:55:17 -08:00
if test x$want_valgrind = "xyes"; then
PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0,
[
AC_DEFINE(HAVE_VALGRIND, 1, [Valgrind support])
have_valgrind=yes
2009-09-27 12:57:01 -07:00
requirement_evas="valgrind ${requirement_evas}"
2007-11-04 23:55:17 -08:00
],
2007-12-06 01:36:06 -08:00
[
if test "x$want_valgrind" = "xyes" -a "x$use_strict" = "xyes" ; then
AC_MSG_ERROR([Valgrind not found (strict dependencies checking)])
fi
]
2007-11-04 23:55:17 -08:00
)
2006-06-07 16:30:15 -07:00
fi
2004-05-02 01:41:11 -07:00
2010-03-17 21:57:40 -07:00
## Examples
install_examples="yes"
AC_ARG_ENABLE([install-examples],
AC_HELP_STRING([--disable-install-examples],
[disable installing examples (compiled or just source).
@<:@default==enabled@:>@]),
[
if test "x${enableval}" = "xyes" ; then
install_examples="yes"
else
install_examples="no"
fi
],
[install_examples="yes"])
AM_CONDITIONAL([INSTALL_EXAMPLES], [test "x${install_examples}" = "xyes"])
build_examples="no"
AC_ARG_ENABLE([build-examples],
AC_HELP_STRING([--enable-build-examples],
2011-06-09 10:00:24 -07:00
[enable building examples (this requires extra denpendencies. if you don't have them installed yet, don't build with this option or it will fail. build again when you have it, overriding the previous installation). @<:@default==disabled@:>@]),
2010-03-17 21:57:40 -07:00
[
if test "x${enableval}" = "xyes" ; then
build_examples="yes"
2011-06-09 10:00:24 -07:00
# put in here the dependencies for Evas' examples. they are
# meant to be 'real world' usage examples, thus one will be
# using higher level libraries on these programs
2011-07-08 18:20:18 -07:00
PKG_CHECK_MODULES([ECORE_EVAS], [ecore-evas ecore], [], [build_examples="no"])
2011-06-17 14:16:59 -07:00
PKG_CHECK_MODULES([EDJE], [edje],
2011-07-08 20:04:13 -07:00
[edje_cc=$($PKG_CONFIG --variable=prefix edje)/bin/edje_cc],
2011-07-08 18:20:18 -07:00
[build_examples="no"])
2011-06-17 14:16:59 -07:00
AC_SUBST(edje_cc)
2010-03-17 21:57:40 -07:00
else
build_examples="no"
fi
],
[build_examples="no"])
AM_CONDITIONAL([BUILD_EXAMPLES], [test "x${build_examples}" = "xyes"])
2011-07-08 19:59:24 -07:00
## Unit tests, coverage
EFL_CHECK_TESTS([enable_tests="yes"], [enable_tests="no"])
EFL_CHECK_COVERAGE([${enable_tests}], [enable_coverage="yes"], [enable_coverage="no"])
2012-02-24 03:21:57 -08:00
EVAS_CFLAGS="${EVAS_CFLAGS} ${EFL_COVERAGE_CFLAGS} ${EXOTIC_CFLAGS}"
EVAS_LIBS="${EVAS_LIBS} ${EFL_COVERAGE_LIBS} ${EXOTIC_LIBS}"
2011-07-08 19:59:24 -07:00
if test "x$enable_coverage" = "xyes" ; then
EVAS_CFLAGS="${EVAS_CFLAGS} ${EFL_DEBUG_CFLAGS}"
fi
AC_SUBST(EVAS_CFLAGS)
AC_SUBST(EVAS_LIBS)
2010-03-17 21:57:40 -07:00
2004-01-27 18:07:41 -08:00
#####################################################################
## Fill in flags
2002-11-07 23:46:04 -08:00
2003-12-15 17:58:17 -08:00
AC_SUBST(altivec_cflags)
2006-10-27 20:02:23 -07:00
AC_SUBST(pthread_cflags)
AC_SUBST(pthread_libs)
2009-09-27 12:57:01 -07:00
AC_SUBST(requirement_evas)
2006-10-27 20:02:23 -07:00
2008-11-23 22:18:31 -08:00
2004-01-27 18:07:41 -08:00
#####################################################################
## Output
2002-11-07 23:46:04 -08:00
AC_OUTPUT([
Makefile
2008-09-09 13:27:58 -07:00
evas-directfb.pc
2008-04-11 16:41:44 -07:00
evas-fb.pc
2007-03-31 09:07:43 -07:00
evas-opengl-x11.pc
2010-01-28 18:31:37 -08:00
evas-opengl-sdl.pc
2011-11-02 11:23:54 -07:00
evas-opengl-cocoa.pc
2007-03-31 09:07:43 -07:00
evas-software-buffer.pc
evas-software-x11.pc
2010-07-27 17:16:06 -07:00
evas-software-8-x11.pc
2007-08-14 13:21:06 -07:00
evas-software-16-x11.pc
2009-04-22 20:20:51 -07:00
evas-software-gdi.pc
2007-07-16 01:13:40 -07:00
evas-software-ddraw.pc
2007-08-17 02:16:26 -07:00
evas-direct3d.pc
2008-04-23 12:17:59 -07:00
evas-software-16-wince.pc
2007-10-28 07:11:56 -07:00
evas-software-sdl.pc
2011-11-05 10:49:37 -07:00
evas-psl1ght.pc
2011-12-14 10:44:20 -08:00
evas-wayland-shm.pc
2011-12-26 15:13:52 -08:00
evas-wayland-egl.pc
2005-03-04 06:34:35 -08:00
evas.pc
2009-01-11 02:20:22 -08:00
doc/evas.dox
doc/Makefile
2011-06-06 13:27:01 -07:00
doc/Doxyfile
2002-11-07 23:46:04 -08:00
src/Makefile
2009-05-01 00:11:07 -07:00
src/bin/Makefile
2012-05-03 14:01:31 -07:00
src/bin/loaders/Makefile
src/bin/loaders/jpeg/Makefile
src/bin/loaders/png/Makefile
src/bin/loaders/eet/Makefile
src/bin/loaders/tiff/Makefile
src/bin/loaders/xpm/Makefile
src/bin/loaders/bmp/Makefile
src/bin/loaders/ico/Makefile
src/bin/loaders/tga/Makefile
src/bin/loaders/pmaps/Makefile
src/bin/loaders/wbmp/Makefile
src/bin/loaders/psd/Makefile
2002-11-07 23:46:04 -08:00
src/lib/Makefile
src/lib/canvas/Makefile
src/lib/file/Makefile
2007-07-16 00:25:35 -07:00
src/lib/cache/Makefile
2012-05-03 14:01:31 -07:00
src/lib/cache2/Makefile
2009-05-01 00:11:07 -07:00
src/lib/cserve/Makefile
2012-05-03 14:01:31 -07:00
src/lib/cserve2/Makefile
2002-11-07 23:46:04 -08:00
src/lib/engines/Makefile
src/lib/engines/common/Makefile
2006-05-02 00:28:49 -07:00
src/lib/engines/common/evas_op_add/Makefile
src/lib/engines/common/evas_op_blend/Makefile
src/lib/engines/common/evas_op_copy/Makefile
src/lib/engines/common/evas_op_mask/Makefile
src/lib/engines/common/evas_op_mul/Makefile
src/lib/engines/common/evas_op_sub/Makefile
2010-07-27 17:16:06 -07:00
src/lib/engines/common_8/Makefile
2008-04-11 17:32:30 -07:00
src/lib/engines/common_16/Makefile
2006-01-14 04:13:38 -08:00
src/modules/Makefile
src/modules/engines/Makefile
2006-03-02 00:06:10 -08:00
src/modules/engines/software_generic/Makefile
2009-04-22 20:20:51 -07:00
src/modules/engines/software_gdi/Makefile
2007-05-26 23:43:23 -07:00
src/modules/engines/software_ddraw/Makefile
2007-08-17 02:16:26 -07:00
src/modules/engines/direct3d/Makefile
2008-04-23 12:17:59 -07:00
src/modules/engines/software_16_wince/Makefile
2006-01-14 04:13:38 -08:00
src/modules/engines/software_x11/Makefile
src/modules/engines/fb/Makefile
src/modules/engines/buffer/Makefile
2008-09-09 13:27:58 -07:00
src/modules/engines/directfb/Makefile
2006-01-14 04:13:38 -08:00
src/modules/engines/gl_common/Makefile
src/modules/engines/gl_x11/Makefile
2010-01-28 18:31:37 -08:00
src/modules/engines/gl_sdl/Makefile
2011-11-02 11:23:54 -07:00
src/modules/engines/gl_cocoa/Makefile
2011-11-05 10:49:37 -07:00
src/modules/engines/psl1ght/Makefile
2010-07-27 17:16:06 -07:00
src/modules/engines/software_8/Makefile
src/modules/engines/software_8_x11/Makefile
2007-04-29 08:45:40 -07:00
src/modules/engines/software_16/Makefile
src/modules/engines/software_16_x11/Makefile
2008-04-11 17:32:30 -07:00
src/modules/engines/software_16_sdl/Makefile
2011-12-14 10:44:20 -08:00
src/modules/engines/wayland_shm/Makefile
2011-12-26 15:13:52 -08:00
src/modules/engines/wayland_egl/Makefile
2006-01-14 12:03:42 -08:00
src/modules/loaders/Makefile
src/modules/loaders/edb/Makefile
src/modules/loaders/eet/Makefile
2006-04-08 05:22:18 -07:00
src/modules/loaders/gif/Makefile
2006-01-14 12:03:42 -08:00
src/modules/loaders/jpeg/Makefile
src/modules/loaders/png/Makefile
2006-04-08 17:10:47 -07:00
src/modules/loaders/tiff/Makefile
2006-08-12 02:16:30 -07:00
src/modules/loaders/xpm/Makefile
2010-05-30 06:04:34 -07:00
src/modules/loaders/bmp/Makefile
2011-03-11 07:07:25 -08:00
src/modules/loaders/ico/Makefile
2010-05-30 10:48:19 -07:00
src/modules/loaders/tga/Makefile
2006-08-17 09:43:30 -07:00
src/modules/loaders/svg/Makefile
2008-03-01 07:27:20 -08:00
src/modules/loaders/pmaps/Makefile
2011-02-01 01:38:48 -08:00
src/modules/loaders/wbmp/Makefile
2011-04-24 12:45:43 -07:00
src/modules/loaders/psd/Makefile
2011-04-25 18:03:06 -07:00
src/modules/loaders/generic/Makefile
2006-01-15 02:35:02 -08:00
src/modules/savers/Makefile
src/modules/savers/edb/Makefile
src/modules/savers/eet/Makefile
src/modules/savers/jpeg/Makefile
src/modules/savers/png/Makefile
2006-04-10 00:27:54 -07:00
src/modules/savers/tiff/Makefile
2011-05-05 04:05:44 -07:00
src/static_deps/Makefile
src/static_deps/liblinebreak/Makefile
2002-11-07 23:46:04 -08:00
src/lib/include/Makefile
2010-03-17 21:57:40 -07:00
src/examples/Makefile
2011-07-08 19:59:24 -07:00
src/tests/Makefile
2012-07-31 23:29:26 -07:00
data/Makefile
2005-03-04 06:34:35 -08:00
evas.spec
2002-11-07 23:46:04 -08:00
])
2010-08-31 15:36:35 -07:00
#####################################################################
## Sanity Checks
if test "x$build_pthreads" = "xno" ; then
2010-09-15 10:20:37 -07:00
if test "x$build_pipe_render" = "xyes" ; then
echo "ERROR: PThreads off, but pipe rendering on. Pipe rendering"
2010-08-31 15:36:35 -07:00
echo " needs thread support."
exit 1
fi
2010-09-15 10:20:37 -07:00
fi
if test "x${has_pthreads}" = "xno" ; then
if test "x$build_async_preload" = "xyes" ; then
echo "ERROR: PThreads off, but Async Preload on. Async Preload"
2010-08-31 15:36:35 -07:00
echo " needs thread support."
exit 1
fi
fi
2004-01-27 18:07:41 -08:00
#####################################################################
## Info
echo
echo
echo
echo "------------------------------------------------------------------------"
echo "$PACKAGE $VERSION"
echo "------------------------------------------------------------------------"
echo
echo "Configuration Options Summary:"
echo
echo "Engines:"
2009-07-14 14:16:08 -07:00
echo " Software Memory Buffer.....: $have_evas_engine_buffer"
echo " Software X11...............: $have_evas_engine_software_x11 (Xlib: $have_evas_engine_software_xlib) (XCB: $have_evas_engine_software_xcb)"
2011-07-07 17:17:52 -07:00
echo $ECHO_N " OpenGL X11.................: $have_evas_engine_gl_x11 (Xlib: $have_evas_engine_gl_xlib) (XCB: $have_evas_engine_gl_xcb) $ECHO_C"
2010-01-28 22:12:35 -08:00
if test "x$have_evas_engine_gl_x11" = "xyes"; then
2010-08-31 15:36:35 -07:00
echo "(GLES: $gl_flavor_gles) (SGX: $gles_variety_sgx) (s3c6410: $gles_variety_s3c6410)"
2010-01-28 22:12:35 -08:00
else
2010-08-31 15:36:35 -07:00
echo
2010-01-28 22:12:35 -08:00
fi
2009-07-14 14:16:08 -07:00
echo " Software GDI...............: $have_evas_engine_software_gdi"
echo " Software DirectDraw........: $have_evas_engine_software_ddraw"
echo " Direct3d...................: $have_evas_engine_direct3d"
2012-02-23 08:25:07 -08:00
echo " OpenGL SDL.................: $have_evas_engine_gl_sdl $ECHO_C"
2010-01-28 22:12:35 -08:00
if test "x$have_evas_engine_gl_sdl" = "xyes"; then
2010-08-31 15:36:35 -07:00
echo "(GLES: $gl_flavor_gles) (SGX: $gles_variety_sgx) (s3c6410: $gles_variety_s3c6410)"
2010-01-28 22:12:35 -08:00
else
2010-08-31 15:36:35 -07:00
echo
2010-01-28 22:12:35 -08:00
fi
2011-11-02 11:23:54 -07:00
echo " OpenGL Cocoa...............: $have_evas_engine_gl_cocoa"
2009-07-14 14:16:08 -07:00
echo " Software Framebuffer.......: $have_evas_engine_fb"
echo " DirectFB...................: $have_evas_engine_directfb"
2011-11-05 10:49:37 -07:00
echo " PSL1GHT....................: $have_evas_engine_psl1ght"
2010-07-27 17:16:06 -07:00
echo " Software 8bit grayscale....: $have_evas_engine_software_8"
2010-08-31 15:36:35 -07:00
# FIXME: kill software 16bit
2009-07-14 14:16:08 -07:00
echo " Software 16bit ............: $have_evas_engine_software_16"
echo " Software 16bit X11.........: $have_evas_engine_software_16_x11"
echo " Software 16bit WinCE.......: $have_evas_engine_software_16_wince"
2011-09-06 23:53:28 -07:00
echo " Software 16bit SDL.........: $have_evas_engine_software_16_sdl (primitive: $sdl_primitive)"
2011-12-14 10:44:20 -08:00
echo " Wayland Shm................: $have_evas_engine_wayland_shm"
2011-12-26 15:13:52 -08:00
echo " Wayland Egl................: $have_evas_engine_wayland_egl"
2004-01-27 18:07:41 -08:00
echo
echo "Image Loaders:"
2011-03-14 13:33:44 -07:00
echo " BMP.....................: $have_evas_image_loader_bmp"
2009-07-14 14:16:08 -07:00
echo " EDB.....................: $have_evas_image_loader_edb"
echo " EET.....................: $have_evas_image_loader_eet"
2011-05-14 22:42:30 -07:00
echo " GENERIC.................: $have_evas_image_loader_generic"
2009-07-14 14:16:08 -07:00
echo " GIF.....................: $have_evas_image_loader_gif"
2011-03-14 13:33:44 -07:00
echo " ICO.....................: $have_evas_image_loader_ico"
2009-09-21 05:49:52 -07:00
echo " JPEG....................: $have_evas_image_loader_jpeg (region: $have_jpeg_region)"
2009-07-14 14:16:08 -07:00
echo " PMAPS...................: $have_evas_image_loader_pmaps"
echo " PNG.....................: $have_evas_image_loader_png"
2011-05-14 22:42:30 -07:00
echo " PSD.....................: $have_evas_image_loader_psd"
2009-07-14 14:16:08 -07:00
echo " SVG.....................: $have_evas_image_loader_svg"
2010-10-26 01:22:33 -07:00
echo " TGA.....................: $have_evas_image_loader_tga"
2011-03-14 13:33:44 -07:00
echo " TIFF....................: $have_evas_image_loader_tiff"
2011-02-01 01:38:48 -08:00
echo " WBMP....................: $have_evas_image_loader_wbmp"
2011-03-14 13:33:44 -07:00
echo " XPM.....................: $have_evas_image_loader_xpm"
2004-01-27 18:07:41 -08:00
echo
echo "Font Sourcing Systems:"
2008-11-20 14:00:50 -08:00
echo " EET.....................: $have_evas_font_loader_eet"
2006-03-18 20:29:57 -08:00
echo
echo "Font Searching Systems:"
2007-03-23 15:26:26 -07:00
echo " Fontconfig..............: $have_fontconfig"
2011-01-30 02:34:56 -08:00
echo
echo "Font Rendering Helpers:"
2009-05-19 20:14:29 -07:00
echo " Fribidi.................: $have_fribidi"
2011-01-30 02:34:56 -08:00
echo " Harfbuzz................: $have_harfbuzz"
2011-05-05 04:05:44 -07:00
echo " liblinebreak............: $have_linebreak"
2004-01-27 18:07:41 -08:00
# FIXME: add non freetype2 font engine support
# FIXME: make freetype2 optional
echo
echo "CPU Specific Extensions:"
echo " Fallback C Code.........: $build_cpu_c"
echo " MMX.....................: $build_cpu_mmx"
echo " SSE.....................: $build_cpu_sse"
2011-09-29 19:35:31 -07:00
echo " SSE3....................: $build_cpu_sse3"
2004-01-27 18:07:41 -08:00
echo " ALTIVEC.................: $build_cpu_altivec"
2009-03-13 23:48:25 -07:00
echo " NEON....................: $build_cpu_neon"
2007-04-15 09:47:58 -07:00
echo " Thread Support..........: $build_pthreads"
2009-06-27 06:07:00 -07:00
echo
2009-05-01 00:11:07 -07:00
echo "Features:"
2008-09-12 06:14:08 -07:00
echo " MAGIC_DEBUG.............: $want_evas_magic_debug"
2009-05-01 00:11:07 -07:00
echo " Cache Server............: $want_evas_cserve"
2012-05-03 14:01:31 -07:00
echo " Cache Server 2..........: $want_evas_cserve2"
2004-01-27 18:07:41 -08:00
echo
2010-08-27 19:43:15 -07:00
dnl
dnl ... DISABLED! some testing has shown that this seems to have some
dnl nasty bugs on both x86 and arm (tegra2 dual core tested), so just
dnl disabling this for now until it can be fixed
dnl
2010-09-01 05:25:25 -07:00
echo " Threaded Pipe Rendering.: $build_pipe_render"
2009-05-01 00:11:07 -07:00
echo " Async Events............: $build_async_events"
echo " Async Image Preload.....: $build_async_preload"
2008-04-30 05:21:31 -07:00
echo
2010-06-13 22:59:23 -07:00
echo " Word Cache..............: $want_word_cache"
echo " Metric Cache............: $want_metric_cache"
echo
2011-12-23 03:50:29 -08:00
echo " Pixman..................: $have_pixman"
echo " Pixman Fonts............: $have_pixman_font"
echo " Pixman Rects............: $have_pixman_rect"
echo " Pixman Lines............: $have_pixman_line"
echo " Pixman Polygons.........: $have_pixman_poly"
echo " Pixman Images...........: $have_pixman_image"
echo " Pixman Image ScaleSample: $have_pixman_image_scale_sample"
echo
echo " Tiled 32BPP rotate......: $have_tile_rotate"
echo
2004-01-27 18:07:41 -08:00
echo "ARGB Software Engine Options:"
echo " Sampling Scaler.........: $scaler_sample"
echo " Smooth Scaler...........: $scaler_smooth"
2008-05-28 22:43:12 -07:00
# FIXME: add an mmx scaler routine
2004-01-27 18:07:41 -08:00
echo " YUV Converter...........: $conv_yuv"
# FIXME: add more YUV format and colorvariant support
echo
echo "ARGB Conversion Options:"
echo " Smaller Dither Mask.....: $conv_small_dither"
2008-09-30 23:37:31 -07:00
echo " Line Dither Mask........: $conv_line_dither"
2007-04-24 04:16:24 -07:00
echo " No Dither Mask for 16bpp: $conv_no_dither"
2004-01-27 18:07:41 -08:00
echo " 8bpp RGB 332............: $conv_8_rgb_332"
echo " 8bpp RGB 666............: $conv_8_rgb_666"
echo " 8bpp RGB 232............: $conv_8_rgb_232"
echo " 8bpp RGB 222............: $conv_8_rgb_222"
echo " 8bpp RGB 221............: $conv_8_rgb_221"
echo " 8bpp RGB 121............: $conv_8_rgb_121"
echo " 8bpp RGB 111............: $conv_8_rgb_111"
2009-11-06 07:15:37 -08:00
echo " 8bpp Grayscale (256)....: $conv_8_gry_1"
echo " 8bpp Grayscale (16).....: $conv_8_gry_16"
2009-08-16 18:41:07 -07:00
echo " 8bpp Grayscale 64-pal...: $conv_8_grayscale_64"
2010-08-31 15:36:35 -07:00
# FIXME: add grayscale and B&W support to standard x converters
2004-01-27 18:07:41 -08:00
echo " 16bpp RGB 565...........: $conv_16_rgb_565"
2007-02-10 09:23:09 -08:00
echo " 16bpp BGR 565...........: $conv_16_bgr_565"
2004-01-27 18:07:41 -08:00
echo " 16bpp RGB 555...........: $conv_16_rgb_555"
echo " 16bpp RGB 444...........: $conv_16_rgb_444"
echo " 16bpp RGB 565 (444 ipaq): $conv_16_rgb_ipq"
# FIXME: add 555 (444 ipaq) support
# FIXME: add 30bpp support
2010-08-31 15:36:35 -07:00
# FIXME: add palletted support (ugh!)
2004-01-27 18:07:41 -08:00
# FIXME: add 8bpp and below rotation
echo " 16bpp Rotation 0........: $conv_16_rgb_rot_0"
echo " 16bpp Rotation 90.......: $conv_16_rgb_rot_90"
2007-03-02 06:51:17 -08:00
echo " 16bpp Rotation 180......: $conv_16_rgb_rot_180"
2004-01-27 18:07:41 -08:00
echo " 16bpp Rotation 270......: $conv_16_rgb_rot_270"
echo " 24bpp RGB 888...........: $conv_24_rgb_888"
echo " 24bpp BGR 888...........: $conv_24_bgr_888"
2009-04-02 18:00:54 -07:00
echo " 24bpp RGB 666 (666 ezx).: $conv_24_rgb_ezx"
2004-01-27 18:07:41 -08:00
# FIXME: add 24bpp rotation
echo " 32bpp RGB 8888..........: $conv_32_rgb_8888"
echo " 32bpp RGBX 8888.........: $conv_32_rgbx_8888"
echo " 32bpp BGR 8888..........: $conv_32_bgr_8888"
echo " 32bpp BGRX 8888.........: $conv_32_bgrx_8888"
2009-04-02 18:00:54 -07:00
echo " 32bpp RGB 666 (666 ezx).: $conv_32_rgb_ezx"
2004-01-27 18:07:41 -08:00
echo " 32bpp Rotation 0........: $conv_32_rgb_rot_0"
echo " 32bpp Rotation 90.......: $conv_32_rgb_rot_90"
2007-03-02 06:51:17 -08:00
echo " 32bpp Rotation 180......: $conv_32_rgb_rot_180"
2004-01-27 18:07:41 -08:00
echo " 32bpp Rotation 270......: $conv_32_rgb_rot_270"
echo
2009-01-11 02:20:22 -08:00
echo "Documentation.............: ${build_doc}"
2010-03-17 21:57:40 -07:00
echo "Examples..................: install:${install_examples} build:${build_examples}"
2011-07-08 19:59:24 -07:00
if test "x${enable_tests}" = "xyes" ; then
echo "Tests.....................: ${enable_tests} (make check)"
else
echo "Tests.....................: ${enable_tests}"
fi
if test "x${enable_coverage}" = "xyes" ; then
echo "Coverage..................: ${enable_coverage} (make coverage)"
else
echo "Coverage..................: ${enable_coverage}"
fi
2009-01-11 02:20:22 -08:00
echo
2009-12-11 02:54:57 -08:00
echo "Compilation............: make (or gmake)"
echo " CPPFLAGS.............: $CPPFLAGS"
echo " CFLAGS...............: $CFLAGS"
echo " CXXFLAGS.............: $CXXFLAGS"
echo " LDFLAGS..............: $LDFLAGS"
2004-01-27 18:07:41 -08:00
echo
2009-12-11 02:54:57 -08:00
echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
echo " prefix...............: $prefix"
2004-01-27 18:07:41 -08:00
echo
2009-07-14 14:16:08 -07:00
if test "x${have_static_module}" = "xyes" ; then
echo -e "\0033\01331;31mWarning\0033\01331;0m: You are trying to link statically one or more modules to Evas."
2011-03-18 20:44:33 -07:00
echo " You must know what you are doing, or else you will have a lot of"
echo " problems. And Kenny will be killed."
2009-07-14 14:16:08 -07:00
echo " Think about that."
echo
fi