2003-09-23 01:09:32 -07:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
|
|
|
|
AC_INIT(configure.in)
|
2004-02-16 23:12:01 -08:00
|
|
|
AC_CANONICAL_BUILD
|
|
|
|
AC_CANONICAL_HOST
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_ISC_POSIX
|
2006-12-04 04:14:18 -08:00
|
|
|
AM_INIT_AUTOMAKE(ecore, 0.9.9.037)
|
2003-09-23 01:09:32 -07:00
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
|
|
|
|
AC_C_BIGENDIAN
|
|
|
|
AC_PROG_CC
|
2004-01-03 09:29:44 -08:00
|
|
|
AM_PROG_CC_STDC
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_C_CONST
|
2004-12-08 12:29:45 -08:00
|
|
|
AC_CHECK_SIZEOF(int, 4)
|
2005-09-07 16:21:42 -07:00
|
|
|
AC_CHECK_SIZEOF(long, 4)
|
2003-09-23 01:09:32 -07:00
|
|
|
AM_ENABLE_SHARED
|
|
|
|
AM_PROG_LIBTOOL
|
2005-03-01 23:06:44 -08:00
|
|
|
AC_C___ATTRIBUTE__
|
2003-09-23 01:09:32 -07:00
|
|
|
|
|
|
|
if test "x${bindir}" = 'xNONE'; then
|
|
|
|
if test "x${prefix}" = "xNONE"; then
|
2006-08-07 00:03:12 -07:00
|
|
|
PACKAGE_BIN_DIR="${ac_default_prefix}/bin"
|
2003-09-23 01:09:32 -07:00
|
|
|
else
|
2006-08-07 00:03:12 -07:00
|
|
|
PACKAGE_BIN_DIR="${prefix}/bin"
|
2003-09-23 01:09:32 -07:00
|
|
|
fi
|
|
|
|
else
|
2006-08-07 00:03:12 -07:00
|
|
|
PACKAGE_BIN_DIR="${bindir}"
|
2003-09-23 01:09:32 -07:00
|
|
|
fi
|
2006-08-07 00:03:12 -07:00
|
|
|
AC_SUBST(PACKAGE_BIN_DIR)
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2003-12-05 08:57:32 -08:00
|
|
|
if test "x${libdir}" = 'xNONE'; then
|
|
|
|
if test "x${prefix}" = "xNONE"; then
|
2006-08-07 00:03:12 -07:00
|
|
|
PACKAGE_LIB_DIR="${ac_default_prefix}/lib"
|
2003-12-05 08:57:32 -08:00
|
|
|
else
|
2006-08-07 00:03:12 -07:00
|
|
|
PACKAGE_LIB_DIR="${prefix}/lib"
|
2003-12-05 08:57:32 -08:00
|
|
|
fi
|
|
|
|
else
|
2006-08-07 00:03:12 -07:00
|
|
|
PACKAGE_LIB_DIR="${libdir}"
|
|
|
|
fi
|
|
|
|
AC_SUBST(PACKAGE_LIB_DIR)
|
|
|
|
|
|
|
|
if test "x${prefix}" = "xNONE"; then
|
|
|
|
PACKAGE_DATA_DIR="${ac_default_prefix}/share/${PACKAGE}"
|
|
|
|
else
|
|
|
|
PACKAGE_DATA_DIR="${prefix}/share/${PACKAGE}"
|
2003-12-05 08:57:32 -08:00
|
|
|
fi
|
2006-08-07 00:03:12 -07:00
|
|
|
AC_SUBST(PACKAGE_DATA_DIR)
|
2003-09-23 01:09:32 -07:00
|
|
|
|
|
|
|
dnl Use -Wall if we have gcc.
|
|
|
|
changequote(,)dnl
|
|
|
|
if test "x$GCC" = "xyes"; then
|
|
|
|
case " $CFLAGS " in
|
|
|
|
*[\ \ ]-Wall[\ \ ]*) ;;
|
|
|
|
*) CFLAGS="$CFLAGS -Wall" ;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
changequote([,])dnl
|
|
|
|
|
2007-03-21 08:30:23 -07:00
|
|
|
# define pkg-config requirements for all our submodules.
|
|
|
|
# only the trivial requirements go here.
|
|
|
|
requirements_ecore_con=""
|
|
|
|
requirements_ecore_config=""
|
|
|
|
requirements_ecore_dbus=""
|
|
|
|
requirements_ecore_desktop=""
|
2007-03-31 04:11:02 -07:00
|
|
|
requirements_ecore_directfb=""
|
2007-03-21 08:30:23 -07:00
|
|
|
requirements_ecore_evas="evas"
|
|
|
|
requirements_ecore_fb=""
|
|
|
|
requirements_ecore_file=""
|
|
|
|
requirements_ecore_ipc=""
|
|
|
|
requirements_ecore_job=""
|
|
|
|
requirements_ecore_txt=""
|
|
|
|
requirements_ecore_x=""
|
|
|
|
|
2007-03-24 03:41:31 -07:00
|
|
|
dnl The first call to PKG_CHECK_MODULES is done conditionally,
|
|
|
|
dnl so we should include this here:
|
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
|
2004-10-20 10:51:29 -07:00
|
|
|
AC_CHECK_FUNCS(gettimeofday)
|
2007-01-10 03:28:41 -08:00
|
|
|
AC_CHECK_FUNCS(strlcpy)
|
2004-10-20 10:51:29 -07:00
|
|
|
|
|
|
|
AC_CHECK_HEADERS(netinet/in.h)
|
|
|
|
|
|
|
|
case "$host_os" in
|
|
|
|
mingw|mingw32)
|
|
|
|
winsock_libs="-lwsock32"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
AC_SUBST(winsock_libs)
|
|
|
|
|
2005-10-28 20:30:23 -07:00
|
|
|
iconv_cflags=""
|
|
|
|
iconv_libs=""
|
2007-03-31 04:11:02 -07:00
|
|
|
have_iconv="no"
|
2004-11-07 18:48:12 -08:00
|
|
|
AC_ARG_WITH(iconv-link,
|
2005-09-05 01:40:50 -07:00
|
|
|
[ --with-iconv-link=ICONV_LINK explicitly specify an iconv link option],
|
|
|
|
[
|
2005-10-28 20:30:23 -07:00
|
|
|
iconv_libs=$withval
|
2007-03-31 04:11:02 -07:00
|
|
|
have_iconv="yes"
|
2005-09-05 01:40:50 -07:00
|
|
|
]
|
|
|
|
)
|
2007-03-31 04:11:02 -07:00
|
|
|
AC_MSG_CHECKING(for explicit iconv link options)
|
|
|
|
AC_MSG_RESULT($iconv_libs)
|
2004-11-07 18:48:12 -08:00
|
|
|
|
2007-03-31 04:11:02 -07:00
|
|
|
if test "x$have_iconv" = "xno" ; then
|
|
|
|
AC_CHECK_LIB(iconv, libiconv,
|
|
|
|
[
|
|
|
|
iconv_libs="-liconv"
|
|
|
|
have_iconv="yes"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$have_iconv" != "xyes"; then
|
|
|
|
AC_CHECK_LIB(iconv, iconv,
|
2004-10-24 03:49:05 -07:00
|
|
|
[
|
2007-03-31 04:11:02 -07:00
|
|
|
iconv_libs="-liconv"
|
|
|
|
have_iconv="yes"
|
2004-10-24 03:49:05 -07:00
|
|
|
]
|
|
|
|
)
|
2004-01-04 12:23:36 -08:00
|
|
|
fi
|
2007-03-23 15:44:49 -07:00
|
|
|
|
2007-03-31 04:11:02 -07:00
|
|
|
if test "x$have_ecore_txt" != "xyes"; then
|
|
|
|
AC_CHECK_LIB(c, libiconv,
|
|
|
|
[
|
|
|
|
have_iconv="yes"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
fi
|
2007-03-23 15:44:49 -07:00
|
|
|
|
2007-03-31 04:11:02 -07:00
|
|
|
if test "x$have_ecore_txt" != "xyes"; then
|
|
|
|
AC_CHECK_LIB(c, iconv,
|
|
|
|
[
|
|
|
|
have_iconv="yes"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
fi
|
2005-10-28 20:30:23 -07:00
|
|
|
fi
|
2003-12-15 20:57:42 -08:00
|
|
|
|
|
|
|
AC_SUBST(iconv_cflags)
|
|
|
|
AC_SUBST(iconv_libs)
|
|
|
|
|
2007-03-31 04:11:02 -07:00
|
|
|
ECORE_CHECK_MODULE([Txt], [yes], [$have_iconv],
|
|
|
|
[ecore_txt_libs="$ecore_txt_libs $iconv_libs"])
|
2003-09-23 01:09:32 -07:00
|
|
|
|
Here is ecore_x with XCB backend.
* The XCB backend is disabled by default during the
configuration. To enable it, add --enable-ecore-x-xcb. See the
messages that configure displays when it finishes.
* The way XCB is detected, and used in src/lib/ecore_x/Makefile.am
should be improved
* Any program that uses ecore_evas does not need to be modified.
Any program that uses ecore_x may need some changes. That is,
adding some functions (_prefetch and _fetch ones). No other
change is needed. See the documention of any _get functions, as
these are the ones that need those functions.
* There are some missing parts, especially everything that involves
the keyboard, as porting Xlib functions related to strings (utf8
stuff, XKeysymToString, etc...) is an horror. So keyboard events
are not working yet.
* I tried to write as much documentation as I could. But there is
certainly some missing doc here and there.
there are certainly other things that I have forgotten.
Improvements of that backend:
* the creation of an ecore_evas is faster. Especially when done over
an ssh connection (on my computer, 7-10s with Xlib, 1.5s with XCB,
over an ssh)
* A Window Manager should be more responsive. But it's not tomorrow
that e17 will use it :)
Have fun !
SVN revision: 29500
2007-04-13 10:15:19 -07:00
|
|
|
dnl Check for XCB
|
|
|
|
have_ecore_x="no"
|
|
|
|
have_ecore_x_xcb="no"
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(ecore-x-xcb,
|
|
|
|
AC_HELP_STRING(
|
|
|
|
[--enable-ecore-x-xcb],
|
|
|
|
[enable the ecore_x module with XCB backend. [[default=disabled]]]),
|
|
|
|
[ want_ecore_x_xcb=$enableval ],
|
|
|
|
[ want_ecore_x_xcb="no" ])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether ecore_x with XCB backend is to be built)
|
|
|
|
AC_MSG_RESULT($want_ecore_x_xcb)
|
|
|
|
|
|
|
|
if test "x$want_ecore_x_xcb" = "xyes" ; then
|
|
|
|
PKG_CHECK_MODULES(XCB, xcb xcb-icccm xcb-image xcb-keysyms,
|
|
|
|
[ have_ecore_x_xcb="yes" ],
|
|
|
|
[ have_ecore_x_xcb="no" ])
|
|
|
|
|
|
|
|
if test "x$have_ecore_x_xcb" = "xyes" ; then
|
|
|
|
PKG_CHECK_MODULES(XCB_DAMAGE, xcb-damage,
|
|
|
|
[ have_ecore_x_xcb_damage="yes"
|
|
|
|
AC_DEFINE(ECORE_XCB_DAMAGE, 1, [Build support for XCB damage]) ],
|
|
|
|
[ have_ecore_x_xcb_damage="no" ])
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(XCB_DPMS, xcb-dpms,
|
|
|
|
[ have_ecore_x_xcb_dpms="yes"
|
|
|
|
AC_DEFINE(ECORE_XCB_DPMS, 1, [Build support for XCB dpms]) ],
|
|
|
|
[ have_ecore_x_xcb_dpms="no" ])
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(XCB_RANDR, xcb-randr,
|
|
|
|
[ have_ecore_x_xcb_randr="yes"
|
|
|
|
AC_DEFINE(ECORE_XCB_RANDR, 1, [Build support for XCB randr]) ],
|
|
|
|
[ have_ecore_x_xcb_randr="no" ])
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(XCB_RENDER, xcb-render,
|
|
|
|
[ have_ecore_x_xcb_render="yes"
|
|
|
|
AC_DEFINE(ECORE_XCB_RENDER, 1, [Build support for XCB render]) ],
|
|
|
|
[ have_ecore_x_xcb_render="no" ])
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(XCB_SCREENSAVER, xcb-screensaver,
|
|
|
|
[ have_ecore_x_xcb_screensaver="yes"
|
|
|
|
AC_DEFINE(ECORE_XCB_SCREENSAVER, 1, [Build support for XCB screensaver]) ],
|
|
|
|
[ have_ecore_x_xcb_screensaver="no" ])
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(XCB_SHAPE, xcb-shape,
|
|
|
|
[ have_ecore_x_xcb_shape="yes"
|
|
|
|
AC_DEFINE(ECORE_XCB_SHAPE, 1, [Build support for XCB shape]) ],
|
|
|
|
[ have_ecore_x_xcb_shape="no" ])
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(XCB_SYNC, xcb-sync,
|
|
|
|
[ have_ecore_x_xcb_sync="yes"
|
|
|
|
AC_DEFINE(ECORE_XCB_SYNC, 1, [Build support for XCB sync]) ],
|
|
|
|
[ have_ecore_x_xcb_sync="no" ])
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(XCB_XFIXES, xcb-xfixes,
|
|
|
|
[ have_ecore_x_xcb_xfixes="yes"
|
|
|
|
AC_DEFINE(ECORE_XCB_FIXES, 1, [Build support for XCB xfixes]) ],
|
|
|
|
[ have_ecore_x_xcb_xfixes="no" ])
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(XCB_XINERAMA, xcb-xinerama,
|
|
|
|
[ have_ecore_x_xcb_xinerama="yes"
|
|
|
|
AC_DEFINE(ECORE_XCB_XINERAMA, 1, [Build support for XCB xinerama]) ],
|
|
|
|
[ have_ecore_x_xcb_xinerama="no" ])
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(XCB_XPRINT, xcb-xprint,
|
|
|
|
[ have_ecore_x_xcb_xprint="yes"
|
|
|
|
AC_DEFINE(ECORE_XCB_XPRINT, 1, [Build support for XCB xprint]) ],
|
|
|
|
[ have_ecore_x_xcb_xprint="no" ])
|
|
|
|
|
|
|
|
AC_DEFINE(BUILD_ECORE_X, 1, [Build Ecore_X Module (XCB backend)])
|
|
|
|
AC_DEFINE(HAVE_ECORE_X_XCB, 1, [Defined to 1 if XCB backend is enabled.])
|
|
|
|
|
|
|
|
requirements_ecore_evas="$requirements_ecore_evas ecore-x"
|
|
|
|
have_ecore_x_xcb_define="-DHAVE_ECORE_X_XCB"
|
|
|
|
have_ecore_x="yes"
|
|
|
|
AC_SUBST(have_ecore_x_xcb_define)
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2007-03-31 04:11:02 -07:00
|
|
|
have_x="no"
|
2007-03-04 20:38:54 -08:00
|
|
|
x_dir="";
|
|
|
|
x_includes="";
|
|
|
|
x_cflags="";
|
|
|
|
x_libs="";
|
Here is ecore_x with XCB backend.
* The XCB backend is disabled by default during the
configuration. To enable it, add --enable-ecore-x-xcb. See the
messages that configure displays when it finishes.
* The way XCB is detected, and used in src/lib/ecore_x/Makefile.am
should be improved
* Any program that uses ecore_evas does not need to be modified.
Any program that uses ecore_x may need some changes. That is,
adding some functions (_prefetch and _fetch ones). No other
change is needed. See the documention of any _get functions, as
these are the ones that need those functions.
* There are some missing parts, especially everything that involves
the keyboard, as porting Xlib functions related to strings (utf8
stuff, XKeysymToString, etc...) is an horror. So keyboard events
are not working yet.
* I tried to write as much documentation as I could. But there is
certainly some missing doc here and there.
there are certainly other things that I have forgotten.
Improvements of that backend:
* the creation of an ecore_evas is faster. Especially when done over
an ssh connection (on my computer, 7-10s with Xlib, 1.5s with XCB,
over an ssh)
* A Window Manager should be more responsive. But it's not tomorrow
that e17 will use it :)
Have fun !
SVN revision: 29500
2007-04-13 10:15:19 -07:00
|
|
|
if test "x$have_ecore_x_xcb" != "xyes" ; then
|
2007-03-31 04:11:02 -07:00
|
|
|
AC_PATH_XTRA
|
|
|
|
AC_CHECK_HEADER(X11/X.h,
|
|
|
|
[
|
|
|
|
have_x="yes"
|
|
|
|
x_dir=${x_dir:-/usr/X11R6}
|
|
|
|
x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
|
|
|
|
x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
|
2003-12-15 20:57:42 -08:00
|
|
|
]
|
2007-03-23 15:53:21 -07:00
|
|
|
)
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_SUBST(x_cflags)
|
|
|
|
AC_SUBST(x_includes)
|
|
|
|
AC_SUBST(x_libs)
|
|
|
|
|
2007-03-31 04:11:02 -07:00
|
|
|
ECORE_CHECK_MODULE([X], [yes], [$have_x],
|
|
|
|
[ecore_x_libs="$ecore_x_libs $x_libs"])
|
|
|
|
|
2005-09-05 01:40:50 -07:00
|
|
|
if test "x$have_ecore_x" = "xyes"; then
|
|
|
|
Xcursor_libs=""
|
|
|
|
Xcursor_cflags=""
|
|
|
|
use_Xcursor="no"
|
|
|
|
PCFLAGS=$CFLAGS
|
|
|
|
CFLAGS=$x_cflags" "$x_includes
|
|
|
|
AC_CHECK_HEADER(X11/Xcursor/Xcursor.h,
|
|
|
|
[
|
|
|
|
AC_CHECK_LIB(Xcursor, XcursorImageLoadCursor,
|
|
|
|
[
|
|
|
|
AC_DEFINE(ECORE_XCURSOR, 1, [Build support for Xcursor])
|
|
|
|
Xcursor_cflags=""
|
|
|
|
Xcursor_libs="-lXcursor"
|
|
|
|
use_Xcursor="yes"
|
|
|
|
], [
|
|
|
|
Xcursor_cflags=""
|
|
|
|
Xcursor_libs=""
|
|
|
|
use_Xcursor="no"
|
|
|
|
], [
|
2006-08-07 00:03:12 -07:00
|
|
|
$x_libs -lXrender
|
2005-09-05 01:40:50 -07:00
|
|
|
]
|
|
|
|
)
|
|
|
|
], [
|
|
|
|
Xcursor_cflags=""
|
|
|
|
Xcursor_libs=""
|
|
|
|
use_Xcursor="no"
|
|
|
|
], [
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
]
|
|
|
|
)
|
|
|
|
CFLAGS=$PCFLAGS
|
2005-01-10 05:11:50 -08:00
|
|
|
|
2005-09-05 01:40:50 -07:00
|
|
|
AC_SUBST(Xcursor_cflags)
|
|
|
|
AC_SUBST(Xcursor_libs)
|
|
|
|
|
2007-03-31 07:55:16 -07:00
|
|
|
ECORE_CHECK_X_EXTENSION([Xdamage], [Xdamage.h], [Xdamage], [XDamageSubtract])
|
|
|
|
ECORE_CHECK_X_EXTENSION([Xdpms], [dpms.h], [Xdpms], [DPMSQueryExtension])
|
2007-03-15 15:21:28 -07:00
|
|
|
if test "x$use_xdpms" = "xno" ; then
|
2007-03-31 07:55:16 -07:00
|
|
|
ECORE_CHECK_X_EXTENSION([Xdpms], [dpms.h], [Xext], [DPMSQueryExtension])
|
2007-03-15 15:21:28 -07:00
|
|
|
fi
|
2007-03-31 07:55:16 -07:00
|
|
|
ECORE_CHECK_X_EXTENSION([Xfixes], [Xfixes.h], [Xfixes], [XFixesExpandRegion])
|
|
|
|
ECORE_CHECK_X_EXTENSION([Xinerama], [Xinerama.h], [Xinerama], [XineramaQueryScreens])
|
|
|
|
ECORE_CHECK_X_EXTENSION([Xprint], [Print.h], [Xp], [XpQueryScreens])
|
|
|
|
ECORE_CHECK_X_EXTENSION([Xrandr], [Xrandr.h], [Xrandr], [XRRSizes])
|
|
|
|
ECORE_CHECK_X_EXTENSION([Xrender], [Xrender.h], [Xrender], [XRenderFindVisualFormat])
|
|
|
|
ECORE_CHECK_X_EXTENSION([Xss], [scrnsaver.h], [Xss], [XScreenSaverSelectInput])
|
2007-03-13 02:31:22 -07:00
|
|
|
|
2007-03-21 08:30:23 -07:00
|
|
|
requirements_ecore_evas="$requirements_ecore_evas ecore-x"
|
2005-09-05 01:40:50 -07:00
|
|
|
fi
|
2005-08-13 15:14:40 -07:00
|
|
|
|
Here is ecore_x with XCB backend.
* The XCB backend is disabled by default during the
configuration. To enable it, add --enable-ecore-x-xcb. See the
messages that configure displays when it finishes.
* The way XCB is detected, and used in src/lib/ecore_x/Makefile.am
should be improved
* Any program that uses ecore_evas does not need to be modified.
Any program that uses ecore_x may need some changes. That is,
adding some functions (_prefetch and _fetch ones). No other
change is needed. See the documention of any _get functions, as
these are the ones that need those functions.
* There are some missing parts, especially everything that involves
the keyboard, as porting Xlib functions related to strings (utf8
stuff, XKeysymToString, etc...) is an horror. So keyboard events
are not working yet.
* I tried to write as much documentation as I could. But there is
certainly some missing doc here and there.
there are certainly other things that I have forgotten.
Improvements of that backend:
* the creation of an ecore_evas is faster. Especially when done over
an ssh connection (on my computer, 7-10s with Xlib, 1.5s with XCB,
over an ssh)
* A Window Manager should be more responsive. But it's not tomorrow
that e17 will use it :)
Have fun !
SVN revision: 29500
2007-04-13 10:15:19 -07:00
|
|
|
fi
|
|
|
|
|
2007-03-31 04:11:02 -07:00
|
|
|
ECORE_CHECK_MODULE([Job], [yes])
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2007-03-31 04:11:02 -07:00
|
|
|
PKG_CHECK_MODULES(DIRECTFB, directfb >= 0.9.16,
|
|
|
|
[ have_directfb="yes" ],
|
|
|
|
[ have_directfb="no" ]
|
2003-09-23 01:09:32 -07:00
|
|
|
)
|
|
|
|
|
2007-03-31 04:11:02 -07:00
|
|
|
ECORE_CHECK_MODULE([DirectFB], [yes], [$have_directfb],
|
|
|
|
[requirements_ecore_directfb="directfb"])
|
2005-10-15 03:37:37 -07:00
|
|
|
|
2007-03-31 04:11:02 -07:00
|
|
|
have_fb="no"
|
|
|
|
AC_CHECK_HEADER(linux/fb.h,
|
|
|
|
[
|
|
|
|
AC_CHECK_HEADER(linux/input.h, [ have_fb="yes" ])
|
2005-10-15 03:37:37 -07:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2007-03-31 04:11:02 -07:00
|
|
|
ECORE_CHECK_MODULE([FB], [no], [$have_fb],
|
|
|
|
[requirements_ecore_evas="$requirements_ecore_evas ecore-fb"])
|
2007-03-23 16:04:32 -07:00
|
|
|
|
2007-03-31 04:11:02 -07:00
|
|
|
tslib_libs=""
|
|
|
|
if test "x$have_ecore_fb" = "xyes" ; then
|
|
|
|
AC_CHECK_HEADER(tslib.h,
|
|
|
|
[
|
|
|
|
tslib_libs="-ltslib"
|
|
|
|
AC_DEFINE(HAVE_TSLIB, 1, [Build Ecore_FB Touchscreen Code])
|
2005-09-05 01:40:50 -07:00
|
|
|
]
|
2003-09-23 01:09:32 -07:00
|
|
|
)
|
2003-12-15 18:46:31 -08:00
|
|
|
fi
|
2006-11-25 11:24:46 -08:00
|
|
|
AC_SUBST(tslib_libs)
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2007-03-31 04:11:02 -07:00
|
|
|
PKG_CHECK_MODULES(EVAS, [evas >= 0.9.9],
|
|
|
|
[ have_evas="yes" ],
|
|
|
|
[ have_evas="no" ]
|
2003-09-23 01:09:32 -07:00
|
|
|
)
|
|
|
|
|
2007-03-31 04:11:02 -07:00
|
|
|
ECORE_CHECK_MODULE([Evas], [yes], [$have_evas])
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2004-01-03 16:31:29 -08:00
|
|
|
have_ecore_evas_gl="no";
|
2003-12-15 18:46:31 -08:00
|
|
|
|
2007-03-23 16:04:32 -07:00
|
|
|
AC_ARG_ENABLE(ecore-evas-gl,
|
|
|
|
AC_HELP_STRING(
|
|
|
|
[--enable-ecore-evas-gl],
|
|
|
|
[disable GL support in the ecore_evas module. [[default=enabled]]]
|
|
|
|
), [
|
|
|
|
want_ecore_evas_gl=$enableval
|
2005-09-05 01:40:50 -07:00
|
|
|
], [
|
2007-03-23 16:04:32 -07:00
|
|
|
want_ecore_evas_gl=yes
|
2005-09-05 01:40:50 -07:00
|
|
|
]
|
2003-09-23 01:09:32 -07:00
|
|
|
)
|
|
|
|
|
2007-03-23 16:04:32 -07:00
|
|
|
AC_MSG_CHECKING(whether ecore_evas gl support is to be built)
|
|
|
|
AC_MSG_RESULT($want_ecore_evas_gl)
|
|
|
|
|
2004-12-27 06:40:57 -08:00
|
|
|
dnl GL support requires X support, so we should
|
|
|
|
dnl handle the case where our user is on crack
|
|
|
|
dnl i.e. user disables X but enables GL
|
2005-06-13 03:05:03 -07:00
|
|
|
PCFLAGS=$CFLAGS
|
2005-09-05 01:40:50 -07:00
|
|
|
CFLAGS="$EVAS_CFLAGS $CFLAGS"
|
|
|
|
if test "x$want_ecore_evas_gl" = "xyes" -a "x$have_ecore_x" = "xyes"; then
|
2004-01-03 16:31:29 -08:00
|
|
|
AC_CHECK_HEADER(Evas_Engine_GL_X11.h,
|
2003-12-15 18:46:31 -08:00
|
|
|
[
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE(BUILD_ECORE_EVAS_GL, 1, [Support for GL Engine in Ecore_Evas])
|
2005-09-05 01:40:50 -07:00
|
|
|
have_ecore_evas_gl="yes";
|
2004-01-03 16:31:29 -08:00
|
|
|
], [
|
2007-03-23 13:25:18 -07:00
|
|
|
dummy=no
|
2004-01-03 16:31:29 -08:00
|
|
|
], [
|
2003-12-15 18:46:31 -08:00
|
|
|
#include <Evas.h>
|
2004-01-03 16:31:29 -08:00
|
|
|
]
|
|
|
|
)
|
2003-12-15 18:46:31 -08:00
|
|
|
else
|
2005-09-05 01:40:50 -07:00
|
|
|
if test "x$want_ecore_evas_gl" = "xyes"; then
|
2004-12-27 06:40:57 -08:00
|
|
|
AC_MSG_WARN(Silly monkey: ecore_evas_gl requires ecore_x ... disabling ecore_evas_gl)
|
|
|
|
fi
|
2003-12-15 18:46:31 -08:00
|
|
|
fi
|
2007-04-15 18:35:55 -07:00
|
|
|
PCFLAGS=$CFLAGS
|
2003-12-15 18:46:31 -08:00
|
|
|
|
2005-10-02 23:45:45 -07:00
|
|
|
have_ecore_evas_xrender="no";
|
|
|
|
|
2007-03-23 16:04:32 -07:00
|
|
|
AC_ARG_ENABLE(ecore-evas-xrender,
|
|
|
|
AC_HELP_STRING(
|
|
|
|
[--enable-ecore-evas-xrender],
|
|
|
|
[disable XRender support in the ecore_evas module. [[default=enabled]]]
|
|
|
|
), [
|
|
|
|
want_ecore_evas_xrender=$enableval
|
2005-10-02 23:45:45 -07:00
|
|
|
], [
|
2007-03-23 16:04:32 -07:00
|
|
|
want_ecore_evas_xrender=yes
|
2005-10-02 23:45:45 -07:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2007-03-23 16:04:32 -07:00
|
|
|
AC_MSG_CHECKING(whether ecore_evas xrender support is to be built)
|
|
|
|
AC_MSG_RESULT($want_ecore_evas_xrender)
|
|
|
|
|
2005-10-02 23:45:45 -07:00
|
|
|
dnl Xrender support requires X support, so we should
|
|
|
|
dnl handle the case where our user is on crack
|
|
|
|
dnl i.e. user disables X but enables Xrender
|
|
|
|
PCFLAGS=$CFLAGS
|
|
|
|
CFLAGS="$EVAS_CFLAGS $CFLAGS"
|
|
|
|
if test "x$want_ecore_evas_xrender" = "xyes" -a "x$have_ecore_x" = "xyes"; then
|
|
|
|
AC_CHECK_HEADER(Evas_Engine_XRender_X11.h,
|
|
|
|
[
|
|
|
|
AC_DEFINE(BUILD_ECORE_EVAS_XRENDER, 1, [Support for XRender Engine in Ecore_Evas])
|
|
|
|
have_ecore_evas_xrender="yes";
|
|
|
|
], [
|
2007-03-23 13:25:18 -07:00
|
|
|
dummy=no
|
2005-10-02 23:45:45 -07:00
|
|
|
], [
|
|
|
|
#include <Evas.h>
|
|
|
|
]
|
|
|
|
)
|
|
|
|
else
|
|
|
|
if test "x$want_ecore_evas_xrender" = "xyes"; then
|
|
|
|
AC_MSG_WARN(Silly monkey: ecore_evas_xrender requires ecore_x ... disabling ecore_evas_xrender)
|
|
|
|
fi
|
|
|
|
fi
|
2007-04-15 18:35:55 -07:00
|
|
|
PCFLAGS=$CFLAGS
|
2005-10-02 23:45:45 -07:00
|
|
|
|
2005-10-15 03:37:37 -07:00
|
|
|
AC_MSG_CHECKING(whether ecore_evas DirectFB support is to be built)
|
2005-10-28 20:30:23 -07:00
|
|
|
AC_ARG_ENABLE(ecore-evas-dfb,
|
2005-10-28 19:30:36 -07:00
|
|
|
[ --disable-ecore-evas-dfb disable DirectFB in the ecore_evas module],
|
2005-10-15 03:37:37 -07:00
|
|
|
[
|
2005-10-28 20:30:23 -07:00
|
|
|
if test "x$enableval" = "xno" ; then
|
|
|
|
want_ecore_evas_dfb=no
|
2005-10-15 03:37:37 -07:00
|
|
|
else
|
2005-10-28 20:30:23 -07:00
|
|
|
want_ecore_evas_dfb=yes
|
2005-10-15 03:37:37 -07:00
|
|
|
fi
|
|
|
|
], [
|
2005-10-28 20:30:23 -07:00
|
|
|
want_ecore_evas_dfb=maybe
|
2005-10-15 03:37:37 -07:00
|
|
|
]
|
|
|
|
)
|
2005-10-28 20:30:23 -07:00
|
|
|
AC_MSG_RESULT($want_ecore_evas_dfb)
|
2005-10-15 03:37:37 -07:00
|
|
|
|
2005-10-28 20:30:23 -07:00
|
|
|
have_ecore_evas_dfb="no"
|
|
|
|
if test "x$want_ecore_evas_dfb" != "xno" ; then
|
2005-10-28 20:00:29 -07:00
|
|
|
save_CFLAGS="$CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS $DIRECTFB_CFLAGS"
|
2005-10-20 17:57:37 -07:00
|
|
|
AC_CHECK_HEADER(Evas_Engine_DirectFB.h,
|
2005-10-15 03:37:37 -07:00
|
|
|
[
|
|
|
|
AC_DEFINE(BUILD_ECORE_EVAS_DIRECTFB, 1, [Support for DirectFB in Ecore_Evas])
|
|
|
|
have_ecore_evas_dfb="yes"
|
|
|
|
], [
|
2005-10-28 20:30:23 -07:00
|
|
|
if test "x$want_ecore_evas_dfb" = "xyes" ; then
|
|
|
|
AC_MSG_ERROR(DirectFB requested but support not found)
|
|
|
|
fi
|
2005-10-15 03:37:37 -07:00
|
|
|
], [
|
|
|
|
#include <Evas.h>
|
|
|
|
]
|
|
|
|
)
|
2005-10-28 20:00:29 -07:00
|
|
|
CFLAGS="$save_CFLAGS"
|
2005-10-15 03:37:37 -07:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2006-08-17 16:41:47 -07:00
|
|
|
want_ecore_evas_fb="no";
|
2004-01-03 16:31:29 -08:00
|
|
|
have_ecore_evas_fb="no";
|
2003-12-15 21:54:46 -08:00
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether ecore_evas fb support is to be built)
|
|
|
|
AC_ARG_ENABLE(ecore-evas-fb,
|
2006-08-17 16:41:47 -07:00
|
|
|
[ --enable-ecore-evas-fb enable fb in the ecore_evas module],
|
2005-09-05 01:40:50 -07:00
|
|
|
[
|
2005-10-12 16:15:17 -07:00
|
|
|
if test x"$enableval" = x"yes" ; then
|
2005-09-05 01:40:50 -07:00
|
|
|
AC_MSG_RESULT(yes)
|
2006-08-17 16:41:47 -07:00
|
|
|
want_ecore_evas_fb="yes"
|
2005-09-05 01:40:50 -07:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
], [
|
2006-08-17 16:41:47 -07:00
|
|
|
AC_MSG_RESULT(no)
|
2005-09-05 01:40:50 -07:00
|
|
|
]
|
2003-12-15 21:54:46 -08:00
|
|
|
)
|
2006-08-17 12:38:30 -07:00
|
|
|
if test "x$want_ecore_evas_fb" = "xyes" -a "x$have_ecore_fb" = "xyes"; then
|
2004-01-03 16:31:29 -08:00
|
|
|
AC_CHECK_HEADER(Evas_Engine_FB.h,
|
2003-12-15 21:54:46 -08:00
|
|
|
[
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE(BUILD_ECORE_EVAS_FB, 1, [Support for Linux FB in Ecore_Evas])
|
2005-09-05 01:40:50 -07:00
|
|
|
have_ecore_evas_fb="yes"
|
2004-01-03 16:31:29 -08:00
|
|
|
], [
|
2007-03-23 13:25:18 -07:00
|
|
|
dummy=no
|
2004-01-03 16:31:29 -08:00
|
|
|
], [
|
2003-12-15 21:54:46 -08:00
|
|
|
#include <Evas.h>
|
2004-01-03 16:31:29 -08:00
|
|
|
]
|
|
|
|
)
|
2003-12-15 21:54:46 -08:00
|
|
|
fi
|
|
|
|
|
2005-09-05 01:40:50 -07:00
|
|
|
want_ecore_evas_buffer="yes";
|
2005-01-08 10:40:32 -08:00
|
|
|
have_ecore_evas_buffer="no";
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether ecore_evas buffer support is to be built)
|
|
|
|
AC_ARG_ENABLE(ecore-evas-buffer,
|
2005-10-28 19:30:36 -07:00
|
|
|
[ --disable-ecore-evas-buffer disable buffer in the ecore_evas module],
|
2005-09-05 01:40:50 -07:00
|
|
|
[
|
2005-10-12 16:15:17 -07:00
|
|
|
if test x"$enableval" = x"yes" ; then
|
2005-09-05 01:40:50 -07:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
want_ecore_evas_buffer="no"
|
|
|
|
fi
|
|
|
|
], [
|
2005-01-08 10:40:32 -08:00
|
|
|
AC_MSG_RESULT(yes)
|
2005-09-05 01:40:50 -07:00
|
|
|
]
|
2005-01-08 10:40:32 -08:00
|
|
|
)
|
|
|
|
|
2005-09-05 01:40:50 -07:00
|
|
|
if test "x$want_ecore_evas_buffer" = "xyes"; then
|
2005-01-08 10:40:32 -08:00
|
|
|
AC_CHECK_HEADER(Evas_Engine_Buffer.h,
|
|
|
|
[
|
|
|
|
AC_DEFINE(BUILD_ECORE_EVAS_BUFFER, 1, [Support for Buffers in Ecore_Evas])
|
2005-09-05 01:40:50 -07:00
|
|
|
have_ecore_evas_buffer="yes"
|
2005-01-08 10:40:32 -08:00
|
|
|
], [
|
2007-03-23 13:25:18 -07:00
|
|
|
dummy=no
|
2005-01-08 10:40:32 -08:00
|
|
|
], [
|
|
|
|
#include <Evas.h>
|
|
|
|
]
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
|
2004-03-31 08:47:45 -08:00
|
|
|
AC_ARG_ENABLE(openssl,
|
2007-03-31 04:11:02 -07:00
|
|
|
AC_HELP_STRING(
|
|
|
|
[--enable-openssl],
|
|
|
|
[enable openssl support @<:@default=auto@:>@]
|
|
|
|
),
|
2005-09-05 01:40:50 -07:00
|
|
|
[ use_openssl=$enableval ],
|
|
|
|
[ use_openssl=yes ]
|
|
|
|
)
|
2004-03-31 08:47:45 -08:00
|
|
|
|
|
|
|
if test "x$use_openssl" = "xyes"; then
|
2005-09-05 01:40:50 -07:00
|
|
|
PKG_CHECK_MODULES(SSL, openssl,
|
|
|
|
[
|
|
|
|
use_openssl=yes
|
|
|
|
AC_DEFINE(USE_OPENSSL, 1, [Use OpenSSL])
|
2007-03-21 08:30:23 -07:00
|
|
|
requirements_ecore_con="$requirements_ecore_con openssl"
|
|
|
|
# no need to add it to req_ecore_{ipc,dbus}, since they
|
|
|
|
# depends on ecore_con anyway.
|
2005-09-05 01:40:50 -07:00
|
|
|
],
|
|
|
|
[ use_openssl=no ]
|
|
|
|
)
|
2004-03-31 08:47:45 -08:00
|
|
|
fi
|
|
|
|
|
2007-04-04 05:28:16 -07:00
|
|
|
want_abstract_sockets="yes"
|
|
|
|
AC_ARG_ENABLE(abstract-sockets,
|
|
|
|
AC_HELP_STRING(
|
|
|
|
[--disable-abstract-sockets],
|
|
|
|
[disable abstract sockets. [[default=enabled]]]
|
|
|
|
),
|
|
|
|
[ want_abstract_sockets=$enableval ],
|
|
|
|
[ want_abstract_sockets="yes"]
|
2006-09-24 00:24:52 -07:00
|
|
|
)
|
2007-04-04 05:28:16 -07:00
|
|
|
if test "x$want_abstract_sockets" = "xyes"; then
|
|
|
|
AC_ABSTRACT_SOCKET_TEST(
|
|
|
|
[AC_DEFINE(HAVE_ABSTRACT_SOCKETS, 1, [Have abstract sockets namespace])],
|
|
|
|
[]
|
|
|
|
)
|
|
|
|
fi
|
2006-09-24 00:24:52 -07:00
|
|
|
|
2007-03-31 04:11:02 -07:00
|
|
|
ECORE_CHECK_MODULE([Con], [yes])
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2007-03-31 04:11:02 -07:00
|
|
|
ECORE_CHECK_MODULE([Ipc], [yes], [$have_ecore_con])
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2007-03-31 04:11:02 -07:00
|
|
|
ECORE_CHECK_MODULE([DBus], [yes])
|
2003-12-15 18:46:31 -08:00
|
|
|
|
2007-03-31 04:11:02 -07:00
|
|
|
PKG_CHECK_MODULES(EET, [eet >= 0.9.10],
|
|
|
|
[ have_eet="yes" ],
|
|
|
|
[ have_eet="no" ]
|
2005-04-28 22:29:29 -07:00
|
|
|
)
|
|
|
|
|
2007-03-31 04:11:02 -07:00
|
|
|
ECORE_CHECK_MODULE([Config], [yes], [$have_eet],
|
|
|
|
[requirements_ecore_config="$requirements_ecore_config eet"])
|
2005-04-28 22:29:29 -07:00
|
|
|
|
2007-03-31 04:11:02 -07:00
|
|
|
ECORE_CHECK_MODULE([File], [yes])
|
2005-04-28 22:29:29 -07:00
|
|
|
|
2005-03-29 22:35:12 -08:00
|
|
|
use_fam="no"
|
2005-09-05 01:40:50 -07:00
|
|
|
use_inotify="yes"
|
|
|
|
use_poll="yes"
|
2006-04-06 15:44:31 -07:00
|
|
|
use_curl="yes"
|
2005-02-20 04:18:09 -08:00
|
|
|
|
2005-09-05 01:40:50 -07:00
|
|
|
if test "x$have_ecore_file" = "xyes"; then
|
|
|
|
dnl We need to check if the right inotify version is accessible
|
|
|
|
AC_MSG_CHECKING(whether inotify is to be used for filemonitoring)
|
|
|
|
AC_ARG_ENABLE(inotify,
|
2005-10-28 19:30:36 -07:00
|
|
|
[ --disable-inotify disable inotify in the ecore_file module],
|
2005-08-29 09:19:53 -07:00
|
|
|
[
|
2005-09-05 01:40:50 -07:00
|
|
|
if test "$enableval" = "yes"; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
use_inotify="no"
|
|
|
|
fi
|
|
|
|
], [
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
dnl It's 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$use_inotify" = "xyes"; then
|
2007-03-30 05:24:19 -07:00
|
|
|
AC_CHECK_LIB(c, inotify_init, [
|
2005-09-05 01:40:50 -07:00
|
|
|
AC_DEFINE(HAVE_INOTIFY, 1, [ File monitoring with Inotify ])
|
2007-04-03 12:20:04 -07:00
|
|
|
AC_DEFINE(HAVE_SYS_INOTIFY, 1, [ File monitoring with Inotify - sys/inotify.h ])
|
2007-04-04 04:37:10 -07:00
|
|
|
],
|
|
|
|
[
|
2007-03-30 05:24:19 -07:00
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[
|
2007-04-03 12:20:04 -07:00
|
|
|
#include <asm/unistd.h>
|
|
|
|
#include <linux/inotify.h>
|
2007-03-30 05:24:19 -07:00
|
|
|
],
|
2007-04-04 04:23:41 -07:00
|
|
|
[ int a = __NR_inotify_init; int b = IN_MOVE_SELF; ],
|
2007-03-30 05:24:19 -07:00
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_INOTIFY, 1, [ File monitoring with Inotify ])
|
|
|
|
], [
|
|
|
|
use_inotify="no"
|
|
|
|
]
|
2007-04-04 04:37:10 -07:00
|
|
|
)
|
2005-09-05 01:40:50 -07:00
|
|
|
]
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
|
|
|
|
#AC_MSG_CHECKING(whether FAM is to be used for filemonitoring)
|
|
|
|
#AC_ARG_ENABLE(fam,
|
|
|
|
# [ --enable-fam enable fam in the ecore_file module],
|
|
|
|
# [
|
|
|
|
# if test "$enableval" = "yes"; then
|
|
|
|
# AC_MSG_RESULT(yes)
|
|
|
|
# use_fam="yes"
|
|
|
|
# else
|
|
|
|
# AC_MSG_RESULT(no)
|
|
|
|
# fi
|
|
|
|
# ], [
|
|
|
|
# AC_MSG_RESULT(no)
|
|
|
|
# ]
|
|
|
|
#)
|
|
|
|
|
|
|
|
fam_libs=""
|
|
|
|
#if test "x$use_fam" = "xyes"; then
|
|
|
|
# AC_CHECK_LIB(fam, FAMOpen,
|
|
|
|
# [
|
|
|
|
# AC_DEFINE(HAVE_FAM, 1, [ File monitoring with FAM ])
|
|
|
|
# fam_libs="-lfam"
|
|
|
|
# ecore_file_libs="$ecore_file_libs $fam_libs"
|
|
|
|
# ], [
|
|
|
|
# use_fam="no"
|
|
|
|
# ]
|
|
|
|
# )
|
|
|
|
#fi
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether polling is to be used for filemonitoring)
|
|
|
|
AC_ARG_ENABLE(poll,
|
2005-10-28 19:30:36 -07:00
|
|
|
[ --disable-poll disable poll in the ecore_file module],
|
2005-03-29 22:35:12 -08:00
|
|
|
[
|
2005-09-05 01:40:50 -07:00
|
|
|
if test "$enableval" = "yes"; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
use_poll="no"
|
|
|
|
fi
|
2005-03-29 22:35:12 -08:00
|
|
|
], [
|
2005-09-05 01:40:50 -07:00
|
|
|
AC_MSG_RESULT(yes)
|
2005-03-29 22:35:12 -08:00
|
|
|
]
|
|
|
|
)
|
2005-09-05 01:40:50 -07:00
|
|
|
|
|
|
|
if test "x$use_poll" = "xyes"; then
|
|
|
|
AC_DEFINE(HAVE_POLL, 1, [ File monitoring with polling ])
|
|
|
|
fi
|
|
|
|
|
2006-04-06 15:44:31 -07:00
|
|
|
use_curl="yes"
|
2005-09-05 01:40:50 -07:00
|
|
|
AC_MSG_CHECKING(whether CURL is to be used for file download)
|
|
|
|
AC_ARG_ENABLE(curl,
|
2006-04-07 14:47:53 -07:00
|
|
|
[ --disable-curl disable curl in the ecore_file module],
|
2005-09-05 01:40:50 -07:00
|
|
|
[
|
|
|
|
if test "$enableval" = "yes"; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
2006-04-06 15:44:31 -07:00
|
|
|
use_curl="no"
|
2005-09-05 01:40:50 -07:00
|
|
|
fi
|
|
|
|
], [
|
2006-04-06 15:44:31 -07:00
|
|
|
AC_MSG_RESULT(yes)
|
2005-09-05 01:40:50 -07:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$use_curl" = "xyes"; then
|
2007-03-21 08:30:23 -07:00
|
|
|
PKG_CHECK_MODULES(CURL, libcurl,
|
2005-09-05 01:40:50 -07:00
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_CURL, 1, [ Downloading with CURL ])
|
|
|
|
ecore_file_libs="$ecore_file_libs $CURL_LIBS"
|
2007-03-21 08:30:23 -07:00
|
|
|
requirements_ecore_file="$requirements_ecore_file libcurl"
|
2005-09-05 01:40:50 -07:00
|
|
|
], [
|
|
|
|
use_curl="no"
|
|
|
|
]
|
|
|
|
)
|
2005-03-29 22:35:12 -08:00
|
|
|
fi
|
2005-06-17 16:52:32 -07:00
|
|
|
fi
|
|
|
|
|
2005-02-20 04:18:09 -08:00
|
|
|
AC_SUBST(fam_libs)
|
2007-03-24 01:38:33 -07:00
|
|
|
|
2007-03-31 04:11:02 -07:00
|
|
|
ECORE_CHECK_MODULE([Desktop], [yes], [$have_ecore_file],
|
|
|
|
[requirements_ecore_desktop="ecore-file"])
|
2007-03-24 01:38:33 -07:00
|
|
|
|
2004-03-17 21:30:48 -08:00
|
|
|
AC_CHECK_LIB(dl, dlopen, dlopen_libs=-ldl)
|
|
|
|
AC_SUBST(dlopen_libs)
|
|
|
|
|
|
|
|
dnl Checking for Perl:
|
|
|
|
AC_PATH_PROG(PERL,perl,0)
|
|
|
|
AC_SUBST(PERL)
|
|
|
|
|
2007-03-21 08:30:23 -07:00
|
|
|
AC_SUBST(requirements_ecore_con)
|
|
|
|
AC_SUBST(requirements_ecore_config)
|
|
|
|
AC_SUBST(requirements_ecore_dbus)
|
|
|
|
AC_SUBST(requirements_ecore_desktop)
|
|
|
|
AC_SUBST(requirements_ecore_directfb)
|
|
|
|
AC_SUBST(requirements_ecore_evas)
|
|
|
|
AC_SUBST(requirements_ecore_fb)
|
|
|
|
AC_SUBST(requirements_ecore_file)
|
|
|
|
AC_SUBST(requirements_ecore_ipc)
|
|
|
|
AC_SUBST(requirements_ecore_job)
|
|
|
|
AC_SUBST(requirements_ecore_txt)
|
|
|
|
AC_SUBST(requirements_ecore_x)
|
2004-07-11 01:08:03 -07:00
|
|
|
|
2007-03-23 13:25:18 -07:00
|
|
|
# set up conditionals
|
Here is ecore_x with XCB backend.
* The XCB backend is disabled by default during the
configuration. To enable it, add --enable-ecore-x-xcb. See the
messages that configure displays when it finishes.
* The way XCB is detected, and used in src/lib/ecore_x/Makefile.am
should be improved
* Any program that uses ecore_evas does not need to be modified.
Any program that uses ecore_x may need some changes. That is,
adding some functions (_prefetch and _fetch ones). No other
change is needed. See the documention of any _get functions, as
these are the ones that need those functions.
* There are some missing parts, especially everything that involves
the keyboard, as porting Xlib functions related to strings (utf8
stuff, XKeysymToString, etc...) is an horror. So keyboard events
are not working yet.
* I tried to write as much documentation as I could. But there is
certainly some missing doc here and there.
there are certainly other things that I have forgotten.
Improvements of that backend:
* the creation of an ecore_evas is faster. Especially when done over
an ssh connection (on my computer, 7-10s with Xlib, 1.5s with XCB,
over an ssh)
* A Window Manager should be more responsive. But it's not tomorrow
that e17 will use it :)
Have fun !
SVN revision: 29500
2007-04-13 10:15:19 -07:00
|
|
|
AM_CONDITIONAL(BUILD_ECORE_X, test "x$have_ecore_x" = "xyes")
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_X_XCB, test "x$have_ecore_x_xcb" = "xyes")
|
2007-03-23 13:25:18 -07:00
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS_GL, test $have_ecore_evas_gl = yes)
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS_XRENDER, test $have_ecore_evas_xrender = yes)
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS_DIRECTFB, test $have_ecore_evas_dfb = yes)
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS_FB, test $have_ecore_evas_fb = yes)
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS_BUFFER, test $have_ecore_evas_buffer = yes)
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
2007-03-21 08:30:23 -07:00
|
|
|
ecore-con.pc
|
|
|
|
ecore-config.pc
|
|
|
|
ecore-dbus.pc
|
|
|
|
ecore-desktop.pc
|
|
|
|
ecore-directfb.pc
|
|
|
|
ecore-evas.pc
|
|
|
|
ecore-fb.pc
|
|
|
|
ecore-file.pc
|
|
|
|
ecore-ipc.pc
|
|
|
|
ecore-job.pc
|
|
|
|
ecore-txt.pc
|
|
|
|
ecore-x.pc
|
2004-07-11 01:08:03 -07:00
|
|
|
ecore.pc
|
2003-09-23 01:09:32 -07:00
|
|
|
src/Makefile
|
2006-10-28 04:41:53 -07:00
|
|
|
src/bin/Makefile
|
2003-09-23 01:09:32 -07:00
|
|
|
src/lib/Makefile
|
|
|
|
src/lib/ecore/Makefile
|
|
|
|
src/lib/ecore_job/Makefile
|
|
|
|
src/lib/ecore_x/Makefile
|
|
|
|
src/lib/ecore_fb/Makefile
|
|
|
|
src/lib/ecore_evas/Makefile
|
|
|
|
src/lib/ecore_con/Makefile
|
|
|
|
src/lib/ecore_ipc/Makefile
|
2003-10-09 00:49:59 -07:00
|
|
|
src/lib/ecore_txt/Makefile
|
2003-12-05 07:02:17 -08:00
|
|
|
src/lib/ecore_config/Makefile
|
2005-02-20 04:18:09 -08:00
|
|
|
src/lib/ecore_file/Makefile
|
2005-04-28 22:29:29 -07:00
|
|
|
src/lib/ecore_dbus/Makefile
|
2006-08-11 06:45:39 -07:00
|
|
|
src/lib/ecore_desktop/Makefile
|
2005-10-15 03:37:37 -07:00
|
|
|
src/lib/ecore_directfb/Makefile
|
2005-03-10 07:19:43 -08:00
|
|
|
ecore-config
|
|
|
|
README
|
|
|
|
ecore.spec
|
2006-03-12 02:40:49 -08:00
|
|
|
debian/changelog
|
2005-03-10 07:19:43 -08:00
|
|
|
],[
|
2003-09-23 01:09:32 -07:00
|
|
|
chmod +x ecore-config
|
2005-03-10 07:19:43 -08:00
|
|
|
])
|
2004-01-02 11:08:32 -08:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo "$PACKAGE $VERSION"
|
|
|
|
echo
|
|
|
|
echo "Optional Modules:"
|
|
|
|
echo
|
2005-10-02 23:45:45 -07:00
|
|
|
echo " Ecore_Job....................: $have_ecore_job"
|
|
|
|
echo " Ecore_Con....................: $have_ecore_con (OpenSSL: $use_openssl)"
|
|
|
|
echo " Ecore_Txt....................: $have_ecore_txt"
|
Here is ecore_x with XCB backend.
* The XCB backend is disabled by default during the
configuration. To enable it, add --enable-ecore-x-xcb. See the
messages that configure displays when it finishes.
* The way XCB is detected, and used in src/lib/ecore_x/Makefile.am
should be improved
* Any program that uses ecore_evas does not need to be modified.
Any program that uses ecore_x may need some changes. That is,
adding some functions (_prefetch and _fetch ones). No other
change is needed. See the documention of any _get functions, as
these are the ones that need those functions.
* There are some missing parts, especially everything that involves
the keyboard, as porting Xlib functions related to strings (utf8
stuff, XKeysymToString, etc...) is an horror. So keyboard events
are not working yet.
* I tried to write as much documentation as I could. But there is
certainly some missing doc here and there.
there are certainly other things that I have forgotten.
Improvements of that backend:
* the creation of an ecore_evas is faster. Especially when done over
an ssh connection (on my computer, 7-10s with Xlib, 1.5s with XCB,
over an ssh)
* A Window Manager should be more responsive. But it's not tomorrow
that e17 will use it :)
Have fun !
SVN revision: 29500
2007-04-13 10:15:19 -07:00
|
|
|
if test "x$have_ecore_x_xcb" = "xyes" ; then
|
|
|
|
echo " Ecore_X (XCB backend)........: $have_ecore_x_xcb (Xprint: $have_ecore_x_xcb_xprint) (Xinerama: $have_ecore_x_xcb_xinerama) (Xrandr: $have_ecore_x_xcb_randr) (Xscreensaver: $have_ecore_x_xcb_screensaver) (Xshape: $have_ecore_x_xcb_shape) (Xsync: $have_ecore_x_xcb_sync) (Xrender: $have_ecore_x_xcb_render) (Xfixes: $have_ecore_x_xcb_xfixes) (Xdamage: $have_ecore_x_xcb_damage) (Xdpms: $have_ecore_x_xcb_dpms)"
|
|
|
|
else
|
|
|
|
echo " Ecore_X (Xlib backend).......: $have_ecore_x (Xcursor: $use_Xcursor) (Xprint: $use_xprint) (Xinerama: $use_xinerama) (Xrandr: $use_xrandr) (Xscreensaver: $use_xss) (Xrender: $use_xrender) (Xfixes: $use_xfixes) (Xdamage: $use_xdamage) (Xdpms: $use_xdpms)"
|
|
|
|
fi
|
2005-10-02 23:45:45 -07:00
|
|
|
echo " Ecore_FB.....................: $have_ecore_fb"
|
2007-03-31 04:11:02 -07:00
|
|
|
echo " Ecore_DFB....................: $have_ecore_directfb"
|
2005-10-02 23:45:45 -07:00
|
|
|
echo " Ecore_Evas...................: $have_ecore_evas"
|
|
|
|
echo " Ecore_Evas GL Support........: $have_ecore_evas_gl"
|
|
|
|
echo " Ecore_Evas XRender Support...: $have_ecore_evas_xrender"
|
|
|
|
echo " Ecore_Evas FB Support........: $have_ecore_evas_fb"
|
2005-10-15 03:37:37 -07:00
|
|
|
echo " Ecore_Evas DFB Support.......: $have_ecore_evas_dfb"
|
2007-03-23 15:29:23 -07:00
|
|
|
echo " Ecore_Evas Buffer Support....: $have_ecore_evas_buffer"
|
2005-10-02 23:45:45 -07:00
|
|
|
echo " Ecore_Ipc....................: $have_ecore_ipc (OpenSSL: $use_openssl)"
|
|
|
|
echo " Ecore_Config.................: $have_ecore_config"
|
|
|
|
echo " Ecore_DBUS...................: $have_ecore_dbus"
|
2006-08-11 06:45:39 -07:00
|
|
|
echo " Ecore_Desktop................: $have_ecore_desktop"
|
2005-10-02 23:45:45 -07:00
|
|
|
#echo " Ecore_File...................: $have_ecore_file (Inotify: $use_inotify) (FAM: $use_fam) (Poll: $use_poll)"
|
|
|
|
echo " Ecore_File...................: $have_ecore_file (Inotify: $use_inotify) (Poll: $use_poll) (CURL: $use_curl)"
|
2004-01-02 11:08:32 -08:00
|
|
|
echo
|
|
|
|
echo "Now type 'make' ('gmake' on some systems) to compile $PACKAGE."
|
|
|
|
echo
|