2009-03-13 09:35:16 -07:00
|
|
|
dnl use: ECORE_CHECK_POLL(default-enabled[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
|
|
|
AC_DEFUN([ECORE_CHECK_POLL],
|
|
|
|
[
|
|
|
|
_ecore_want_poll=$1
|
|
|
|
_ecore_have_poll="no"
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(poll,
|
|
|
|
[AC_HELP_STRING([--disable-poll], [disable poll in the ecore_file module])],
|
|
|
|
[
|
|
|
|
if test "x${enableval}" = "xyes" ; then
|
|
|
|
_ecore_want_poll="yes"
|
|
|
|
else
|
|
|
|
_ecore_want_poll="no"
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether polling is to be used for filemonitoring)
|
|
|
|
AC_MSG_RESULT(${_ecore_want_poll})
|
|
|
|
|
|
|
|
if test "x${_ecore_want_poll}" = "xyes" ; then
|
|
|
|
AC_DEFINE([HAVE_POLL], [1], [ File monitoring with polling ])
|
|
|
|
_ecore_have_poll="yes"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x${_ecore_have_poll}" = "xyes" ; then
|
|
|
|
m4_default([$2], [:])
|
|
|
|
else
|
|
|
|
m4_default([$3], [:])
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
|
|
|
dnl use: ECORE_CHECK_INOTIFY(default-enabled[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
|
|
|
AC_DEFUN([ECORE_CHECK_INOTIFY],
|
|
|
|
[
|
|
|
|
_ecore_want_inotify=$1
|
|
|
|
_ecore_have_inotify="no"
|
|
|
|
|
|
|
|
dnl We need to check if the right inotify version is accessible
|
|
|
|
_ecore_want_inotify="yes"
|
|
|
|
AC_ARG_ENABLE(inotify,
|
|
|
|
[AC_HELP_STRING([--disable-inotify], [disable inotify in the ecore_file module])],
|
|
|
|
[
|
|
|
|
if test "x${enableval}" = "xyes" ; then
|
|
|
|
_ecore_want_inotify="yes"
|
|
|
|
else
|
|
|
|
_ecore_want_inotify="no"
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether inotify is to be used for filemonitoring)
|
|
|
|
AC_MSG_RESULT($_ecore_want_inotify)
|
|
|
|
|
|
|
|
dnl It is hard to find a good test on how to check the correct
|
|
|
|
dnl inotify version. They changed the headers a lot.
|
|
|
|
dnl in kernel 2.6.13 __NR_inotify_init was added to the defined syscalls
|
|
|
|
dnl in asm/unistd.h and IN_MOVE_SELF was added to linux/inotify.h
|
|
|
|
dnl so with this check you need a very new kernel and kernel-headers!
|
|
|
|
|
|
|
|
if test "x${_ecore_want_inotify}" = "xyes" ; then
|
|
|
|
AC_CHECK_LIB([c], [inotify_init],
|
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_INOTIFY, 1, [ File monitoring with Inotify ])
|
|
|
|
AC_DEFINE(HAVE_SYS_INOTIFY, 1, [ File monitoring with Inotify - sys/inotify.h ])
|
|
|
|
_ecore_have_inotify="yes"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[
|
|
|
|
#include <asm/unistd.h>
|
|
|
|
#include <linux/inotify.h>
|
|
|
|
],
|
|
|
|
[int a = __NR_inotify_init; int b = IN_MOVE_SELF;],
|
|
|
|
[
|
|
|
|
AC_DEFINE([HAVE_INOTIFY], [1], [ File monitoring with Inotify ])
|
|
|
|
_ecore_have_inotify="yes"
|
|
|
|
],
|
|
|
|
[_ecore_have_inotify="no"])
|
|
|
|
])
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$_ecore_have_inotify" = "xyes" ; then
|
|
|
|
m4_default([$2], [:])
|
|
|
|
else
|
|
|
|
m4_default([$3], [:])
|
|
|
|
fi
|
|
|
|
])
|
2009-11-11 09:45:55 -08:00
|
|
|
|
|
|
|
dnl use: ECORE_CHECK_NOTIFY_WIN32(default-enabled[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
|
|
|
AC_DEFUN([ECORE_CHECK_NOTIFY_WIN32],
|
|
|
|
[
|
|
|
|
_ecore_want_notify_win32=$1
|
|
|
|
_ecore_have_notify_win32="no"
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(notify-win32,
|
|
|
|
[AC_HELP_STRING([--disable-notify-win32], [disable Windows notification in the ecore_file module])],
|
|
|
|
[
|
|
|
|
if test "x${enableval}" = "xyes" ; then
|
|
|
|
_ecore_want_notify_win32="yes"
|
|
|
|
else
|
|
|
|
_ecore_want_notify_win32="no"
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether Windows notification is to be used for filemonitoring)
|
|
|
|
AC_MSG_RESULT(${_ecore_want_notify_win32})
|
|
|
|
|
|
|
|
if test "x${_ecore_want_notify_win32}" = "xyes" ; then
|
|
|
|
AC_DEFINE([HAVE_NOTIFY_WIN32], [1], [ File monitoring with Windows notification ])
|
|
|
|
_ecore_have_notify_win32="yes"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x${_ecore_have_notify_win32}" = "xyes" ; then
|
|
|
|
m4_default([$2], [:])
|
|
|
|
else
|
|
|
|
m4_default([$3], [:])
|
|
|
|
fi
|
|
|
|
])
|
2009-03-13 09:35:16 -07:00
|
|
|
|
|
|
|
dnl use: ECORE_CHECK_CURL(default-enabled[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
|
|
|
AC_DEFUN([ECORE_CHECK_CURL],
|
|
|
|
[
|
|
|
|
_ecore_want_curl=$1
|
|
|
|
_ecore_have_curl="no"
|
|
|
|
|
|
|
|
AC_ARG_ENABLE([curl],
|
|
|
|
[AC_HELP_STRING([--disable-curl], [disable curl support])],
|
|
|
|
[
|
|
|
|
if test "x${enableval}" = "xyes" ; then
|
|
|
|
_ecore_want_curl="yes"
|
|
|
|
else
|
|
|
|
_ecore_want_curl="no"
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
|
|
|
if test "x${_ecore_want_curl}" = "xyes" ; then
|
|
|
|
PKG_CHECK_MODULES(CURL, libcurl,
|
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_CURL, 1, [ Downloading with CURL ])
|
|
|
|
_ecore_have_curl="yes"
|
|
|
|
],
|
|
|
|
[_ecore_have_curl="no"])
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$_ecore_have_curl" = "xyes" ; then
|
|
|
|
m4_default([$2], [:])
|
|
|
|
else
|
|
|
|
m4_default([$3], [:])
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
|
|
|
dnl use: ECORE_CHECK_GNUTLS(default-enabled[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
|
|
|
AC_DEFUN([ECORE_CHECK_GNUTLS],
|
|
|
|
[
|
|
|
|
_ecore_want_gnutls=$1
|
|
|
|
_ecore_have_gnutls="no"
|
|
|
|
|
|
|
|
AC_ARG_ENABLE([gnutls],
|
|
|
|
[AC_HELP_STRING([--disable-gnutls], [disable gnutls support])],
|
|
|
|
[
|
|
|
|
if test "x${enableval}" = "xyes" ; then
|
|
|
|
_ecore_want_gnutls="yes"
|
|
|
|
else
|
|
|
|
_ecore_want_gnutls="no"
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
|
|
|
if test "x${_ecore_want_gnutls}" = "xyes" -o "x${_ecore_want_gnutls}" = "xauto" ; then
|
2010-10-26 23:31:27 -07:00
|
|
|
PKG_CHECK_MODULES([TLS], [gnutls >= 2.10.2],
|
2009-03-13 09:35:16 -07:00
|
|
|
[
|
|
|
|
AC_DEFINE([USE_GNUTLS], [1], [Use GnuTLS])
|
|
|
|
_ecore_have_gnutls="yes"
|
|
|
|
],
|
|
|
|
[_ecore_have_gnutls="no"])
|
|
|
|
# for ecore_con_ssl.c
|
2010-10-26 23:31:27 -07:00
|
|
|
PKG_CHECK_MODULES([TLS2], [gnutls >= 2.10.2],
|
2009-03-13 09:35:16 -07:00
|
|
|
[AC_DEFINE(USE_GNUTLS2, 1, [Use GnuTLS 2 or higher])],
|
|
|
|
[dummy="no"])
|
2010-07-28 17:13:25 -07:00
|
|
|
if test "x$_ecore_have_gnutls" = "xyes";then
|
|
|
|
AC_PATH_GENERIC([libgcrypt], [], [_ecore_have_gnutls="yes"], [_ecore_have_gnutls="no"])
|
|
|
|
if test "x${_ecore_have_gnutls}" = "xyes" ; then
|
|
|
|
TLS_CFLAGS+=" ${LIBGCRYPT_CFLAGS}"
|
|
|
|
TLS_LIBS+=" ${LIBGCRYPT_LIBS}"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2009-03-13 09:35:16 -07:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$_ecore_have_gnutls" = "xyes" ; then
|
|
|
|
ifelse([$2], , :, [$2])
|
|
|
|
else
|
|
|
|
ifelse([$3], , :, [$3])
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
|
|
|
dnl use: ECORE_CHECK_OPENSSL(default-enabled[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
|
|
|
AC_DEFUN([ECORE_CHECK_OPENSSL],
|
|
|
|
[
|
|
|
|
_ecore_want_openssl=$1
|
|
|
|
_ecore_have_openssl="no"
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(openssl,
|
|
|
|
[AC_HELP_STRING([--disable-openssl], [disable openssl support])],
|
|
|
|
[
|
|
|
|
if test "x${enableval}" = "xyes" ; then
|
|
|
|
_ecore_want_openssl="yes"
|
|
|
|
else
|
|
|
|
_ecore_want_openssl="no"
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
2010-07-28 17:13:25 -07:00
|
|
|
if test "x${_ecore_have_gnutls}" = "xyes";then
|
|
|
|
_ecore_want_openssl=no
|
|
|
|
fi
|
|
|
|
|
2009-03-13 09:35:16 -07:00
|
|
|
if test "x${_ecore_want_openssl}" = "xyes" -o "x${_ecore_want_openssl}" = "xauto"; then
|
|
|
|
PKG_CHECK_MODULES([SSL],
|
|
|
|
[openssl],
|
|
|
|
[
|
|
|
|
AC_DEFINE(USE_OPENSSL, 1, [Use OpenSSL])
|
|
|
|
_ecore_have_openssl="yes"
|
|
|
|
],
|
|
|
|
[_ecore_have_openssl="no"])
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$_ecore_have_openssl" = "xyes" ; then
|
|
|
|
m4_default([$2], [:])
|
|
|
|
else
|
|
|
|
m4_default([$3], [:])
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
|
|
|
dnl use: ECORE_CHECK_TSLIB(default-enabled[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
|
|
|
AC_DEFUN([ECORE_CHECK_TSLIB],
|
|
|
|
[
|
2009-10-03 11:08:43 -07:00
|
|
|
_tslib_requirement=""
|
2009-03-13 09:35:16 -07:00
|
|
|
_ecore_want_tslib=$1
|
|
|
|
_ecore_have_tslib="no"
|
2009-03-14 19:46:24 -07:00
|
|
|
TSLIB_LIBS=""
|
|
|
|
TSLIB_CFLAGS=""
|
2009-03-13 09:35:16 -07:00
|
|
|
|
2010-02-05 16:19:46 -08:00
|
|
|
AC_ARG_ENABLE([tslib],
|
|
|
|
[AC_HELP_STRING([--disable-tslib],
|
|
|
|
[disable the tslib support in ecore (currently ecore-fb).
|
|
|
|
@<:@default=detect@:>@])],
|
|
|
|
[
|
|
|
|
if test "x${enableval}" = "xyes" ; then
|
|
|
|
_ecore_want_tslib="yes"
|
|
|
|
else
|
|
|
|
_ecore_want_tslib="no"
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
2009-03-13 09:35:16 -07:00
|
|
|
if test "x${_ecore_want_tslib}" = "xyes" -o "x${_ecore_want_tslib}" = "xauto" ; then
|
2009-10-03 11:08:43 -07:00
|
|
|
PKG_CHECK_MODULES([TSLIB], [tslib-1.0],
|
2009-03-14 19:46:24 -07:00
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_TSLIB, 1, [Build Ecore_FB Touchscreen Code])
|
2009-09-29 05:56:14 -07:00
|
|
|
_ecore_have_tslib="yes"
|
2009-10-03 11:08:43 -07:00
|
|
|
_tslib_requirement="tslib-1.0"
|
2009-03-14 20:13:17 -07:00
|
|
|
],[
|
2009-10-03 11:08:43 -07:00
|
|
|
PKG_CHECK_MODULES([TSLIB], [tslib],
|
2009-03-14 19:46:24 -07:00
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_TSLIB, 1, [Build Ecore_FB Touchscreen Code])
|
2009-09-29 05:56:14 -07:00
|
|
|
_ecore_have_tslib="yes"
|
2009-10-03 11:08:43 -07:00
|
|
|
_tslib_requirement="tslib"
|
2009-03-14 20:13:17 -07:00
|
|
|
],[
|
2009-03-14 19:46:24 -07:00
|
|
|
AC_CHECK_HEADER([tslib.h],
|
|
|
|
[
|
|
|
|
AC_CHECK_LIB([ts], [ts_open],
|
|
|
|
[
|
|
|
|
TSLIB_LIBS="-lts"
|
|
|
|
TSLIB_CFLAGS=""
|
|
|
|
AC_DEFINE(HAVE_TSLIB, 1, [Build Ecore_FB Touchscreen Code])
|
2009-09-29 05:56:14 -07:00
|
|
|
_ecore_have_tslib="yes"
|
2009-03-14 20:13:17 -07:00
|
|
|
],[
|
2009-03-14 19:46:24 -07:00
|
|
|
AC_CHECK_LIB([tslib], [ts_open],
|
|
|
|
[
|
|
|
|
TSLIB_LIBS="-ltslib"
|
|
|
|
TSLIB_CFLAGS=""
|
|
|
|
AC_DEFINE(HAVE_TSLIB, 1, [Build Ecore_FB Touchscreen Code])
|
2009-09-29 05:56:14 -07:00
|
|
|
_ecore_have_tslib="yes"
|
2009-03-14 20:13:17 -07:00
|
|
|
],[
|
2009-09-29 05:56:14 -07:00
|
|
|
_ecore_have_tslib="no"
|
2009-03-14 19:46:24 -07:00
|
|
|
])
|
|
|
|
])
|
|
|
|
])
|
|
|
|
])
|
|
|
|
])
|
2009-03-13 09:35:16 -07:00
|
|
|
fi
|
|
|
|
|
2009-03-14 19:46:24 -07:00
|
|
|
AC_SUBST(TSLIB_LIBS)
|
|
|
|
AC_SUBST(TSLIB_CFLAGS)
|
2009-03-13 09:35:16 -07:00
|
|
|
|
|
|
|
if test "x$_ecore_have_tslib" = "xyes" ; then
|
|
|
|
m4_default([$2], [:])
|
|
|
|
else
|
|
|
|
m4_default([$3], [:])
|
|
|
|
fi
|
|
|
|
])
|
2009-12-03 02:26:40 -08:00
|
|
|
|
|
|
|
dnl use: ECORE_CHECK_CARES(default-enabled[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
|
|
|
AC_DEFUN([ECORE_CHECK_CARES],
|
|
|
|
[
|
|
|
|
_ecore_want_cares=$1
|
|
|
|
_ecore_have_cares="no"
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(cares,
|
|
|
|
[AC_HELP_STRING([--disable-cares], [disable cares support])],
|
|
|
|
[
|
|
|
|
if test "x${enableval}" = "xyes" ; then
|
|
|
|
_ecore_want_cares="yes"
|
|
|
|
else
|
|
|
|
_ecore_want_cares="no"
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
|
|
|
if test "x${_ecore_want_cares}" = "xyes" -o "x${_ecore_want_cares}" = "xauto" ; then
|
2012-02-20 09:46:52 -08:00
|
|
|
PKG_CHECK_MODULES([CARES], [libcares >= 1.6.1],
|
2009-12-19 03:36:18 -08:00
|
|
|
[_ecore_have_cares="yes"],
|
|
|
|
[_ecore_have_cares="no"])
|
2009-12-03 02:26:40 -08:00
|
|
|
fi
|
|
|
|
|
2009-12-19 03:36:18 -08:00
|
|
|
if test "x${_ecore_have_cares}" = "xyes" ; then
|
|
|
|
AC_DEFINE([HAVE_CARES], [1], [Build Ecore_Con_Info with c-ares support])
|
|
|
|
fi
|
2009-12-03 02:26:40 -08:00
|
|
|
|
|
|
|
if test "x$_ecore_have_cares" = "xyes" ; then
|
|
|
|
m4_default([$2], [:])
|
|
|
|
else
|
|
|
|
m4_default([$3], [:])
|
|
|
|
fi
|
|
|
|
])
|