2010-05-29 03:37:52 -07:00
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
m4_define([v_maj], [0])
2013-11-04 23:44:30 -08:00
m4_define([v_min], [18])
2013-07-25 01:46:14 -07:00
m4_define([v_mic], [99])
m4_define([v_rev], m4_esyscmd([(git rev-list --count HEAD 2>/dev/null || echo 0) | tr -d '\n']))dnl
2010-05-29 03:37:52 -07:00
##-- When released, remove the dnl on the below line
2012-12-21 16:07:48 -08:00
dnl m4_undefine([v_rev])
2013-07-25 01:46:14 -07:00
m4_define([relname], [0.18.99])
2010-05-29 03:37:52 -07:00
##-- When doing snapshots - change soname. remove dnl on below line
2013-01-24 06:02:55 -08:00
m4_define([relname], [ver-pre-01])
2012-11-05 07:49:57 -08:00
dnl m4_define([v_rel], [-release relname])
2010-05-29 03:37:52 -07:00
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2010-12-03 16:53:01 -08: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])])
2012-11-05 07:49:57 -08:00
m4_define([lt_cur], m4_eval(v_maj + v_min))
m4_define([lt_rev], v_mic)
2010-05-29 03:37:52 -07:00
m4_define([lt_age], v_min)
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2013-07-25 01:46:14 -07:00
AC_INIT([enlightenment], [v_ver], [enlightenment-devel@lists.sourceforge.net])
2009-05-15 01:58:54 -07:00
AC_PREREQ([2.52])
AC_CONFIG_SRCDIR([configure.ac])
2009-01-14 22:29:59 -08:00
AC_CONFIG_MACRO_DIR([m4])
2005-02-07 07:34:20 -08:00
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
2008-01-24 19:35:49 -08:00
2011-01-06 10:58:09 -08:00
AC_CONFIG_HEADERS([config.h])
AH_TOP([
#ifndef EFL_CONFIG_H__
#define EFL_CONFIG_H__
])
AH_BOTTOM([
#endif /* EFL_CONFIG_H__ */
])
2012-11-13 01:09:06 -08:00
AM_INIT_AUTOMAKE([1.11 dist-bzip2 -Wno-portability])
2013-07-25 01:46:14 -07:00
AM_SILENT_RULES([yes])
2004-11-24 19:37:45 -08:00
2013-07-25 01:46:14 -07:00
AC_USE_SYSTEM_EXTENSIONS
2012-12-28 12:20:34 -08:00
AC_PROG_MKDIR_P
2005-02-07 07:34:20 -08:00
AC_C_BIGENDIAN
2008-12-07 17:39:33 -08:00
AC_PROG_CC_C99
2007-11-05 23:09:31 -08:00
AM_PROG_CC_C_O
2005-12-14 23:12:00 -08:00
AC_FUNC_ALLOCA
2005-04-12 22:48:38 -07:00
AC_C___ATTRIBUTE__
2004-11-24 19:37:45 -08:00
2012-10-31 13:40:29 -07:00
LT_INIT([disable-static])
2009-01-14 22:29:59 -08:00
2010-05-29 03:37:52 -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])
2012-11-05 07:49:57 -08:00
version_info="lt_cur:lt_rev:lt_age"
2010-05-29 03:37:52 -07:00
release_info="v_rel"
2013-07-25 01:46:14 -07:00
AC_SUBST([version_info])
AC_SUBST([release_info])
2010-05-29 03:37:52 -07:00
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
release=relname
2013-07-25 01:46:14 -07:00
AC_SUBST([release])
2009-04-21 07:17:42 -07:00
2010-08-18 16:08:22 -07:00
PKG_PROG_PKG_CONFIG
2010-01-04 04:27:15 -08:00
EFL_CHECK_PATH_MAX
2005-04-14 02:09:22 -07:00
AC_CHECK_FUNCS(setenv)
AC_CHECK_FUNCS(unsetenv)
2013-11-30 05:26:30 -08:00
AC_CHECK_FUNCS(clearenv)
2013-11-30 18:48:49 -08:00
AC_CHECK_HEADERS(features.h)
case "$host_os" in
darwin*)
AC_DEFINE([environ], [(*_NSGetEnviron())],
["apple doesn't follow POSIX in this case."])
;;
*)
;;
esac
AC_TRY_COMPILE([
#define _GNU_SOURCE 1
#include <unistd.h>
],[
extern char **environ;
],[
AC_DEFINE(HAVE_ENVIRON, 1, [Have environ var])
])
2005-04-14 02:09:22 -07:00
2014-03-24 09:36:29 -07:00
efl_version="1.9.99"
2012-12-11 11:50:09 -08:00
AC_SUBST(efl_version)
2012-09-18 15:20:11 -07:00
2012-11-30 23:19:18 -08:00
AC_CHECK_HEADERS([sys/timerfd.h sys/ptrace.h arpa/inet.h netinet/in.h])
2012-09-21 01:55:22 -07:00
2011-07-25 02:40:18 -07:00
dnl AC_CHECK_HEADERS(X11/extensions/shape.h,, AC_MSG_ERROR([Cannot find X11/extensions/shape.h. Make sure your CFLAGS environment variable contains include lines for the location of this file]))
2010-06-04 09:05:39 -07:00
2005-06-30 21:09:30 -07:00
AC_CHECK_HEADERS(fnmatch.h,, AC_MSG_ERROR([Cannot find fnmatch.h. Make sure your CFLAGS environment variable contains include lines for the location of this file]))
AC_CHECK_FUNCS(fnmatch, res=yes, res=no)
if test "x$res" = "xno"; then
2010-08-29 15:39:35 -07:00
AC_CHECK_LIB(fnmatch, fnmatch, res=yes, res=no)
if test "x$res" = "xno"; then
AC_MSG_ERROR([Cannot find fnmatch() in neither libc nor libfnmatch])
else
fnmatch_libs="-lfnmatch"
fi
2005-06-30 21:09:30 -07:00
fi
2008-12-07 17:39:33 -08:00
2013-07-25 01:46:14 -07:00
AC_SUBST([fnmatch_libs])
2005-10-06 11:49:53 -07:00
2006-03-31 09:26:38 -08:00
have_pam=no
2008-12-07 12:40:17 -08:00
AC_ARG_ENABLE(pam,
2013-07-25 01:46:14 -07:00
AS_HELP_STRING([--enable-pam], [enable PAM support @<:@default=detect@:>@]),
2010-08-29 15:39:35 -07:00
[want_pam=$enableval],
[want_pam=auto]
2008-12-07 12:40:17 -08:00
)
if test "x$want_pam" != "xno" ; then
2010-08-29 15:39:35 -07:00
AC_CHECK_HEADERS(security/pam_appl.h, [
LIBS="$LIBS -lpam"
have_pam=yes
AC_DEFINE(HAVE_PAM, 1, [PAM Authentication Support])])
if test "x$want_pam$have_pam" = "xyesno" ; then
AC_MSG_ERROR([PAM support was requested but not found])
fi
2008-12-07 12:40:17 -08:00
fi
2006-03-31 09:26:38 -08:00
2008-12-07 17:39:33 -08:00
dnl AC_E_CHECK_PKG(VALGRIND, [valgrind >= 2.4.0], [], [:])
2013-07-25 01:46:14 -07:00
AC_SUBST([VALGRIND_CFLAGS])
AC_SUBST([VALGRIND_LIBS])
2005-12-05 17:13:29 -08:00
2010-05-29 03:37:52 -07:00
MODULE_ARCH="$host_os-$host_cpu-relname"
2013-07-25 01:46:14 -07:00
AC_SUBST([MODULE_ARCH])
2005-02-07 07:34:20 -08:00
AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
2004-11-24 19:37:45 -08:00
if test "x${bindir}" = 'xNONE'; then
if test "x${prefix}" = "xNONE"; then
2006-07-13 09:35:46 -07:00
PACKAGE_BIN_DIR="${ac_default_prefix}/bin"
2004-11-24 19:37:45 -08:00
else
2006-07-13 09:35:46 -07:00
PACKAGE_BIN_DIR="${prefix}/bin"
2004-11-24 19:37:45 -08:00
fi
else
2006-07-13 09:35:46 -07:00
PACKAGE_BIN_DIR="${bindir}"
2004-11-24 19:37:45 -08:00
fi
2013-07-25 01:46:14 -07:00
AC_SUBST([PACKAGE_BIN_DIR])
2004-11-24 19:37:45 -08:00
if test "x${libdir}" = 'xNONE'; then
if test "x${prefix}" = "xNONE"; then
2006-07-13 09:35:46 -07:00
PACKAGE_LIB_DIR="${ac_default_prefix}/lib"
2004-11-24 19:37:45 -08:00
else
2006-07-13 09:35:46 -07:00
PACKAGE_LIB_DIR="${prefix}/lib"
2004-11-24 19:37:45 -08:00
fi
else
2006-07-13 09:35:46 -07:00
PACKAGE_LIB_DIR="${libdir}"
2004-11-24 19:37:45 -08:00
fi
2013-07-25 01:46:14 -07:00
AC_SUBST([PACKAGE_LIB_DIR])
2004-11-24 19:37:45 -08:00
2006-06-11 03:23:49 -07:00
if test "x${prefix}" = "xNONE"; then
2006-07-13 09:35:46 -07:00
PACKAGE_DATA_DIR="${ac_default_prefix}/share/${PACKAGE}"
LOCALE_DIR="${ac_default_prefix}/share/locale"
2006-09-03 01:51:32 -07:00
PACKAGE_SYSCONF_DIR="${ac_default_prefix}/etc"
2006-06-11 03:23:49 -07:00
else
2006-07-13 09:35:46 -07:00
PACKAGE_DATA_DIR="${prefix}/share/${PACKAGE}"
LOCALE_DIR="${prefix}/share/locale"
2006-09-03 01:51:32 -07:00
PACKAGE_SYSCONF_DIR="${sysconfdir}"
2004-11-24 19:37:45 -08:00
fi
2013-07-25 01:46:14 -07:00
AC_SUBST([PACKAGE_DATA_DIR])
AC_SUBST([LOCALE_DIR])
AC_SUBST([PACKAGE_SYSCONF_DIR])
2005-04-11 13:25:52 -07:00
2008-01-10 23:33:57 -08:00
#######################################
## Simple X11 build/link
AC_ARG_ENABLE(simple-x11,
2013-07-25 01:46:14 -07:00
AS_HELP_STRING([--enable-simple-x11], [enable simple x11 linking]),
2008-01-10 23:33:57 -08:00
[ want_evas_simple_x11=$enableval ]
)
2011-07-25 02:40:18 -07:00
dnl x_dir=""
dnl x_cflags=""
dnl x_libs=""
dnl AC_PATH_XTRA
dnl AC_CHECK_HEADER(X11/X.h,
dnl [
dnl if test "x$want_evas_simple_x11" = "xyes"; then
dnl x_libs="${x_libs} -lX11 -lXext"
dnl else
dnl x_dir=${x_dir:-/usr/X11R6}
dnl x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
dnl x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
dnl fi
dnl ],[
dnl AC_MSG_ERROR([Cannot find X headers and libraries.])
dnl ]
dnl )
2013-07-25 01:46:14 -07:00
dnl AC_SUBST([x_cflags])
dnl AC_SUBST([x_libs])
2005-06-02 07:56:07 -07:00
2005-08-17 23:15:27 -07:00
cf_cflags=""
cf_libs=""
PCPPFLAGS="${CPPFLAGS}"
CPPFLAGS="${CPPFLAGS} -I /System/Library/Frameworks/CoreFoundation.framework/Headers"
AC_CHECK_HEADERS(CFBase.h,
[
cf_cflags="-I /System/Library/Frameworks/CoreFoundation.framework/Headers"
cf_cflags="${cf_cflags} -I /System/Library/Frameworks/IOKit.framework/Headers"
cf_libs="-framework 'CoreFoundation' -framework 'IOKit'"
]
)
CPPFLAGS="${PCPPFLAGS}"
2013-07-25 01:46:14 -07:00
AC_SUBST([cf_cflags])
AC_SUBST([cf_libs])
2005-08-17 23:15:27 -07:00
2013-03-17 08:07:34 -07:00
PKG_CHECK_MODULES([BLUEZ], [bluez],
[have_bluetooth="yes"],
[have_bluetooth="no"])
AM_CONDITIONAL([HAVE_BLUETOOTH], [test "x${have_bluetooth}"])
2013-03-17 08:18:37 -07:00
if test "x${have_bluetooth}" = "xyes"; then
2013-03-17 08:07:34 -07:00
AC_DEFINE_UNQUOTED([HAVE_BLUETOOTH], [1], [Bluetooth is there])
fi
2009-11-11 13:04:21 -08:00
2013-08-09 17:29:18 -07:00
AC_ARG_ENABLE([systemd],
AC_HELP_STRING([--disable-systemd], [disable systemd support @<:@default=detect@:>@]),
[want_systemd=${enableval}], [want_systemd=auto])
2014-03-14 07:51:31 -07:00
AC_ARG_WITH([systemdunitdir],
AC_HELP_STRING([--with-systemdunitdir=DIR],
[path to systemd user services directory]),
[USER_SESSION_DIR=${withval}])
2013-08-09 17:29:18 -07:00
if test "$want_systemd" == "no"; then
have_systemd_user_session="no"
2014-03-14 07:51:31 -07:00
elif test -n "${USER_SESSION_DIR}"; then
have_systemd_user_session="yes"
AC_MSG_NOTICE([Using systemd user services directory as ${USER_SESSION_DIR}])
2013-08-09 17:29:18 -07:00
else
# Detect systemd user session directory properly
EFL_PKG_CHECK_VAR([USER_SESSION_DIR], [systemd >= 192], [systemduserunitdir],
2013-03-28 07:53:24 -07:00
[have_systemd_user_session="yes"], [have_systemd_user_session="no"])
2013-08-09 17:29:18 -07:00
if test "$want_systemd" = "yes" -a "$have_systemd_user_session" = "no"; then
AC_MSG_ERROR([systemd support wanted, but systemd was not found.])
fi
fi
2013-03-28 07:53:24 -07:00
AM_CONDITIONAL([HAVE_SYSTEMD_USER_SESSION], [test "x${have_systemd_user_session}" = "xyes"])
AC_SUBST([USER_SESSION_DIR])
2009-11-11 13:04:21 -08:00
execinfo_libs=""
AC_CHECK_HEADERS([execinfo.h], [have_execinfo="yes"], [have_execinfo="no"])
if test "x${have_execinfo}" = "xyes" ; then
2010-08-29 15:39:35 -07:00
AC_MSG_CHECKING([whether backtrace_symbols_fd() is in libc])
2009-11-11 13:04:21 -08:00
2010-08-29 15:39:35 -07:00
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[
2009-11-11 13:04:21 -08:00
#include <stdlib.h>
#include <execinfo.h>
2010-08-29 15:39:35 -07:00
]],
[[
2009-11-11 13:04:21 -08:00
backtrace_symbols_fd(NULL, 0, 0);
2010-08-29 15:39:35 -07:00
]])],
[link_execinfo="yes"],
[link_execinfo="no"])
2009-11-11 13:04:21 -08:00
2010-08-29 15:39:35 -07:00
AC_MSG_RESULT([${link_execinfo}])
2009-11-11 13:04:21 -08:00
fi
if test "x${link_execinfo}" = "xno" ; then
2010-08-29 15:39:35 -07:00
AC_MSG_CHECKING([whether backtrace_symbols_fd() is in libexecinfo])
2009-11-11 13:04:21 -08:00
2010-08-29 15:39:35 -07:00
LDFLAGS_save="${LDFLAGS}"
LDFLAGS="${LDFLAGS} -lexecinfo"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[
2009-11-11 13:04:21 -08:00
#include <stdlib.h>
#include <execinfo.h>
2010-08-29 15:39:35 -07:00
]],
[[
2009-11-11 13:04:21 -08:00
backtrace_symbols_fd(NULL, 0, 0);
2010-08-29 15:39:35 -07:00
]])],
[
link_execinfo="yes"
execinfo_libs="-lexecinfo"
],
[link_execinfo="no"])
LDFLAGS="${LDFLAGS_save}"
AC_MSG_RESULT([${link_execinfo}])
2009-11-11 13:04:21 -08:00
fi
2010-04-12 02:47:00 -07:00
dnl if test "x${link_execinfo}" = "xno" ; then
2010-04-12 02:26:54 -07:00
dnl AC_MSG_ERROR([Cannot use backtrace_symbols_fd()])
2010-04-12 02:47:00 -07:00
dnl fi
2009-11-11 13:04:21 -08:00
2006-10-31 12:51:32 -08:00
#ALL_LINGUAS="bg de eo es fi fr ja pl pt ru zh_CN hu sl it cs da sk sv nb nl zh_TW ko"
2006-11-02 16:40:35 -08:00
#ALL_LINGUAS="bg de eo es fi fr ja pt ru zh_CN hu sl it cs da sk sv nb nl zh_TW"
# a lot of .po's are broken
2009-01-17 01:12:31 -08:00
ALL_LINGUAS="bg ca cs da de el eo es fi fr fr_CH he hu it ja ko nb nl pl pt_BR ru sk sl sv tr zh_CN zh_TW"
2013-07-25 01:46:14 -07:00
AC_SUBST([ALL_LINGUAS])
2005-04-23 01:39:41 -07:00
2010-06-19 10:33:38 -07:00
m4_ifdef([AM_GNU_GETTEXT_VERSION], [
2012-03-24 11:58:09 -07:00
AM_GNU_GETTEXT_VERSION([0.17])
2010-06-19 10:33:38 -07:00
])
2013-08-22 03:38:32 -07:00
m4_ifdef([AC_GNU_GETTEXT], [
AC_GNU_GETTEXT([external], [need-ngettext])
2010-06-19 10:33:38 -07:00
po_makefile_in=po/Makefile.in
2011-10-19 10:46:59 -07:00
have_po="yes"
2010-06-19 10:33:38 -07:00
],[
2013-08-22 06:03:35 -07:00
m4_ifdef([AM_GNU_GETTEXT], [
AM_GNU_GETTEXT([external], [need-ngettext])
po_makefile_in=po/Makefile.in
have_po="yes"
],[
2011-10-19 10:46:59 -07:00
have_po="no"
2010-06-19 10:33:38 -07:00
])
2013-08-22 06:03:35 -07:00
])
2013-07-25 01:46:14 -07:00
AC_SUBST([LTLIBINTL])
2005-04-11 13:25:52 -07:00
if test "x$LIBINTL" = "x"; then
LIBINTL="$INTLLIBS"
fi
2011-10-19 10:46:59 -07:00
if test "x${POSUB}" = "x" ; then
have_po="no"
fi
AM_CONDITIONAL([HAVE_PO], [test "x${have_po}" = "xyes"])
2004-11-24 19:37:45 -08:00
AC_CHECK_LIB(dl, dlopen, dlopen_libs=-ldl)
2013-07-25 01:46:14 -07:00
AC_SUBST([dlopen_libs])
2004-11-24 19:37:45 -08:00
2010-01-26 10:21:09 -08:00
AC_MSG_CHECKING([whether to install sysactions.conf])
AC_ARG_ENABLE([install-sysactions],
2010-08-29 15:39:35 -07:00
AS_HELP_STRING([--disable-install-sysactions],[disable installing /etc/enlightenment/sysactions.conf @<:@default=enabled@:>@]),
[e_cv_enable_install_sysactions=$enableval],
AC_CACHE_VAL([e_cv_enable_install_sysactions], [e_cv_enable_install_sysactions=yes]))
2010-01-26 10:21:09 -08:00
AC_MSG_RESULT([$e_cv_enable_install_sysactions])
AM_CONDITIONAL(INSTALL_SYSACTIONS, test x${e_cv_enable_install_sysactions} = xyes)
2011-05-11 20:29:23 -07:00
AC_MSG_CHECKING([whether to install enlightenment.menu])
AC_ARG_ENABLE([install-enlightenment-menu],
AS_HELP_STRING([--disable-enlightenment-menu],[disable installing /etc/xdg/menus/enlightenment.menu @<:@default=enabled@:>@]),
[e_cv_enable_install_enlightenment_menu=$enableval],
AC_CACHE_VAL([e_cv_enable_install_enlightenment_menu], [e_cv_enable_install_enlightenment_menu=yes]))
AC_MSG_RESULT([$e_cv_enable_install_enlightenment_menu])
AM_CONDITIONAL(INSTALL_ENLIGHTENMENT_MENU, test x${e_cv_enable_install_enlightenment_menu} = xyes)
2006-11-07 14:46:24 -08:00
AC_MSG_CHECKING([whether to enable Files menu item])
AC_ARG_ENABLE([files],
2010-08-29 15:39:35 -07:00
AS_HELP_STRING([--disable-files],[disable Files menu item @<:@default=enabled@:>@]),
[e_cv_enable_files=$enableval],
AC_CACHE_VAL([e_cv_enable_files], [e_cv_enable_files=yes]))
2006-11-07 14:46:24 -08:00
if test "[${e_cv_enable_files}]" = yes; then
2010-08-29 15:39:35 -07:00
AC_DEFINE_UNQUOTED([ENABLE_FILES],[1],[enable Files menu item])
2006-11-07 14:46:24 -08:00
fi
AC_MSG_RESULT([$e_cv_enable_files])
2010-05-14 11:19:51 -07:00
AC_ARG_ENABLE([device-hal],
2010-08-29 15:39:35 -07:00
AS_HELP_STRING([--enable-device-hal],[enable hal device backend @<:@default=disabled@:>@]),
2011-11-12 03:24:26 -08:00
[e_cv_want_device_hal=$enableval],
[e_cv_want_device_hal=no])
AC_MSG_CHECKING([whether the HAL device backend is enabled])
AC_MSG_RESULT([${e_cv_want_device_hal}])
2010-05-16 21:22:49 -07:00
2010-05-14 11:19:51 -07:00
AC_ARG_ENABLE([device-udev],
2011-01-03 16:35:09 -08:00
AS_HELP_STRING([--enable-device-udev],[enable udev device backend @<:@default=enabled@:>@]),
2010-08-29 15:39:35 -07:00
[e_cv_want_device_udev=$enableval],
2011-11-12 03:24:26 -08:00
[e_cv_want_device_udev=yes])
AC_MSG_CHECKING([whether the UDEV device backend is enabled])
AC_MSG_RESULT([${e_cv_want_device_udev}])
2010-05-16 21:22:49 -07:00
2011-01-03 16:35:09 -08:00
if test "x$e_cv_want_device_udev" != "xno";then
2012-09-18 15:20:11 -07:00
PKG_CHECK_MODULES([EEZE], [eeze >= ${efl_version} ecore >= ${efl_version} eina >= ${efl_version}],
2010-08-29 15:39:35 -07:00
[
device_backend=eeze
AC_DEFINE_UNQUOTED([HAVE_EEZE],[1],[enable udev support])
2013-01-02 05:16:14 -08:00
])
2011-01-03 16:35:09 -08:00
fi
2011-11-12 03:24:26 -08:00
AC_MSG_CHECKING([which device backend to use])
2011-01-03 16:35:09 -08:00
AC_MSG_RESULT($device_backend)
2011-11-12 03:24:26 -08:00
2011-01-03 17:18:13 -08:00
AM_CONDITIONAL([HAVE_EEZE], [test "x${device_backend}" = "xeeze"])
2011-01-03 18:11:41 -08:00
test "x${device_backend}" = "xeeze" || AC_DEFINE_UNQUOTED([HAVE_HAL],[1],[enable HAL support])
2011-01-03 16:35:09 -08:00
DBUS_MOUNT_CONFIG=1
dbus_mount="dbus-1"
AC_ARG_ENABLE([mount-udisks],
AS_HELP_STRING([--enable-mount-udisks],[enable udisks mounting support @<:@default=enabled@:>@]),
[e_cv_want_mount_udisks=$enableval],
2011-11-12 03:24:26 -08:00
[e_cv_want_mount_udisks=yes])
AC_MSG_CHECKING([whether the UDISKS mounting support is enabled])
AC_MSG_RESULT([${e_cv_want_mount_udisks}])
2011-01-05 09:36:33 -08:00
2013-01-23 23:59:28 -08:00
if test "x${e_cv_want_mount_udisks}" = "xno" ; then
2011-01-03 16:35:09 -08:00
DBUS_MOUNT_CONFIG=0
dbus_mount=
fi
AC_ARG_ENABLE([mount-eeze],
2012-07-30 03:18:59 -07:00
AS_HELP_STRING([--enable-mount-eeze],[enable eeze mounting support @<:@default=disabled@:>@]),
2011-01-03 16:35:09 -08:00
[e_cv_want_mount_eeze=$enableval],
2012-07-30 03:18:59 -07:00
[e_cv_want_mount_eeze=no])
2011-11-12 03:24:26 -08:00
AC_MSG_CHECKING([whether the Eeze mounting support is enabled])
AC_MSG_RESULT([${e_cv_want_mount_eeze}])
2011-01-03 16:35:09 -08:00
eeze_mount=
EEZE_MOUNT_CONFIG=0
2012-07-30 03:18:59 -07:00
if test "x$e_cv_want_mount_eeze" != "xno" && test -z "$dbus_mount" ; then
2011-11-17 22:56:07 -08:00
CPPFLAGS_save="$CPPFLAGS"
LIBS_save="$LIBS"
CPPFLAGS="$EEZE_CFLAGS $CPPFLAGS"
LIBS="$EEZE_LIBS $LIBS"
2010-10-21 01:59:41 -07:00
AC_CHECK_LIB([eeze], [eeze_disk_function],
2011-07-25 02:47:57 -07:00
[
2012-12-11 07:46:18 -08:00
eeze_mount="eeze >= $efl_version ecore-con >= $efl_version"
2011-07-25 02:47:57 -07:00
EEZE_MOUNT_CONFIG=1
AC_DEFINE_UNQUOTED([HAVE_EEZE_MOUNT], [1], [enable eeze mounting])
AC_MSG_NOTICE([eeze mounting enabled])
],
2010-10-21 01:59:41 -07:00
[
2011-07-25 02:40:18 -07:00
AC_MSG_NOTICE([eeze mounting disabled])
e_cv_want_mount_eeze=no
]
2010-10-21 01:59:41 -07:00
)
2011-11-17 22:56:07 -08:00
CPPFLAGS="$CPPFLAGS_save"
LIBS="$LIBS_save"
2011-01-05 18:02:54 -08:00
else
AC_MSG_NOTICE([eeze mounting disabled])
2010-05-14 14:02:46 -07:00
fi
2010-05-14 11:19:51 -07:00
2011-01-02 17:24:15 -08:00
AC_SUBST([EEZE_MOUNT_CONFIG])
2011-01-03 16:35:09 -08:00
AC_SUBST([DBUS_MOUNT_CONFIG])
2010-12-22 17:23:23 -08:00
AM_CONDITIONAL([HAVE_EEZE_MOUNT], [false])
2013-05-07 03:17:02 -07:00
test -n "$dbus_mount" && AC_DEFINE_UNQUOTED([HAVE_UDISKS_MOUNT], [1], [enable Udisks mounting])
AM_CONDITIONAL([HAVE_UDISKS_MOUNT], [test -n "$dbus_mount"])
2011-07-25 02:47:57 -07:00
AM_CONDITIONAL([HAVE_EEZE_MOUNT], [test -n "$eeze_mount"])
2010-10-21 01:59:41 -07:00
2010-02-10 20:39:58 -08:00
# doxygen program for documentation building
EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
2008-12-07 17:39:33 -08:00
# explicit libs for each binary to reduce linkage requirements
PKG_CHECK_MODULES(E_REMOTE, [
2012-09-18 15:20:11 -07:00
ecore >= ${efl_version}
ecore-ipc >= ${efl_version}
eet >= ${efl_version}
eina >= ${efl_version}
2008-12-07 17:39:33 -08:00
])
2011-08-27 09:25:51 -07:00
PKG_CHECK_MODULES(E_START, [
2012-09-18 15:20:11 -07:00
eina >= ${efl_version}
2013-02-14 04:54:08 -08:00
evas >= ${efl_version}
2011-08-27 09:25:51 -07:00
])
2008-12-07 17:39:33 -08:00
PKG_CHECK_MODULES(E_IMC, [
2012-09-18 15:20:11 -07:00
ecore-file >= ${efl_version}
eet >= ${efl_version}
eina >= ${efl_version}
2008-12-07 17:39:33 -08:00
])
PKG_CHECK_MODULES(E_THUMB, [
2012-09-18 15:20:11 -07:00
eina >= ${efl_version}
evas >= ${efl_version}
ecore >= ${efl_version}
ecore-evas >= ${efl_version}
edje >= ${efl_version}
ecore-file >= ${efl_version}
ecore-ipc >= ${efl_version}
eet >= ${efl_version}
efreet >= ${efl_version}
2008-12-07 17:39:33 -08:00
])
2012-10-19 04:10:28 -07:00
PKG_CHECK_MODULES(E_GRABBER, [
eina >= ${efl_version}
eet >= ${efl_version}
])
2011-04-24 01:28:42 -07:00
efm_requires="\
2012-12-11 07:46:18 -08:00
ecore >= $efl_version \
ecore-file >= $efl_version \
ecore-ipc >= $efl_version \
eet >= $efl_version \
efreet >= $efl_version \
2013-04-23 08:08:29 -07:00
eldbus >= $efl_version \
2012-12-11 07:46:18 -08:00
eina >= $efl_version"
2013-01-23 23:59:28 -08:00
efm_requires="$efm_requires $eeze_mount $dbus_mount $udisks_mount"
2011-01-03 16:35:09 -08:00
PKG_CHECK_MODULES(E_FM, [$efm_requires])
2008-12-07 17:39:33 -08:00
2012-06-30 12:28:49 -07:00
PKG_CHECK_MODULES(E_FM_CMDLINE, [
2012-12-03 03:24:40 -08:00
eina >= ${efl_version}
2012-09-18 15:20:11 -07:00
ecore >= ${efl_version}
ecore-file >= ${efl_version}
2013-04-23 08:08:29 -07:00
eldbus >= ${efl_version}
2013-01-12 21:36:22 -08:00
efreet >= ${efl_version}
2012-06-30 12:28:49 -07:00
])
2008-12-07 17:39:33 -08:00
PKG_CHECK_MODULES(E_FM_OP, [
2012-09-18 15:20:11 -07:00
ecore >= ${efl_version}
ecore-file >= ${efl_version}
eina >= ${efl_version}
2008-12-07 17:39:33 -08:00
])
PKG_CHECK_MODULES(E_FM_OPEN, [
2012-12-03 03:24:40 -08:00
eina >= ${efl_version}
eet >= ${efl_version}
2012-09-18 15:20:11 -07:00
ecore >= ${efl_version}
ecore-ipc >= ${efl_version}
ecore-con >= ${efl_version}
2008-12-07 17:39:33 -08:00
])
PKG_CHECK_MODULES(E_SYS, [
2012-09-18 15:20:11 -07:00
eina >= ${efl_version}
2013-03-17 08:07:34 -07:00
ecore >= ${efl_version}
2008-12-07 17:39:33 -08:00
])
2011-07-25 02:40:18 -07:00
PKG_CHECK_MODULES(E_ALERT, [
xcb
2011-08-07 07:03:21 -07:00
xcb-shape
2012-11-09 05:53:08 -08:00
xcb-keysyms
2012-09-18 15:20:11 -07:00
eina >= ${efl_version}
ecore >= ${efl_version}
ecore-ipc >= ${efl_version}
2011-07-25 02:40:18 -07:00
])
2007-03-21 11:59:50 -07:00
PKG_CHECK_MODULES(E, [
2012-09-18 15:20:11 -07:00
evas >= ${efl_version}
ecore >= ${efl_version}
ecore-x >= ${efl_version}
ecore-evas >= ${efl_version}
ecore-input >= ${efl_version}
ecore-input-evas >= ${efl_version}
ecore-con >= ${efl_version}
ecore-ipc >= ${efl_version}
ecore-file >= ${efl_version}
eet >= ${efl_version}
edje >= ${efl_version}
efreet >= ${efl_version}
efreet-mime >= ${efl_version}
efreet-trash >= ${efl_version}
eina >= ${efl_version}
2013-04-23 08:08:29 -07:00
eldbus >= ${efl_version}
2012-09-18 15:20:11 -07:00
eio >= ${efl_version}
2014-03-24 09:32:06 -07:00
eo >= ${efl_version}
2013-10-31 00:58:26 -07:00
elementary >= ${efl_version}
emotion >= ${efl_version}
2011-01-03 16:35:09 -08:00
$eeze_mount
$udisks_mount
2010-05-14 11:19:51 -07:00
$device_backend
2004-11-24 19:37:45 -08:00
])
2011-04-24 01:28:42 -07:00
requirements_e="\
2012-09-18 15:20:11 -07:00
evas >= ${efl_version} \
ecore >= ${efl_version} \
ecore-x >= ${efl_version} \
ecore-evas >= ${efl_version} \
ecore-con >= ${efl_version} \
ecore-ipc >= ${efl_version} \
ecore-file >= ${efl_version} \
eet >= ${efl_version} \
edje >= ${efl_version} \
efreet >= ${efl_version} \
efreet-mime >= ${efl_version} \
2012-11-11 00:37:30 -08:00
efreet-trash >= ${efl_version} \
2012-09-18 15:20:11 -07:00
eina >= ${efl_version} \
2013-10-31 00:58:26 -07:00
eldbus >= ${efl_version} \
2012-09-18 15:20:11 -07:00
eio >= ${efl_version} \
2014-03-24 09:32:06 -07:00
eo >= ${efl_version} \
2013-10-31 00:58:26 -07:00
elementary >= ${efl_version} \
emotion >= ${efl_version} \
2011-04-24 01:28:42 -07:00
$udisks_mount \
$eeze_mount \
$device_backend"
2012-07-04 16:09:39 -07:00
PKG_CHECK_MODULES(E_OPEN, [
2012-12-03 03:40:34 -08:00
eina >= ${efl_version}
2012-09-18 15:20:11 -07:00
ecore >= ${efl_version}
efreet >= ${efl_version}
efreet-mime >= ${efl_version}
2012-07-04 16:09:39 -07:00
])
2013-10-31 00:58:26 -07:00
e_libs="$E_LIBS $LIBINTL $fnmatch_libs $execinfo_libs"
e_cflags="-DUSE_E_CONFIG_H $E_CFLAGS"
2008-10-27 15:52:49 -07:00
e_configflags="-DUSE_E_CONFIG_H"
2008-08-05 22:42:53 -07:00
2013-07-25 01:46:14 -07:00
AC_SUBST([e_libs])
AC_SUBST([e_cflags])
AC_SUBST([e_configflags])
AC_SUBST([requirements_e])
2007-09-25 07:26:36 -07:00
2014-04-10 17:00:50 -07:00
EFL_WITH_BIN([eolian], [eolian-gen], [eolian_gen])
# Force the helper to try external eolian-gen
AM_CONDITIONAL(HAVE_EOLIAN_GEN, [true])
2014-04-10 14:37:24 -07:00
EOLIAN_FLAGS=`pkg-config --variable=eolian_flags eo evas edje`
AC_SUBST(EOLIAN_FLAGS)
2013-01-03 03:26:14 -08:00
PKG_CHECK_EXISTS([xkeyboard-config],[
xkb_base=`$PKG_CONFIG --variable=xkb_base xkeyboard-config 2>/dev/null`
AC_DEFINE_UNQUOTED([XKB_BASE],["$xkb_base"],[Define to the base directory for X keyboard configuration data])
])
2005-10-29 22:36:50 -07:00
profile="SLOW_PC"
2004-11-24 19:37:45 -08:00
AC_ARG_WITH(profile,
2010-08-29 15:39:35 -07:00
AS_HELP_STRING([--with-profile=TARGET_PROFILE],
[specify a target format profile of:
2009-04-27 22:50:02 -07:00
LOWRES_PDA, MEDIUMRES_PDA, HIRES_PDA, SLOW_PC, MEDIUM_PC, FAST_PC]),
[profile=$withval])
AC_MSG_NOTICE([Enlightenment build profile set to $profile])
2004-11-24 19:37:45 -08:00
EDJE_DEF="-DLOWRES_PDA=1 -DMEDIUMRES_PDA=2 -DHIRES_PDA=3 -DSLOW_PC=4 -DMEDIUM_PC=5 -DFAST_PC=6"
2013-06-18 07:39:53 -07:00
EDJE_DEF=$EDJE_DEF" -DE18_PROFILE"=$profile
2013-07-25 01:46:14 -07:00
AC_SUBST([EDJE_DEF])
2004-11-24 19:37:45 -08:00
AC_ARG_WITH(edje-cc,
[ --with-edje-cc=PATH specify a specific path to edje_cc],
[
v=$withval;
edje_cc=$v
echo " Enlightenment edje_cc explicitly set to "$edje_cc;
],[
2007-03-21 11:59:50 -07:00
edje_cc=$(pkg-config --variable=prefix edje)/bin/edje_cc
2004-11-24 19:37:45 -08:00
])
2013-07-25 01:46:14 -07:00
AC_SUBST([edje_cc])
2004-11-24 19:37:45 -08:00
2012-09-18 15:20:11 -07:00
PKG_CHECK_MODULES(EET, [eet >= ${efl_version}])
2008-08-21 23:55:37 -07:00
AC_ARG_WITH(eet-eet,
[ --with-eet-eet=PATH specify a specific path to eet utility],
[
v=$withval;
eet_eet=$v
echo " Enlightenment eet explicitly set to "$eet_eet;
],[
eet_eet=$(pkg-config --variable=prefix eet)/bin/eet
])
2013-07-25 01:46:14 -07:00
AC_SUBST([eet_eet])
2008-08-21 23:55:37 -07:00
2008-01-09 23:43:01 -08:00
AC_DEFINE(E_INTERNAL, 1, "This define can be used to wrap internal E stuff, as config.h isn't exported")
2008-12-07 17:39:33 -08:00
AM_CONDITIONAL(HAVE_BATTERY, false)
define([CHECK_MODULE_BATTERY],
[
2012-12-11 07:46:18 -08:00
AC_E_CHECK_PKG(BATTERY, [ ecore >= $efl_version ecore-file >= $efl_version ecore-con >= $efl_version eina >= $efl_version ], [], [BATTERY=false])
2008-12-07 17:39:33 -08:00
])
2011-10-30 09:47:50 -07:00
have_openbsd="no"
2009-04-10 07:05:50 -07:00
BATTERY_LDFLAGS=
case "$host_os" in
2010-08-29 15:39:35 -07:00
darwin*)
BATTERY_LDFLAGS="-framework Foundation -framework IOKit"
;;
2011-10-30 09:47:50 -07:00
openbsd*)
have_openbsd="yes"
;;
2009-04-10 07:05:50 -07:00
esac
2013-07-25 01:46:14 -07:00
AC_SUBST([BATTERY_LDFLAGS])
2011-10-30 09:47:50 -07:00
AM_CONDITIONAL([HAVE_OPENBSD], [test "x${have_openbsd}" = "xyes"])
2009-04-10 07:05:50 -07:00
2010-02-01 23:33:11 -08:00
AM_CONDITIONAL(HAVE_TEMPERATURE, false)
define([CHECK_MODULE_TEMPERATURE],
[
2012-12-11 07:46:18 -08:00
AC_E_CHECK_PKG(TEMPERATURE, [ ecore >= $efl_version ecore-file >= $efl_version eina >= $efl_version ], [], [TEMPERATURE=false])
2010-02-01 23:33:11 -08:00
])
2013-06-23 05:09:55 -07:00
AM_CONDITIONAL(HAVE_MUSIC_CONTROL, false)
2013-01-02 05:18:51 -08:00
define([CHECK_MODULE_MUSIC_CONTROL],
[
2013-04-23 08:08:29 -07:00
AC_E_CHECK_PKG(MUSIC_CONTROL, [ ecore >= $efl_version eina >= $efl_version eldbus ], [], [MUSIC_CONTROL=false])
2013-01-02 05:18:51 -08:00
])
2012-09-21 03:16:28 -07:00
##have_exchange=no
##AC_ARG_ENABLE(exchange,
2013-07-25 01:46:14 -07:00
## AS_HELP_STRING([--disable-exchange], [disable Exchange support @<:@default=detect@:>@]),
2012-09-21 03:16:28 -07:00
## [want_exchange=$enableval],
## [want_exchange=auto]
##)
2010-02-05 15:22:34 -08:00
2008-12-07 17:39:33 -08:00
AM_CONDITIONAL(HAVE_EXCHANGE, false)
2012-09-21 03:16:28 -07:00
##define([CHECK_MODULE_CONF_THEME],
##[
## if test "x$want_exchange" != "xno" ; then
## AC_E_CHECK_PKG(EXCHANGE, [exchange], [], [:])
## else
## AC_MSG_NOTICE([requested to not use exchange library])
## fi
##])
2008-07-31 20:08:16 -07:00
2011-04-08 14:03:36 -07:00
have_enotify=no
AM_CONDITIONAL([HAVE_ENOTIFY], [false])
AC_ARG_ENABLE([enotify],
2013-07-25 01:46:14 -07:00
AS_HELP_STRING([--disable-enotify], [disable Enotify support @<:@default=detect@:>@]),
2011-04-08 14:03:36 -07:00
[e_cv_want_enotify=$enableval],
AC_CACHE_VAL([e_cv_want_enotify], [e_cv_want_enotify=yes])
)
if test "x$e_cv_want_enotify" != "xno" ; then
2013-04-23 08:08:29 -07:00
AC_E_CHECK_PKG(ENOTIFY, [ eldbus >= $efl_version ],
2011-04-08 14:03:36 -07:00
[
AC_DEFINE_UNQUOTED([HAVE_ENOTIFY], [1], [enable enotify])
],
[
AC_MSG_NOTICE([enotify disabled])
e_cv_want_enotify=no
])
else
AC_MSG_NOTICE([enotify disabled])
e_cv_want_enotify=no
fi
AC_SUBST([ENOTIFY_CFLAGS])
AC_SUBST([ENOTIFY_LIBS])
2011-10-27 19:49:24 -07:00
AM_CONDITIONAL(HAVE_NOTIFICATION, false)
define([CHECK_MODULE_NOTIFICATION],
[
if test "x$e_cv_want_enotify" = "xno" ; then
NOTIFICATION=false
fi
])
2011-04-08 14:03:36 -07:00
2013-07-25 01:46:14 -07:00
2008-07-31 20:08:16 -07:00
AM_CONDITIONAL(HAVE_ALSA, false)
2008-12-07 17:39:33 -08:00
define([CHECK_MODULE_MIXER],
[
2010-08-29 15:39:35 -07:00
if test "x$enable_alsa" = "x" || test "x$enable_alsa" = "xdefault" || test "x$enable_alsa" = "xyes"; then
AC_E_CHECK_PKG(ALSA, [alsa >= 1.0.8],
[ SOUND_CFLAGS="$ALSA_CFLAGS -DHAVE_ALSA $SOUND_CFLAGS"
SOUND_LIBS="$ALSA_LIBS $SOUND_LDFLAGS"
],
[ if test "x$enable_alsa" = "xyes"; then
2008-12-07 17:39:33 -08:00
AC_MSG_ERROR([alsa library >= 1.0.8 not found])
2010-08-29 15:39:35 -07:00
else
2008-12-07 17:39:33 -08:00
AC_MSG_WARN([alsa library development files not present. no alsa support.])
2010-08-29 15:39:35 -07:00
fi
])
else
have_alsa=no
fi
2008-07-31 20:08:16 -07:00
2010-08-29 15:39:35 -07:00
if test "$have_alsa" = "yes"; then
2008-07-31 20:08:16 -07:00
AC_DEFINE(HAVE_ALSA, 1, [Define if the ALSA output plugin should be built])
2010-08-29 15:39:35 -07:00
else
2008-07-31 20:08:16 -07:00
have_alsa=no
2010-08-29 15:39:35 -07:00
fi
2008-12-07 17:39:33 -08:00
])
2008-07-31 20:08:16 -07:00
2013-07-25 01:46:14 -07:00
AC_SUBST([SOUND_CFLAGS])
AC_SUBST([SOUND_LIBS])
2008-12-07 17:39:33 -08:00
2009-12-31 13:44:33 -08:00
AM_CONDITIONAL(HAVE_ECONNMAN, false)
2012-09-04 06:31:12 -07:00
AM_CONDITIONAL(HAVE_DUMMY, false)
2009-12-31 13:44:33 -08:00
define([CHECK_MODULE_CONNMAN],
[
2013-04-23 08:08:29 -07:00
AC_E_CHECK_PKG(ECONNMAN, [ eldbus >= $efl_version ], [], [CONNMAN=false])
2012-09-10 02:33:27 -07:00
dnl AC_E_CHECK_PKG(DUMMY, [ connman >= 1.0 ], [], [CONNMAN=false])
2009-12-31 13:44:33 -08:00
])
2013-07-25 01:46:14 -07:00
AC_SUBST([ECONNMAN_CFLAGS])
AC_SUBST([ECONNMAN_LIBS])
2009-12-31 13:44:33 -08:00
2013-01-04 08:11:48 -08:00
AM_CONDITIONAL(HAVE_BLUEZ4, false)
AM_CONDITIONAL(HAVE_DUMMY, false)
define([CHECK_MODULE_BLUEZ4],
[
2013-04-23 08:08:29 -07:00
AC_E_CHECK_PKG(BLUEZ4, [ eldbus ],)
2013-01-04 08:11:48 -08:00
])
2013-07-25 01:46:14 -07:00
AC_SUBST([EBLUEZ4_CFLAGS])
AC_SUBST([EBLUEZ4_LIBS])
2013-01-04 08:11:48 -08:00
2013-09-11 06:32:00 -07:00
have_wayland_only=no
AC_ARG_ENABLE([wayland-only],
AS_HELP_STRING([--enable-wayland-only],[enable wayland-only version of enlightenment @<:@default=disabled@:>@]),
[e_cv_want_wayland_only=$enableval],
[e_cv_want_wayland_only=no])
AC_MSG_CHECKING([whether wayland-only version is enabled])
AC_MSG_RESULT([${e_cv_want_wayland_only}])
2012-01-31 08:36:07 -08:00
have_wayland_clients=no
2012-01-20 10:41:01 -08:00
AC_ARG_ENABLE([wayland-clients],
AS_HELP_STRING([--enable-wayland-clients],[enable wayland clients in composite module @<:@default=disabled@:>@]),
[e_cv_want_wayland_clients=$enableval],
2012-01-21 01:22:24 -08:00
[e_cv_want_wayland_clients=no])
2012-01-20 10:41:01 -08:00
AC_MSG_CHECKING([whether wayland client support is enabled])
AC_MSG_RESULT([${e_cv_want_wayland_clients}])
2013-09-11 06:32:00 -07:00
have_wayland_egl=no
AC_ARG_ENABLE([wayland-egl],
AS_HELP_STRING([--enable-wayland-egl],[enable wayland to render using EGL @<:@default=disabled@:>@]),
[e_cv_want_wayland_egl=$enableval],
[e_cv_want_wayland_egl=no])
AC_MSG_CHECKING([whether wayland EGL support is enabled])
AC_MSG_RESULT([${e_cv_want_wayland_egl}])
if test "x${e_cv_want_wayland_only}" != "xno" || test "x${e_cv_want_wayland_clients}" != "xno";then
PKG_CHECK_MODULES([WAYLAND], [ecore-wayland wayland-server pixman-1 xkbcommon],
2012-01-20 10:41:01 -08:00
[
2013-09-11 06:32:00 -07:00
have_wayland=yes
AC_DEFINE_UNQUOTED([HAVE_WAYLAND],[1],[enable wayland support])
2012-01-20 10:41:01 -08:00
],
2013-09-11 06:32:00 -07:00
[have_wayland=no])
2012-01-20 10:41:01 -08:00
else
2013-09-11 06:32:00 -07:00
have_wayland=no
2012-01-20 10:41:01 -08:00
fi
2013-09-11 06:32:00 -07:00
if test "x${have_wayland}" = "xyes"; then
if test "x${e_cv_want_wayland_clients}" != "xno"; then
have_wayland_clients=yes
AC_DEFINE_UNQUOTED([HAVE_WAYLAND_CLIENTS],[1],[enable wayland clients in composite module])
fi
if test "x${e_cv_want_wayland_egl}" != "xno";then
2013-04-09 01:44:24 -07:00
PKG_CHECK_MODULES([WAYLAND_EGL], [egl >= 7.10],
[
have_wayland_egl=yes
AC_DEFINE_UNQUOTED([HAVE_WAYLAND_EGL],[1],[enable wayland client EGL support])
],
[have_wayland_egl=no])
else
have_wayland_egl=no
fi
2014-03-11 04:22:51 -07:00
if test "x${e_cv_want_wayland_only}" != "xno"; then
have_wayland_only=yes
AC_DEFINE_UNQUOTED([HAVE_WAYLAND_ONLY],[1],[enable wayland-only version of enlightenment])
fi
2013-04-09 01:44:24 -07:00
fi
2011-04-08 14:03:36 -07:00
2013-09-11 06:32:00 -07:00
AM_CONDITIONAL([HAVE_WAYLAND], [test "x${have_wayland}" = "xyes"])
2014-03-11 04:22:51 -07:00
AM_CONDITIONAL([HAVE_WAYLAND_ONLY], [test "x${have_wayland_only}" = "xyes"])
2013-09-11 06:32:00 -07:00
AM_CONDITIONAL([HAVE_WAYLAND_CLIENTS], [test "x${have_wayland_clients}" = "xyes"])
2013-04-16 06:17:23 -07:00
AM_CONDITIONAL([HAVE_WAYLAND_EGL], [test "x${have_wayland_egl}" = "xyes"])
2013-09-11 06:32:00 -07:00
PKG_CHECK_MODULES([ECORE_X], [ecore-x >= ${efl_version}])
if test -n "$ECORE_X_CFLAGS" ; then
ecore_x=true
else
ecore_x=false
fi
if test "x${ecore_x}" = "xtrue" && test -n "$WAYLAND_CFLAGS" ; then
wl_x11=true
else
wl_x11=false
fi
2013-04-09 05:15:58 -07:00
define([CHECK_MODULE_WL_DESKTOP_SHELL],
[
2014-03-17 06:49:51 -07:00
if test "x${have_wayland_clients}" = "xyes" || test "x${e_cv_want_wayland_only}" = "xyes"; then
2013-04-16 22:29:12 -07:00
AC_E_CHECK_PKG(WL_DESKTOP_SHELL, [ ecore >= $efl_version eina >= $efl_version ], [WL_DESKTOP_SHELL=true], [WL_DESKTOP_SHELL=false])
2013-04-16 08:23:01 -07:00
else
WL_DESKTOP_SHELL=false
fi
2013-04-09 05:15:58 -07:00
])
2013-04-16 22:29:12 -07:00
AM_CONDITIONAL([HAVE_WL_DESKTOP_SHELL], [test "x${WL_DESKTOP_SHELL}" = "xtrue"])
2013-04-09 05:15:58 -07:00
2013-08-27 03:56:30 -07:00
define([CHECK_MODULE_WL_FB],
[
if test "x${have_wayland_clients}" = "xyes"; then
AC_E_CHECK_PKG(WL_FB, [ ecore-fb >= $efl_version ecore >= $efl_version eina >= $efl_version ], [WL_FB=true], [WL_FB=false])
else
WL_FB=false
fi
])
AM_CONDITIONAL([HAVE_WL_FB], [test "x${WL_FB}" = "xtrue"])
2014-03-11 02:01:01 -07:00
define([CHECK_MODULE_WL_DRM],
[
2014-03-18 13:14:04 -07:00
if test "x${have_wayland}" = "xyes" ; then
2014-03-11 02:01:01 -07:00
AC_E_CHECK_PKG(WL_DRM, [ ecore-drm >= $efl_version ecore >= $efl_version eina >= $efl_version ], [WL_DRM=true], [WL_DRM=false])
else
WL_DRM=false
fi
])
AM_CONDITIONAL([HAVE_WL_DRM], [test "x${WL_DRM}" = "xtrue"])
2008-12-07 17:39:33 -08:00
AC_E_OPTIONAL_MODULE([ibar], true)
AC_E_OPTIONAL_MODULE([clock], true)
AC_E_OPTIONAL_MODULE([pager], true)
2013-09-05 07:30:01 -07:00
AC_E_OPTIONAL_MODULE([pager16], true)
2008-12-07 17:39:33 -08:00
AC_E_OPTIONAL_MODULE([battery], true, [CHECK_MODULE_BATTERY])
2010-02-01 23:33:11 -08:00
AC_E_OPTIONAL_MODULE([temperature], true, [CHECK_MODULE_TEMPERATURE])
2011-10-27 19:49:24 -07:00
AC_E_OPTIONAL_MODULE([notification], true, [CHECK_MODULE_NOTIFICATION])
2008-12-07 17:39:33 -08:00
AC_E_OPTIONAL_MODULE([cpufreq], true)
AC_E_OPTIONAL_MODULE([ibox], true)
AC_E_OPTIONAL_MODULE([start], true)
AC_E_OPTIONAL_MODULE([winlist], true)
AC_E_OPTIONAL_MODULE([fileman], true)
2009-03-29 08:51:12 -07:00
AC_E_OPTIONAL_MODULE([fileman_opinfo], true)
2008-12-07 17:39:33 -08:00
AC_E_OPTIONAL_MODULE([wizard], true)
AC_E_OPTIONAL_MODULE([conf], true)
2012-09-21 03:16:28 -07:00
AC_E_OPTIONAL_MODULE([conf_theme], true, true)
2008-12-07 17:39:33 -08:00
AC_E_OPTIONAL_MODULE([conf_intl], true)
2010-03-06 23:13:28 -08:00
AC_E_OPTIONAL_MODULE([msgbus], true)
2008-12-07 17:39:33 -08:00
AC_E_OPTIONAL_MODULE([conf_applications], true)
AC_E_OPTIONAL_MODULE([conf_display], true)
AC_E_OPTIONAL_MODULE([conf_shelves], true)
2013-02-05 06:03:11 -08:00
AC_E_OPTIONAL_MODULE([conf_bindings], true)
2008-12-07 17:39:33 -08:00
AC_E_OPTIONAL_MODULE([conf_window_remembers], true)
AC_E_OPTIONAL_MODULE([conf_window_manipulation], true)
AC_E_OPTIONAL_MODULE([conf_menus], true)
AC_E_OPTIONAL_MODULE([conf_dialogs], true)
AC_E_OPTIONAL_MODULE([conf_performance], true)
AC_E_OPTIONAL_MODULE([conf_paths], true)
AC_E_OPTIONAL_MODULE([conf_interaction], true)
AC_E_OPTIONAL_MODULE([gadman], true)
AC_E_OPTIONAL_MODULE([mixer], true, [CHECK_MODULE_MIXER])
2009-12-31 13:44:33 -08:00
AC_E_OPTIONAL_MODULE([connman], true, [CHECK_MODULE_CONNMAN])
2013-01-04 08:11:48 -08:00
AC_E_OPTIONAL_MODULE([bluez4], true, [CHECK_MODULE_BLUEZ4])
2013-08-20 01:40:36 -07:00
#AC_E_OPTIONAL_MODULE([illume2], true)
2008-12-07 17:39:33 -08:00
AC_E_OPTIONAL_MODULE([syscon], true)
2009-05-17 13:42:01 -07:00
AC_E_OPTIONAL_MODULE([everything], true)
2009-05-12 17:45:21 -07:00
AC_E_OPTIONAL_MODULE([systray], true)
2013-01-04 05:48:45 -08:00
AC_E_OPTIONAL_MODULE([appmenu], true)
super sekrit module mostly complete: introducing the new and rewritten quickaccess module!
found in the Launcher category, this module allows for windows to be hidden/shown using bindings, and can be used to turn any window/application into a quake-style drop-down terminal or whatever else you would use triggered window hiding/showing for.
config options:
* autohide - hides window when focus is lost
* hide instead of raise - by default, qa will raise an activated window if it doesn't have focus; use this option to make it hide instead of raising
* automatically reopen when closed - this option, when set, causes qa to relaunch the application which created the window if the window is closed. it should (probably) only be used for terminals, and requires some magic for setting window names on terminals which I have created some infra for extending to non-standard terminal types; currently all xterm clones, urxvt, and terminology are supported. note that setting this option will cause the entry to become permanent, as any entry which is set to restart itself when closed cannot be transient
* transient - a window added to qa is initially a transient entry, meaning it's temporary: once you close the window, the binding is deleted, though the binding will remain if you restart e17. if you uncheck this option, it will become a permanent entry which can only be deleted either through the quickaccess advanced settings or the keybindings dialog.
fun fact: you can get to the quickaccess settings faster by clicking the Quickaccess... border menu item
SVN revision: 75550
2012-08-22 06:55:41 -07:00
AC_E_OPTIONAL_MODULE([quickaccess], true)
2013-06-14 07:36:11 -07:00
AC_E_OPTIONAL_MODULE([teamwork], true)
2013-12-21 07:59:23 -08:00
AC_E_OPTIONAL_MODULE([lokker], true)
2013-09-11 06:32:00 -07:00
AC_E_OPTIONAL_MODULE([shot], true, $ecore_x)
2011-06-12 08:05:22 -07:00
AC_E_OPTIONAL_MODULE([backlight], true)
2011-10-30 00:36:54 -07:00
AC_E_OPTIONAL_MODULE([tasks], true)
2013-09-11 06:32:00 -07:00
AC_E_OPTIONAL_MODULE([conf_randr], true, $ecore_x)
AC_E_OPTIONAL_MODULE([xkbswitch], true, $ecore_x)
2012-05-02 01:20:53 -07:00
AC_E_OPTIONAL_MODULE([tiling], true)
2013-09-11 06:32:00 -07:00
AC_E_OPTIONAL_MODULE([access], false, $ecore_x)
2013-01-02 05:18:51 -08:00
AC_E_OPTIONAL_MODULE([music_control], true, [CHECK_MODULE_MUSIC_CONTROL])
2014-01-19 08:11:34 -08:00
AC_E_OPTIONAL_MODULE([packagekit], true)
2013-09-11 06:32:00 -07:00
AC_E_OPTIONAL_MODULE([contact], false)
2013-04-16 08:23:01 -07:00
AC_E_OPTIONAL_MODULE([wl_desktop_shell], true, [CHECK_MODULE_WL_DESKTOP_SHELL])
2013-08-27 03:56:30 -07:00
AC_E_OPTIONAL_MODULE([wl_x11], $have_wayland, $wl_x11)
AC_E_OPTIONAL_MODULE([wl_fb], $have_wayland, [CHECK_MODULE_WL_FB])
2014-03-11 02:01:01 -07:00
AC_E_OPTIONAL_MODULE([wl_drm], $have_wayland, [CHECK_MODULE_WL_DRM])
2013-09-11 06:32:00 -07:00
#AC_E_OPTIONAL_MODULE([wl_screenshot], true, [CHECK_MODULE_WL_SCREENSHOT])
2013-04-09 05:15:58 -07:00
2013-04-05 06:20:23 -07:00
HALT="/sbin/shutdown -h now"
REBOOT="/sbin/shutdown -r now"
2011-03-29 11:30:40 -07:00
SUSPEND=""
HIBERNATE=""
case "$host_os" in
freebsd*|pcbsd*)
SUSPEND="acpiconf -s3"
AC_MSG_NOTICE([use suspend method: $SUSPEND])
2011-03-29 11:32:22 -07:00
HIBERNATE="acpiconf -s4"
2011-03-29 11:30:40 -07:00
AC_MSG_NOTICE([use hibernate method: $HIBERNATE])
;;
*)
2013-04-05 06:20:23 -07:00
if test "x${have_systemd_user_session}" = "xyes"; then
HALT="/usr/bin/systemctl poweroff"
REBOOT="/usr/bin/systemctl reboot"
2013-03-29 20:08:08 -07:00
SUSPEND="/usr/bin/systemctl suspend"
2013-04-05 06:20:23 -07:00
HIBERNATE="/usr/bin/systemctl hibernate"
AC_MSG_NOTICE([use systemctl for halt, reboot, suspend and hibernate])
2013-03-29 20:08:08 -07:00
else
AC_PATH_PROGS([SUSPEND], [sleep.sh pm-suspend],[/etc/acpi/sleep.sh], [/etc/acpi:/sbin:/usr/sbin:$PATH])
2013-04-05 06:20:23 -07:00
if test "$SUSPEND" = "/etc/acpi/sleep.sh" ; then
2013-03-29 20:08:08 -07:00
SUSPEND="/etc/acpi/sleep.sh force"
AC_MSG_NOTICE([use suspend method: $SUSPEND])
fi
AC_PATH_PROGS([HIBERNATE], [hibernate.sh pm-hibernate],[/etc/acpi/hibernate.sh], [/etc/acpi:/sbin:/usr/sbin:$PATH])
2013-04-05 06:20:23 -07:00
if test "$HIBERNATE" = "/etc/acpi/hibernate.sh" ; then
2013-03-29 20:08:08 -07:00
HIBERNATE="/etc/acpi/hibernate.sh force"
AC_MSG_NOTICE([use hibernate method: $HIBERNATE])
2013-04-05 06:20:23 -07:00
fi
2011-03-29 11:30:40 -07:00
fi
;;
esac
2013-07-25 01:46:14 -07:00
AC_SUBST([HALT])
AC_SUBST([REBOOT])
AC_SUBST([SUSPEND])
AC_SUBST([HIBERNATE])
2011-03-29 11:20:11 -07:00
2012-08-03 01:43:37 -07:00
m4_ifdef([v_mic],
[
EFL_COMPILER_FLAG([-Wshadow])
EFL_COMPILER_FLAG([-Wall])
2014-01-15 13:40:41 -08:00
EFL_COMPILER_FLAG([-Wpointer-arith])
2012-08-03 01:43:37 -07:00
EFL_COMPILER_FLAG([-W])
2013-01-02 05:15:01 -08:00
EFL_COMPILER_FLAG([-Wno-missing-field-initializers])
2012-08-03 01:43:37 -07:00
])
2012-07-13 05:46:50 -07:00
SUID_CFLAGS=-fPIE
SUID_LDFLAGS=-pie
AC_SUBST([SUID_CFLAGS])
AC_SUBST([SUID_LDFLAGS])
2004-11-24 19:37:45 -08:00
AC_OUTPUT([
Makefile
2005-10-24 22:02:03 -07:00
enlightenment.spec
2008-03-28 13:53:26 -07:00
enlightenment.pc
2011-01-02 17:24:15 -08:00
src/bin/e_fm_shared_types.h
2006-09-03 00:42:06 -07:00
src/modules/ibar/module.desktop
src/modules/clock/module.desktop
src/modules/pager/module.desktop
2013-09-05 07:30:01 -07:00
src/modules/pager16/module.desktop
2006-09-03 00:42:06 -07:00
src/modules/battery/module.desktop
src/modules/temperature/module.desktop
2011-10-27 19:49:24 -07:00
src/modules/notification/module.desktop
2006-09-03 00:42:06 -07:00
src/modules/cpufreq/module.desktop
src/modules/ibox/module.desktop
src/modules/start/module.desktop
2007-08-04 21:41:55 -07:00
src/modules/winlist/module.desktop
2007-08-12 03:03:18 -07:00
src/modules/fileman/module.desktop
2009-03-29 08:51:12 -07:00
src/modules/fileman_opinfo/module.desktop
2007-08-05 01:07:39 -07:00
src/modules/conf/module.desktop
2007-07-07 08:44:01 -07:00
src/modules/conf_theme/module.desktop
2007-07-13 15:33:48 -07:00
src/modules/conf_intl/module.desktop
2007-07-24 07:50:26 -07:00
src/modules/conf_applications/module.desktop
2007-07-27 20:50:14 -07:00
src/modules/conf_display/module.desktop
2007-07-28 19:12:51 -07:00
src/modules/conf_shelves/module.desktop
2013-02-05 06:03:11 -08:00
src/modules/conf_bindings/module.desktop
2008-05-06 02:30:21 -07:00
src/modules/conf_window_remembers/module.desktop
2007-07-28 19:12:51 -07:00
src/modules/conf_window_manipulation/module.desktop
2007-07-28 20:25:34 -07:00
src/modules/conf_menus/module.desktop
2007-07-28 23:58:24 -07:00
src/modules/conf_dialogs/module.desktop
src/modules/conf_performance/module.desktop
src/modules/conf_paths/module.desktop
2008-01-23 01:04:56 -08:00
src/modules/conf_interaction/module.desktop
2011-04-30 20:56:17 -07:00
src/modules/msgbus/module.desktop
2011-11-05 23:41:39 -07:00
src/modules/conf_randr/module.desktop
2008-05-18 21:37:34 -07:00
src/modules/gadman/module.desktop
2008-07-31 20:08:16 -07:00
src/modules/mixer/module.desktop
2008-08-30 18:51:27 -07:00
src/modules/connman/module.desktop
2013-01-04 08:11:48 -08:00
src/modules/bluez4/module.desktop
2008-11-25 00:05:58 -08:00
src/modules/syscon/module.desktop
2009-05-06 07:20:45 -07:00
src/modules/everything/module.desktop
2009-08-13 08:10:54 -07:00
src/modules/everything/everything.pc
2009-05-12 17:45:21 -07:00
src/modules/systray/module.desktop
2013-01-04 05:48:45 -08:00
src/modules/appmenu/module.desktop
super sekrit module mostly complete: introducing the new and rewritten quickaccess module!
found in the Launcher category, this module allows for windows to be hidden/shown using bindings, and can be used to turn any window/application into a quake-style drop-down terminal or whatever else you would use triggered window hiding/showing for.
config options:
* autohide - hides window when focus is lost
* hide instead of raise - by default, qa will raise an activated window if it doesn't have focus; use this option to make it hide instead of raising
* automatically reopen when closed - this option, when set, causes qa to relaunch the application which created the window if the window is closed. it should (probably) only be used for terminals, and requires some magic for setting window names on terminals which I have created some infra for extending to non-standard terminal types; currently all xterm clones, urxvt, and terminology are supported. note that setting this option will cause the entry to become permanent, as any entry which is set to restart itself when closed cannot be transient
* transient - a window added to qa is initially a transient entry, meaning it's temporary: once you close the window, the binding is deleted, though the binding will remain if you restart e17. if you uncheck this option, it will become a permanent entry which can only be deleted either through the quickaccess advanced settings or the keybindings dialog.
fun fact: you can get to the quickaccess settings faster by clicking the Quickaccess... border menu item
SVN revision: 75550
2012-08-22 06:55:41 -07:00
src/modules/quickaccess/module.desktop
2013-06-14 07:36:11 -07:00
src/modules/teamwork/module.desktop
2011-05-27 23:53:44 -07:00
src/modules/shot/module.desktop
2011-06-12 08:05:22 -07:00
src/modules/backlight/module.desktop
2011-10-30 00:36:54 -07:00
src/modules/tasks/module.desktop
2012-04-27 21:09:56 -07:00
src/modules/xkbswitch/module.desktop
2012-05-02 01:20:53 -07:00
src/modules/tiling/module.desktop
2012-05-22 06:56:53 -07:00
src/modules/access/module.desktop
2013-01-02 05:18:51 -08:00
src/modules/music-control/module.desktop
2014-01-19 02:54:24 -08:00
src/modules/packagekit/module.desktop
2013-02-09 22:21:47 -08:00
src/modules/contact/module.desktop
2013-04-09 05:15:58 -07:00
src/modules/wl_desktop_shell/module.desktop
2013-07-23 06:30:35 -07:00
src/modules/wl_screenshot/module.desktop
2005-07-03 00:23:03 -07:00
data/xsession/enlightenment.desktop
2011-03-29 11:20:11 -07:00
data/etc/sysactions.conf
2013-08-09 17:29:18 -07:00
data/units/e18.service
2011-06-13 11:44:46 -07:00
doc/Doxyfile
2010-02-10 20:39:58 -08:00
doc/e.dox
2010-06-19 10:33:38 -07:00
$po_makefile_in
2004-11-24 19:37:45 -08:00
])
2008-12-07 17:39:33 -08:00
2013-08-20 01:40:36 -07:00
#src/modules/illume2/doc/illume.dox
#src/modules/illume2/module.desktop
#src/modules/illume-home/module.desktop
#src/modules/illume-home-toggle/module.desktop
#src/modules/illume-softkey/module.desktop
#src/modules/illume-keyboard/module.desktop
#src/modules/illume-indicator/module.desktop
#src/modules/illume-kbd-toggle/module.desktop
#src/modules/illume-mode-toggle/module.desktop
#src/modules/illume-bluetooth/module.desktop
2008-12-07 17:39:33 -08:00
# report
txt_strip() {
2010-08-29 15:39:35 -07:00
echo "[$]@" | sed -e 's/^[[ \t]]*\([[^ \t]]*\)[[ \t]]*$/\1/g'
2008-12-07 17:39:33 -08:00
}
2010-02-10 20:39:58 -08:00
echo
2008-12-07 17:39:33 -08:00
cat << SUMMARY_EOF
Summary:
* project.........: $PACKAGE $VERSION
* prefix..........: $(txt_strip $prefix)
* CFLAGS..........: $(txt_strip $CFLAGS)
* LDFLAGS.........: $(txt_strip $LDFLAGS)
SUMMARY_EOF
2014-03-14 07:51:31 -07:00
if test "$have_systemd_user_session" = "yes"; then
echo " * systemd.........: yes (${USER_SESSION_DIR})"
else
echo " * systemd.........: no"
fi
2010-02-10 20:39:58 -08:00
echo
2014-03-14 07:51:31 -07:00
cat << ACTIONS_EOF
System Actions:
* Halt.....: ${HALT}
* Reboot...: ${REBOOT}
* Suspend..: ${SUSPEND}
* Hibernate: ${HIBERNATE}
ACTIONS_EOF
2010-05-14 11:19:51 -07:00
cat << DEVICE_EOF
Preferred Backends:
2011-11-12 03:24:26 -08:00
* device..............: $device_backend
* udisks_mount........: $e_cv_want_mount_udisks
* eeze_mount..........: $e_cv_want_mount_eeze
2010-05-14 11:19:51 -07:00
DEVICE_EOF
echo
2008-12-07 17:39:33 -08:00
2010-02-10 20:39:58 -08:00
UNUSED_MODS=""
for mod in $UNUSED_OPTIONAL_MODULES; do
2010-08-29 15:39:35 -07:00
UNUSED_MODS="$UNUSED_MODS${COLOR_HRED}$mod${COLOR_END} "
2010-02-10 20:39:58 -08:00
done
2008-12-07 17:39:33 -08:00
2010-02-10 20:39:58 -08:00
cat << MODULES_EOF
Modules:
* disabled........: $(txt_strip $UNUSED_MODS)
MODULES_EOF
echo
cat << DOCS_EOF
Documentation:
* enabled.........: ${build_doc}
DOCS_EOF
if test "x${build_doc}" = "xyes" ; then
2010-08-29 15:39:35 -07:00
echo " Building..........: make doc"
2008-12-07 17:39:33 -08:00
fi
2010-02-10 20:39:58 -08:00
echo
2008-12-07 17:39:33 -08:00
2010-02-10 20:39:58 -08:00
cat << COMPILE_EOF
Compilation........: make (or gmake)
COMPILE_EOF
echo
2008-12-07 17:39:33 -08:00
2010-02-10 20:39:58 -08:00
cat << INSTALL_EOF
Installation.......: make all install (as root if needed, with 'su' or 'sudo')
INSTALL_EOF
echo