2010-11-20 20:37:52 -08:00
|
|
|
=-------##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
2010-05-29 02:48:05 -07:00
|
|
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
|
|
|
m4_define([v_maj], [0])
|
|
|
|
m4_define([v_min], [7])
|
|
|
|
m4_define([v_mic], [0])
|
2010-06-18 07:45:42 -07:00
|
|
|
m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v export || 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-29 02:48:05 -07:00
|
|
|
##-- When released, remove the dnl on the below line
|
|
|
|
dnl m4_undefine([v_rev])
|
|
|
|
##-- When doing snapshots - change soname. remove dnl on below line
|
2010-12-03 16:52:03 -08:00
|
|
|
m4_define([relname], [ver-pre-svn-09])
|
2010-05-29 02:48:05 -07:00
|
|
|
m4_define([v_rel], [-release relname])
|
|
|
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
|
|
|
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])])
|
|
|
|
m4_define([lt_rev], m4_eval(v_maj + v_min))
|
|
|
|
m4_define([lt_cur], v_mic)
|
|
|
|
m4_define([lt_age], v_min)
|
|
|
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
|
|
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
|
|
|
|
|
|
|
AC_INIT([elementary], [v_ver], [enlightenment-devel@lists.sourceforge.net])
|
2008-09-29 23:58:56 -07:00
|
|
|
AC_PREREQ(2.52)
|
2009-05-23 01:45:57 -07:00
|
|
|
AC_CONFIG_SRCDIR([configure.ac])
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2008-12-18 16:34:56 -08:00
|
|
|
AC_CANONICAL_BUILD
|
|
|
|
AC_CANONICAL_HOST
|
2008-09-29 23:58:56 -07:00
|
|
|
|
2011-01-06 11:01:34 -08:00
|
|
|
AC_CONFIG_HEADERS([elementary_config.h])
|
|
|
|
AH_TOP([
|
|
|
|
#ifndef EFL_CONFIG_H__
|
|
|
|
#define EFL_CONFIG_H__
|
|
|
|
])
|
|
|
|
AH_BOTTOM([
|
|
|
|
#endif /* EFL_CONFIG_H__ */
|
|
|
|
])
|
|
|
|
|
2009-10-06 09:56:21 -07:00
|
|
|
AM_INIT_AUTOMAKE([1.6 dist-bzip2])
|
|
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
2008-09-29 23:58:56 -07:00
|
|
|
|
2010-10-07 14:34:43 -07:00
|
|
|
AC_GNU_SOURCE
|
|
|
|
|
2008-09-29 23:58:56 -07:00
|
|
|
AC_C_BIGENDIAN
|
|
|
|
AC_ISC_POSIX
|
|
|
|
AC_PROG_CC
|
|
|
|
AM_PROG_CC_STDC
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_C_CONST
|
2010-03-09 09:51:30 -08:00
|
|
|
AC_C___ATTRIBUTE__
|
2009-02-25 03:00:07 -08:00
|
|
|
AC_FUNC_ALLOCA
|
2008-09-29 23:58:56 -07:00
|
|
|
|
|
|
|
AC_LIBTOOL_WIN32_DLL
|
|
|
|
define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
|
|
|
|
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
|
2010-05-29 02:48:05 -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])
|
|
|
|
version_info="lt_rev:lt_cur:lt_age"
|
|
|
|
release_info="v_rel"
|
2008-09-29 23:58:56 -07:00
|
|
|
AC_SUBST(version_info)
|
2010-05-29 02:48:05 -07:00
|
|
|
AC_SUBST(release_info)
|
|
|
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
|
|
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
|
|
|
VMAJ=v_maj
|
|
|
|
VMIN=v_min
|
|
|
|
AC_SUBST(VMAJ)
|
|
|
|
AC_SUBST(VMIN)
|
2008-12-18 16:34:56 -08:00
|
|
|
|
2011-01-30 01:50:56 -08:00
|
|
|
# pkg-config
|
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
EDJE_VERSION=`$PKG_CONFIG edje --modversion | awk -F . '{printf("%s.0.0", $1);}'`
|
2010-08-17 06:29:23 -07:00
|
|
|
|
2009-05-23 01:45:57 -07:00
|
|
|
case "$host_os" in
|
|
|
|
mingw32ce* | cegcc*)
|
|
|
|
MODULE_ARCH="$host_os-$host_cpu"
|
2010-08-17 06:29:23 -07:00
|
|
|
MODULE_EDJE="$host_os-$host_cpu"
|
2009-05-23 01:45:57 -07:00
|
|
|
;;
|
|
|
|
*)
|
2010-08-17 06:29:23 -07:00
|
|
|
MODULE_ARCH="$host_os-$host_cpu-v_maj.v_min.v_mic"
|
|
|
|
MODULE_EDJE="$host_os-$host_cpu-${EDJE_VERSION}"
|
2009-05-23 01:45:57 -07:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_SUBST(release_info)
|
2009-10-25 05:46:49 -07:00
|
|
|
AC_SUBST(MODULE_ARCH)
|
|
|
|
AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
|
2010-08-17 06:29:23 -07:00
|
|
|
AC_SUBST(MODULE_EDJE)
|
|
|
|
AC_DEFINE_UNQUOTED(MODULE_EDJE, "$MODULE_EDJE", "Edje module architecture")
|
2009-10-25 05:46:49 -07:00
|
|
|
|
|
|
|
EFL_SHARED_EXTENSION="${shrext_cmds}"
|
|
|
|
AC_DEFINE_UNQUOTED(EFL_SHARED_EXTENSION, "${EFL_SHARED_EXTENSION}", "Shared extension")
|
2009-07-06 23:46:51 -07:00
|
|
|
|
2009-01-22 13:43:07 -08:00
|
|
|
requirement_elm=""
|
|
|
|
|
2008-09-29 23:58:56 -07:00
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
|
2009-10-02 23:57:32 -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)
|
|
|
|
|
2011-02-03 07:52:49 -08:00
|
|
|
#================================================
|
|
|
|
if test "x${prefix}" = "xNONE"; then
|
|
|
|
LOCALE_DIR="${ac_default_prefix}/share/locale"
|
|
|
|
else
|
|
|
|
LOCALE_DIR="${prefix}/share/locale"
|
|
|
|
fi
|
|
|
|
AC_SUBST(LOCALE_DIR)
|
|
|
|
#================================================
|
|
|
|
|
2008-12-18 16:34:56 -08:00
|
|
|
lt_enable_auto_import=""
|
|
|
|
ELM_UNIX_DEF="#undef"
|
|
|
|
ELM_WIN32_DEF="#undef"
|
|
|
|
ELM_WINCE_DEF="#undef"
|
2009-01-22 13:43:07 -08:00
|
|
|
have_windows="no"
|
2008-12-18 16:34:56 -08:00
|
|
|
case "$host_os" in
|
2009-01-22 13:43:07 -08:00
|
|
|
mingw32ce* | cegcc*)
|
2008-12-18 16:34:56 -08:00
|
|
|
PKG_CHECK_MODULES([EVIL], [evil])
|
|
|
|
AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed.])
|
|
|
|
lt_enable_auto_import="-Wl,--enable-auto-import"
|
|
|
|
ELM_WINCE_DEF="#define"
|
2009-01-22 13:43:07 -08:00
|
|
|
have_windows="yes"
|
2009-01-13 01:20:53 -08:00
|
|
|
dnl managed by evil
|
|
|
|
AC_DEFINE(HAVE_DLADDR)
|
2010-09-27 14:49:00 -07:00
|
|
|
dlopen_libs=-ldl
|
2009-01-22 13:43:07 -08:00
|
|
|
requirement_elm="evil"
|
2009-04-19 21:48:58 -07:00
|
|
|
have_socket="no"
|
2009-01-13 01:20:53 -08:00
|
|
|
;;
|
2008-12-18 16:34:56 -08:00
|
|
|
mingw*)
|
|
|
|
PKG_CHECK_MODULES([EVIL], [evil])
|
|
|
|
AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed.])
|
|
|
|
lt_enable_auto_import="-Wl,--enable-auto-import"
|
|
|
|
ELM_WIN32_DEF="#define"
|
2009-01-22 13:43:07 -08:00
|
|
|
have_windows="yes"
|
2010-09-27 14:49:00 -07:00
|
|
|
dnl managed by evil
|
|
|
|
AC_DEFINE(HAVE_DLADDR)
|
|
|
|
dlopen_libs=-ldl
|
2009-01-22 13:43:07 -08:00
|
|
|
requirement_elm="evil"
|
2009-04-19 21:48:58 -07:00
|
|
|
have_socket="no"
|
|
|
|
;;
|
|
|
|
*solaris*)
|
2009-11-29 08:10:40 -08:00
|
|
|
ELM_UNIX_DEF="#define"
|
2009-04-19 21:48:58 -07:00
|
|
|
have_socket="yes"
|
|
|
|
AC_CHECK_LIB([socket], [connect], [], [have_socket="no"])
|
2008-12-18 16:34:56 -08:00
|
|
|
;;
|
2010-03-06 08:46:08 -08:00
|
|
|
darwin*)
|
|
|
|
ELM_UNIX_DEF="#define"
|
|
|
|
have_socket="yes"
|
|
|
|
AC_CHECK_HEADERS([crt_externs.h])
|
2010-10-01 12:03:19 -07:00
|
|
|
AC_DEFINE([environ], [(*_NSGetEnviron())], ["apple doesn't follow POSIX in this case."])
|
2010-03-06 08:46:08 -08:00
|
|
|
;;
|
2008-12-18 16:34:56 -08:00
|
|
|
*)
|
|
|
|
ELM_UNIX_DEF="#define"
|
2009-01-13 01:20:53 -08:00
|
|
|
AC_CHECK_FUNCS(dlopen, res=yes, res=no)
|
|
|
|
if test "x$res" = "xyes"; then
|
2009-07-06 23:46:51 -07:00
|
|
|
AC_CHECK_FUNCS(dladdr, AC_DEFINE(HAVE_DLADDR))
|
2009-01-13 01:20:53 -08:00
|
|
|
else
|
2009-07-06 23:46:51 -07:00
|
|
|
AC_CHECK_LIB(dl, dlopen, res=yes, res=no)
|
|
|
|
if test "x$res" = "xyes"; then
|
|
|
|
AC_CHECK_LIB(dl, dladdr, AC_DEFINE(HAVE_DLADDR))
|
|
|
|
dlopen_libs=-ldl
|
|
|
|
else
|
|
|
|
AC_MSG_ERROR(Cannot find dlopen)
|
|
|
|
fi
|
2009-01-13 01:20:53 -08:00
|
|
|
fi
|
2009-04-19 21:48:58 -07:00
|
|
|
have_socket="yes"
|
2008-12-18 16:34:56 -08:00
|
|
|
;;
|
|
|
|
esac
|
2009-04-19 21:48:58 -07:00
|
|
|
AM_CONDITIONAL([BUILD_RUN], [test "x$have_socket" = "xyes"])
|
2009-03-01 01:33:41 -08:00
|
|
|
|
2011-06-28 23:40:45 -07:00
|
|
|
m4_ifdef([v_mic],
|
|
|
|
[
|
|
|
|
EFL_COMPILER_FLAG([-Wall])
|
|
|
|
EFL_COMPILER_FLAG([-W])
|
|
|
|
])
|
|
|
|
|
2009-03-01 15:52:13 -08:00
|
|
|
have_fork="no"
|
2010-09-17 06:29:53 -07:00
|
|
|
want_quicklaunch="auto"
|
|
|
|
AC_ARG_ENABLE([quick-launch],
|
|
|
|
[AC_HELP_STRING([--disable-quick-launch], [disable quick-launch support, @<:@default=detect@:>@])],
|
|
|
|
[want_quicklaunch=$enableval], [])
|
|
|
|
|
|
|
|
if test "x$want_quicklaunch" != "xno"; then
|
|
|
|
AC_CHECK_FUNCS(fork, [
|
|
|
|
have_fork="yes"
|
|
|
|
AC_DEFINE(HAVE_FORK)
|
|
|
|
])
|
|
|
|
fi
|
2009-03-01 15:52:13 -08:00
|
|
|
AM_CONDITIONAL([BUILD_QUICKLAUNCH], [test "x$have_fork" = "xyes"])
|
2009-03-01 01:33:41 -08:00
|
|
|
|
2009-01-13 01:20:53 -08:00
|
|
|
AC_SUBST(dlopen_libs)
|
2008-12-18 16:34:56 -08:00
|
|
|
AC_SUBST(lt_enable_auto_import)
|
|
|
|
AC_SUBST(ELM_UNIX_DEF)
|
|
|
|
AC_SUBST(ELM_WIN32_DEF)
|
|
|
|
AC_SUBST(ELM_WINCE_DEF)
|
2008-09-29 23:58:56 -07:00
|
|
|
|
2009-01-22 13:43:07 -08:00
|
|
|
AM_CONDITIONAL([ELEMENTARY_WINDOWS_BUILD], [test "x${have_windows}" = "xyes"])
|
|
|
|
|
2008-12-18 16:34:56 -08:00
|
|
|
PKG_CHECK_MODULES([ELEMENTARY],
|
|
|
|
[
|
2011-04-24 01:18:00 -07:00
|
|
|
eina >= 1.0.999
|
2010-08-16 03:16:39 -07:00
|
|
|
eet >= 1.4.0
|
2011-03-18 00:35:19 -07:00
|
|
|
evas >= 1.0.999
|
2010-08-16 03:16:39 -07:00
|
|
|
ecore >= 1.0.0
|
|
|
|
ecore-evas >= 1.0.0
|
|
|
|
ecore-file >= 1.0.0
|
|
|
|
ecore-imf >= 1.0.0
|
2011-03-18 00:35:19 -07:00
|
|
|
edje >= 1.0.999
|
2008-12-18 16:34:56 -08:00
|
|
|
]
|
|
|
|
)
|
2010-09-17 06:18:13 -07:00
|
|
|
|
2011-06-25 16:39:43 -07:00
|
|
|
PKG_CHECK_MODULES([EIO],
|
|
|
|
[eio],
|
|
|
|
[
|
|
|
|
have_eio="yes"
|
|
|
|
AC_DEFINE(HAVE_EIO, 1, [Use EIO for asynchronous file access])
|
|
|
|
requirement_elm="eio ${requirement_elm}"
|
|
|
|
],
|
|
|
|
[have_eio="no"])
|
2011-05-25 12:08:38 -07:00
|
|
|
|
|
|
|
AM_CONDITIONAL([HAVE_EIO], [test "x${have_eio}" = "xyes"])
|
|
|
|
|
2011-01-30 01:50:56 -08:00
|
|
|
requirement_elm="edje >= 1.0.0 ecore-file >= 1.0.0 ecore-evas >= 1.0.0 ecore >= 1.0.0 evas >= 1.0.0 eet >= 1.4.0 eina >= 1.0.0 ${requirement_elm}"
|
2009-01-22 13:43:07 -08:00
|
|
|
|
2008-12-18 16:34:56 -08:00
|
|
|
have_elementary_x="no"
|
2010-03-03 14:34:57 -08:00
|
|
|
want_elementary_x="auto"
|
|
|
|
AC_ARG_ENABLE([ecore-x],
|
|
|
|
[AC_HELP_STRING([--disable-ecore-x], [disable ecore-x support. @<:@default=detect@:>@])],
|
|
|
|
[want_elementary_x=$enableval], [])
|
|
|
|
|
|
|
|
if test "x$want_elementary_x" != "xno"; then
|
|
|
|
PKG_CHECK_MODULES([ELEMENTARY_X],
|
2010-08-16 03:16:39 -07:00
|
|
|
[ecore-x >= 1.0.0],
|
2010-03-03 14:34:57 -08:00
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_ELEMENTARY_X, 1, [X11 support for Elementary])
|
|
|
|
have_elementary_x="yes"
|
2010-08-16 03:16:39 -07:00
|
|
|
requirement_elm="ecore-x >= 1.0.0 ${requirement_elm}"
|
2010-03-03 14:34:57 -08:00
|
|
|
],
|
|
|
|
[have_elementary_x="no"]
|
|
|
|
)
|
|
|
|
else
|
|
|
|
have_elementary_x="no"
|
|
|
|
fi
|
|
|
|
if test "x$want_elementary_x" = "xyes" -a "x$have_elementary_x" = "xno"; then
|
|
|
|
AC_MSG_ERROR([ecore-x support requested, but not found by pkg-config.])
|
|
|
|
fi
|
|
|
|
|
2008-12-09 22:43:21 -08:00
|
|
|
|
2008-12-09 22:33:24 -08:00
|
|
|
have_elementary_fb="no"
|
2010-03-03 14:34:57 -08:00
|
|
|
want_elementary_fb="auto"
|
|
|
|
AC_ARG_ENABLE([ecore-fb],
|
|
|
|
[AC_HELP_STRING([--disable-ecore-fb], [disable ecore-fb support. @<:@default=detect@:>@])],
|
|
|
|
[want_elementary_fb=$enableval], [])
|
|
|
|
|
|
|
|
if test "x$want_elementary_fb" != "xno"; then
|
|
|
|
PKG_CHECK_MODULES([ELEMENTARY_FB],
|
2010-08-16 03:16:39 -07:00
|
|
|
[ecore-fb >= 1.0.0],
|
2010-03-03 14:34:57 -08:00
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_ELEMENTARY_FB, 1, [FB support for Elementary])
|
|
|
|
have_elementary_fb="yes"
|
2010-08-16 03:16:39 -07:00
|
|
|
requirement_elm="ecore-fb >= 1.0.0 ${requirement_elm}"
|
2010-03-03 14:34:57 -08:00
|
|
|
],
|
|
|
|
[have_elementary_fb="no"]
|
|
|
|
)
|
|
|
|
else
|
|
|
|
have_elementary_fb="no"
|
|
|
|
fi
|
|
|
|
if test "x$want_elementary_fb" = "xyes" -a "x$have_elementary_fb" = "xno"; then
|
|
|
|
AC_MSG_ERROR([ecore-fb support requested, but not found by pkg-config.])
|
|
|
|
fi
|
2008-12-18 16:34:56 -08:00
|
|
|
|
2010-01-13 00:17:15 -08:00
|
|
|
have_elementary_sdl="no"
|
2010-03-03 14:34:57 -08:00
|
|
|
want_elementary_sdl="auto"
|
|
|
|
AC_ARG_ENABLE([ecore-sdl],
|
|
|
|
[AC_HELP_STRING([--disable-ecore-sdl], [disable ecore-sdl support. @<:@default=detect@:>@])],
|
|
|
|
[want_elementary_sdl=$enableval], [])
|
|
|
|
|
|
|
|
if test "x$want_elementary_sdl" != "xno"; then
|
|
|
|
PKG_CHECK_MODULES([ELEMENTARY_SDL],
|
2010-08-16 03:16:39 -07:00
|
|
|
[ecore-sdl >= 1.0.0],
|
2010-03-03 14:34:57 -08:00
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_ELEMENTARY_SDL, 1, [SDL support for Elementary])
|
|
|
|
have_elementary_sdl="yes"
|
2010-08-16 03:16:39 -07:00
|
|
|
requirement_elm="ecore-sdl >= 1.0.0 ${requirement_elm}"
|
2010-03-03 14:34:57 -08:00
|
|
|
],
|
|
|
|
[have_elementary_sdl="no"]
|
|
|
|
)
|
|
|
|
else
|
|
|
|
have_elementary_sdl="no"
|
|
|
|
fi
|
|
|
|
if test "x$want_elementary_sdl" = "xyes" -a "x$have_elementary_sdl" = "xno"; then
|
|
|
|
AC_MSG_ERROR([ecore-sdl support requested, but not found by pkg-config.])
|
|
|
|
fi
|
2010-01-13 00:17:15 -08:00
|
|
|
|
2009-01-22 13:43:07 -08:00
|
|
|
have_elementary_win32="no"
|
2010-03-03 14:34:57 -08:00
|
|
|
want_elementary_win32="auto"
|
|
|
|
AC_ARG_ENABLE([ecore-win32],
|
|
|
|
[AC_HELP_STRING([--disable-ecore-win32], [disable ecore-win32 support. @<:@default=detect@:>@])],
|
|
|
|
[want_elementary_win32=$enableval], [])
|
|
|
|
|
|
|
|
if test "x$want_elementary_win32" != "xno"; then
|
|
|
|
PKG_CHECK_MODULES([ELEMENTARY_WIN32],
|
2010-08-16 03:16:39 -07:00
|
|
|
[ecore-win32 >= 1.0.0],
|
2010-03-03 14:34:57 -08:00
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_ELEMENTARY_WIN32, 1, [Windows XP support for Elementary])
|
|
|
|
have_elementary_win32="yes"
|
2010-08-16 03:16:39 -07:00
|
|
|
requirement_elm="ecore-win32 >= 1.0.0 ${requirement_elm}"
|
2010-03-03 14:34:57 -08:00
|
|
|
],
|
|
|
|
[have_elementary_win32="no"]
|
|
|
|
)
|
|
|
|
else
|
|
|
|
have_elementary_win32="no"
|
|
|
|
fi
|
|
|
|
if test "x$want_elementary_win32" = "xyes" -a "x$have_elementary_win32" = "xno"; then
|
|
|
|
AC_MSG_ERROR([ecore-win32 support requested, but not found by pkg-config.])
|
|
|
|
fi
|
2009-01-22 13:43:07 -08:00
|
|
|
|
2008-12-18 16:34:56 -08:00
|
|
|
have_elementary_wince="no"
|
2010-03-03 14:34:57 -08:00
|
|
|
want_elementary_wince="auto"
|
|
|
|
AC_ARG_ENABLE([ecore-wince],
|
|
|
|
[AC_HELP_STRING([--disable-ecore-wince], [disable ecore-wince support. @<:@default=detect@:>@])],
|
|
|
|
[want_elementary_wince=$enableval], [])
|
|
|
|
|
|
|
|
if test "x$want_elementary_wince" != "xno"; then
|
|
|
|
PKG_CHECK_MODULES([ELEMENTARY_WINCE],
|
2010-08-16 03:16:39 -07:00
|
|
|
[ecore-wince >= 1.0.0],
|
2010-03-03 14:34:57 -08:00
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_ELEMENTARY_WINCE, 1, [Windows CE support for Elementary])
|
|
|
|
have_elementary_wince="yes"
|
2010-08-16 03:16:39 -07:00
|
|
|
requirement_elm="ecore-wince >= 1.0.0 ${requirement_elm}"
|
2010-03-03 14:34:57 -08:00
|
|
|
],
|
|
|
|
[have_elementary_wince="no"]
|
|
|
|
)
|
|
|
|
else
|
|
|
|
have_elementary_wince="no"
|
|
|
|
fi
|
|
|
|
if test "x$want_elementary_wince" = "xyes" -a "x$have_elementary_wince" = "xno"; then
|
|
|
|
AC_MSG_ERROR([ecore-wince support requested, but not found by pkg-config.])
|
|
|
|
fi
|
2008-12-09 22:33:24 -08:00
|
|
|
|
2008-12-18 17:22:11 -08:00
|
|
|
ELM_EDBUS_DEF="#undef"
|
|
|
|
have_elementary_edbus="no"
|
2010-02-25 13:36:12 -08:00
|
|
|
want_elementary_edbus="auto"
|
|
|
|
AC_ARG_ENABLE([edbus],
|
|
|
|
[AC_HELP_STRING([--disable-edbus], [disable edbus support. @<:@default=detect@:>@])],
|
|
|
|
[want_elementary_edbus=$enableval], [])
|
|
|
|
|
|
|
|
if test "x$want_elementary_edbus" != "xno"; then
|
|
|
|
PKG_CHECK_MODULES([ELEMENTARY_EDBUS],
|
|
|
|
[
|
2010-08-16 03:16:39 -07:00
|
|
|
edbus >= 1.0.0
|
2010-02-25 13:36:12 -08:00
|
|
|
],
|
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_ELEMENTARY_EDBUS, 1, [EDBus support for Elementary])
|
|
|
|
have_elementary_edbus="yes"
|
|
|
|
ELM_EDBUS_DEF="#define"
|
2011-01-06 15:09:56 -08:00
|
|
|
requirement_elm="edbus >= 1.0.0 ${requirement_elm}"
|
2010-02-25 13:36:12 -08:00
|
|
|
],
|
|
|
|
[have_elementary_edbus="no"]
|
|
|
|
)
|
|
|
|
else
|
|
|
|
have_elementary_edbus="no"
|
|
|
|
fi
|
|
|
|
if test "x$want_elementary_edbus" = "xyes" -a "x$have_elementary_edbus" = "xno"; then
|
2011-01-06 15:09:56 -08:00
|
|
|
AC_MSG_ERROR([E_DBus support requested, but no e_dbus found by pkg-config.])
|
2010-02-25 13:36:12 -08:00
|
|
|
fi
|
2008-12-18 17:22:11 -08:00
|
|
|
AC_SUBST(ELM_EDBUS_DEF)
|
|
|
|
|
2009-09-12 02:37:29 -07:00
|
|
|
ELM_EFREET_DEF="#undef"
|
|
|
|
have_elementary_efreet="no"
|
2010-02-25 13:36:12 -08:00
|
|
|
want_elementary_efreet="auto"
|
|
|
|
AC_ARG_ENABLE([efreet],
|
|
|
|
[AC_HELP_STRING([--disable-efreet], [disable efreet support. @<:@default=detect@:>@])],
|
|
|
|
[want_elementary_efreet=$enableval], [])
|
|
|
|
|
|
|
|
if test "x$want_elementary_efreet" != "xno"; then
|
|
|
|
PKG_CHECK_MODULES([ELEMENTARY_EFREET],
|
|
|
|
[
|
2010-08-16 03:16:39 -07:00
|
|
|
efreet >= 1.0.0
|
|
|
|
efreet-mime >= 1.0.0
|
|
|
|
efreet-trash >= 1.0.0
|
2010-02-25 13:36:12 -08:00
|
|
|
],
|
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_ELEMENTARY_EFREET, 1, [Efreet support for Elementary])
|
|
|
|
have_elementary_efreet="yes"
|
|
|
|
ELM_EFREET_DEF="#define"
|
2010-08-16 03:16:39 -07:00
|
|
|
requirement_elm="efreet >= 1.0.0 efreet-mime >= 1.0.0 efreet-trash >= 1.0.0 ${requirement_elm}"
|
2010-02-25 13:36:12 -08:00
|
|
|
],
|
|
|
|
[have_elementary_efreet="no"]
|
|
|
|
)
|
|
|
|
else
|
|
|
|
have_elementary_efreet="no"
|
|
|
|
fi
|
|
|
|
if test "x$want_elementary_efreet" = "xyes" -a "x$have_elementary_efreet" = "xno"; then
|
|
|
|
AC_MSG_ERROR([Efreet support requested, but no efreet/efreet-mime/efreet-trash found by pkg-config.])
|
|
|
|
fi
|
2009-09-12 02:37:29 -07:00
|
|
|
AC_SUBST(ELM_EFREET_DEF)
|
|
|
|
|
2009-11-25 12:37:53 -08:00
|
|
|
ELM_EWEATHER_DEF="#undef"
|
|
|
|
have_elementary_eweather="no"
|
2010-02-25 13:36:12 -08:00
|
|
|
want_elementary_eweather="auto"
|
|
|
|
AC_ARG_ENABLE([eweather],
|
|
|
|
[AC_HELP_STRING([--disable-eweather], [disable eweather support. @<:@default=detect@:>@])],
|
|
|
|
[want_elementary_eweather=$enableval], [])
|
|
|
|
|
|
|
|
if test "x$want_elementary_eweather" != "xno"; then
|
|
|
|
PKG_CHECK_MODULES([ELEMENTARY_EWEATHER],
|
|
|
|
[
|
|
|
|
eweather
|
|
|
|
],
|
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_ELEMENTARY_EWEATHER, 1, [EWeather support for Elementary])
|
|
|
|
have_elementary_eweather="yes"
|
|
|
|
ELM_EWEATHER_DEF="#define"
|
|
|
|
requirement_elm="eweather ${requirement_elm}"
|
|
|
|
],
|
|
|
|
[have_elementary_eweather="no"]
|
|
|
|
)
|
|
|
|
else
|
|
|
|
have_elementary_eweather="no"
|
|
|
|
fi
|
|
|
|
if test "x$want_elementary_eweather" = "xyes" -a "x$have_elementary_eweather" = "xno"; then
|
|
|
|
AC_MSG_ERROR([Eweather support requested, but no eweather found by pkg-config.])
|
|
|
|
fi
|
2009-11-25 12:37:53 -08:00
|
|
|
AC_SUBST(ELM_EWEATHER_DEF)
|
|
|
|
|
2011-06-25 07:30:10 -07:00
|
|
|
ELM_EMAP_DEF="#undef"
|
|
|
|
have_elementary_emap="no"
|
|
|
|
want_elementary_emap="auto"
|
|
|
|
AC_ARG_ENABLE([emap],
|
|
|
|
[AC_HELP_STRING([--disable-emap], [disable emap support. @<:@default=detect@:>@])],
|
|
|
|
[want_elementary_emap=$enableval], [])
|
|
|
|
|
|
|
|
if test "x$want_elementary_emap" != "xno"; then
|
|
|
|
PKG_CHECK_MODULES([ELEMENTARY_EMAP],
|
|
|
|
[
|
|
|
|
emap
|
|
|
|
],
|
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_ELEMENTARY_EMAP, 1, [EMap support for Elementary])
|
|
|
|
have_elementary_emap="yes"
|
|
|
|
ELM_EMAP_DEF="#define"
|
|
|
|
requirement_elm="emap ${requirement_elm}"
|
|
|
|
],
|
|
|
|
[have_elementary_emap="no"]
|
|
|
|
)
|
|
|
|
else
|
|
|
|
have_elementary_emap="no"
|
|
|
|
fi
|
|
|
|
if test "x$want_elementary_emap" = "xyes" -a "x$have_elementary_emap" = "xno"; then
|
|
|
|
AC_MSG_ERROR([Emap support requested, but no emap found by pkg-config.])
|
|
|
|
fi
|
|
|
|
AC_SUBST(ELM_EMAP_DEF)
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-15 11:34:04 -07:00
|
|
|
ELM_ETHUMB_DEF="#undef"
|
|
|
|
have_elementary_ethumb="no"
|
2010-03-15 11:46:27 -07:00
|
|
|
want_elementary_ethumb="auto"
|
|
|
|
AC_ARG_ENABLE([ethumb],
|
|
|
|
[AC_HELP_STRING([--disable-ethumb], [disable ethumb support. @<:@default=detect@:>@])],
|
|
|
|
[want_elementary_ethumb=$enableval], [])
|
|
|
|
|
|
|
|
if test "x$want_elementary_ethumb" != "xno"; then
|
|
|
|
PKG_CHECK_MODULES([ELEMENTARY_ETHUMB],
|
|
|
|
[
|
|
|
|
ethumb_client
|
|
|
|
],
|
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_ELEMENTARY_ETHUMB, 1, [Ethumb support for Elementary])
|
|
|
|
have_elementary_ethumb="yes"
|
|
|
|
ELM_ETHUMB_DEF="#define"
|
2010-07-09 19:28:01 -07:00
|
|
|
requirement_elm="ethumb_client ${requirement_elm}"
|
2010-03-15 11:46:27 -07:00
|
|
|
],
|
|
|
|
[have_elementary_ethumb="no"]
|
|
|
|
)
|
|
|
|
else
|
|
|
|
have_elementary_ethumb="no"
|
|
|
|
fi
|
|
|
|
if test "x$want_elementary_ethumb" = "xyes" -a "x$have_elementary_ethumb" = "xno"; then
|
|
|
|
AC_MSG_ERROR([Ethumb support requested, but no ethumb found by pkg-config.])
|
|
|
|
fi
|
2010-03-15 11:34:04 -07:00
|
|
|
AC_SUBST(ELM_ETHUMB_DEF)
|
|
|
|
|
2010-10-01 12:03:23 -07:00
|
|
|
ELM_DEBUG_DEF="#undef"
|
|
|
|
want_elementary_debug="no"
|
|
|
|
AC_ARG_ENABLE([debug],
|
|
|
|
[AC_HELP_STRING([--enable-debug], [enable elementary debug support. @<:@default=disabled@:>@])],
|
|
|
|
[want_elementary_debug=$enableval], [])
|
|
|
|
|
|
|
|
if test "x$want_elementary_debug" = "xyes"; then
|
|
|
|
AC_DEFINE(HAVE_ELEMENTARY_DEBUG, 1, [Elementary debug.])
|
|
|
|
ELM_DEBUG_DEF="#define"
|
|
|
|
fi
|
|
|
|
AC_SUBST(ELM_DEBUG_DEF)
|
|
|
|
|
2008-12-18 17:22:11 -08:00
|
|
|
ELM_ALLOCA_H_DEF="#undef"
|
|
|
|
AC_CHECK_HEADER(alloca.h, [ELM_ALLOCA_H_DEF="#define"])
|
|
|
|
AC_SUBST(ELM_ALLOCA_H_DEF)
|
|
|
|
|
2009-02-05 02:23:04 -08:00
|
|
|
ELM_LIBINTL_H_DEF="#undef"
|
|
|
|
AC_CHECK_HEADER(libintl.h, [ELM_LIBINTL_H_DEF="#define"])
|
|
|
|
AC_SUBST(ELM_LIBINTL_H_DEF)
|
|
|
|
|
2010-11-20 20:37:52 -08:00
|
|
|
EFL_CHECK_THREADS([
|
2011-01-17 00:34:20 -08:00
|
|
|
TH=1
|
2010-11-20 20:37:52 -08:00
|
|
|
] , [
|
|
|
|
AC_MSG_ERROR(no thread support found. required.)
|
2010-11-20 03:12:15 -08:00
|
|
|
exit 1
|
|
|
|
])
|
2010-11-20 20:37:52 -08:00
|
|
|
AC_SUBST(EFL_PTHREAD_CFLAGS)
|
|
|
|
AC_SUBST(EFL_PTHREAD_LIBS)
|
2010-11-20 03:12:15 -08:00
|
|
|
|
2010-11-20 20:37:52 -08:00
|
|
|
my_libs="-lm"
|
2008-09-29 23:58:56 -07:00
|
|
|
AC_SUBST(my_libs)
|
2009-01-22 13:43:07 -08:00
|
|
|
AC_SUBST(requirement_elm)
|
2008-09-29 23:58:56 -07:00
|
|
|
|
2010-08-22 00:19:29 -07:00
|
|
|
EFL_WITH_BIN([eet], [eet-eet], [eet])
|
|
|
|
EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
|
|
|
|
|
2009-05-15 04:45:14 -07:00
|
|
|
EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
|
|
|
|
|
2010-09-17 06:18:13 -07:00
|
|
|
EFL_ENABLE_BIN([elementary-test])
|
|
|
|
EFL_ENABLE_BIN([elementary-config])
|
|
|
|
|
2011-02-03 07:52:49 -08:00
|
|
|
m4_ifdef([AM_GNU_GETTEXT_VERSION], [
|
|
|
|
AM_GNU_GETTEXT_VERSION([0.12.1])
|
|
|
|
])
|
|
|
|
|
|
|
|
m4_ifdef([AM_GNU_GETTEXT], [
|
|
|
|
AM_GNU_GETTEXT([external])
|
|
|
|
po_makefile_in=po/Makefile.in
|
|
|
|
AM_CONDITIONAL([HAVE_PO], [true])
|
|
|
|
],[
|
|
|
|
AM_CONDITIONAL([HAVE_PO], [false])
|
|
|
|
])
|
|
|
|
AC_SUBST(LTLIBINTL)
|
|
|
|
|
2011-06-16 11:58:44 -07:00
|
|
|
### Build and install examples
|
|
|
|
EFL_CHECK_BUILD_EXAMPLES([enable_build_examples="yes"], [enable_build_examples="no"])
|
|
|
|
EFL_CHECK_INSTALL_EXAMPLES([enable_install_examples="yes"], [enable_install_examples="no"])
|
|
|
|
|
2011-02-03 07:52:49 -08:00
|
|
|
|
2008-09-29 23:58:56 -07:00
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
2010-02-21 11:18:26 -08:00
|
|
|
elementary.spec
|
2008-09-29 23:58:56 -07:00
|
|
|
elementary.pc
|
2009-05-15 04:45:14 -07:00
|
|
|
doc/elementary.dox
|
|
|
|
doc/Makefile
|
2011-06-13 07:51:06 -07:00
|
|
|
doc/Doxyfile
|
2008-09-29 23:58:56 -07:00
|
|
|
src/Makefile
|
|
|
|
src/lib/Makefile
|
2008-12-18 16:34:56 -08:00
|
|
|
src/lib/Elementary.h
|
2008-09-29 23:58:56 -07:00
|
|
|
src/bin/Makefile
|
2009-12-01 03:03:14 -08:00
|
|
|
src/modules/Makefile
|
|
|
|
src/modules/test_entry/Makefile
|
2010-12-21 01:14:47 -08:00
|
|
|
src/modules/test_map/Makefile
|
2009-12-05 17:22:54 -08:00
|
|
|
src/edje_externals/Makefile
|
2011-06-15 07:22:11 -07:00
|
|
|
src/examples/Makefile
|
2008-09-29 23:58:56 -07:00
|
|
|
data/Makefile
|
|
|
|
data/themes/Makefile
|
2008-09-30 04:20:07 -07:00
|
|
|
data/images/Makefile
|
2008-10-07 00:45:49 -07:00
|
|
|
data/objects/Makefile
|
2008-11-04 21:27:42 -08:00
|
|
|
data/desktop/Makefile
|
2010-01-22 12:07:47 -08:00
|
|
|
data/edje_externals/Makefile
|
2010-01-18 01:38:52 -08:00
|
|
|
config/Makefile
|
|
|
|
config/default/Makefile
|
|
|
|
config/standard/Makefile
|
|
|
|
config/illume/Makefile
|
2011-02-03 07:52:49 -08:00
|
|
|
$po_makefile_in
|
2008-09-29 23:58:56 -07:00
|
|
|
])
|
2008-12-10 00:47:41 -08:00
|
|
|
|
|
|
|
#####################################################################
|
|
|
|
## Info
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo "------------------------------------------------------------------------"
|
|
|
|
echo "$PACKAGE $VERSION"
|
|
|
|
echo "------------------------------------------------------------------------"
|
|
|
|
echo
|
|
|
|
echo "Configuration Options Summary:"
|
|
|
|
echo
|
2009-12-11 02:58:10 -08:00
|
|
|
echo " Engines:"
|
2010-09-17 06:18:13 -07:00
|
|
|
echo " X11....................: ${have_elementary_x}"
|
|
|
|
echo " Framebuffer............: ${have_elementary_fb}"
|
|
|
|
echo " SDL....................: ${have_elementary_sdl}"
|
|
|
|
echo " Windows XP.............: ${have_elementary_win32}"
|
|
|
|
echo " Windows CE.............: ${have_elementary_wince}"
|
2008-12-10 00:47:41 -08:00
|
|
|
echo
|
2009-12-11 02:58:10 -08:00
|
|
|
echo " Features:"
|
2010-09-17 06:18:13 -07:00
|
|
|
echo " EDBus..................: ${have_elementary_edbus}"
|
|
|
|
echo " EFreet.................: ${have_elementary_efreet}"
|
|
|
|
echo " EWeather...............: ${have_elementary_eweather}"
|
2011-06-25 07:30:10 -07:00
|
|
|
echo " EMap...................: ${have_elementary_emap}"
|
2010-09-17 06:18:13 -07:00
|
|
|
echo " Ethumb.................: ${have_elementary_ethumb}"
|
2010-09-17 06:29:53 -07:00
|
|
|
echo " Quick Launch...........: ${have_fork}"
|
2011-05-25 12:08:38 -07:00
|
|
|
echo " eio....................: ${have_eio}"
|
2010-09-17 06:18:13 -07:00
|
|
|
echo
|
|
|
|
echo " eet......................: ${eet_eet}"
|
|
|
|
echo " edje_cc..................: ${edje_cc}"
|
2008-12-18 17:22:11 -08:00
|
|
|
echo
|
2010-09-17 06:18:13 -07:00
|
|
|
echo " Build elementary_test....: ${have_elementary_test}"
|
2011-06-15 07:22:11 -07:00
|
|
|
echo " Examples.............: ${enable_build_examples}"
|
|
|
|
echo " Examples installed...: ${enable_install_examples}"
|
2010-09-17 06:18:13 -07:00
|
|
|
echo " Build elementary_config..: ${have_elementary_config}"
|
2009-02-05 02:23:04 -08:00
|
|
|
echo
|
2010-09-17 06:18:13 -07:00
|
|
|
echo "Compilation................: make (or gmake)"
|
|
|
|
echo " CPPFLAGS.................: $CPPFLAGS"
|
|
|
|
echo " CFLAGS...................: $CFLAGS"
|
|
|
|
echo " LDFLAGS..................: $LDFLAGS"
|
2008-12-10 00:47:41 -08:00
|
|
|
echo
|
2010-09-17 06:18:13 -07:00
|
|
|
echo "Installation...............: make install (as root if needed, with 'su' or 'sudo')"
|
|
|
|
echo " prefix...................: $prefix"
|
2008-12-10 00:47:41 -08:00
|
|
|
echo
|