1 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
3 m4_define([v_maj], [1])
4 m4_define([v_min], [7])
5 m4_define([v_mic], [7])
6 m4_define([v_rev], m4_esyscmd([(git rev-list --count HEAD 2>/dev/null || echo 0) | tr -d '\n']))dnl
7 ##-- When released, remove the dnl on the below line
9 ##-- When doing snapshots - change soname. remove dnl on below line
10 dnl m4_define([relname], [ver-pre-svn-09])
11 dnl m4_define([v_rel], [-release relname])
12 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
13 m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])],
14 [m4_define([v_ver], [v_maj.v_min.v_mic])])
15 m4_define([lt_rev], m4_eval(v_maj + v_min))
16 m4_define([lt_cur], v_mic)
17 m4_define([lt_age], v_min)
18 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
19 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
21 AC_INIT([eio], [v_ver], [enlightenment-devel@lists.sourceforge.net])
23 AC_CONFIG_SRCDIR([configure.ac])
24 AC_CONFIG_MACRO_DIR([m4])
26 AC_CONFIG_HEADERS([config.h])
28 #ifndef EFL_CONFIG_H__
29 #define EFL_CONFIG_H__
32 #endif /* EFL_CONFIG_H__ */
35 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
36 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
42 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
43 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
46 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
47 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
48 m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
49 m4_ifdef([v_rel], , [m4_define([v_rel], [])])
50 AC_DEFINE_UNQUOTED(VMAJ, [v_maj], [Major version])
51 AC_DEFINE_UNQUOTED(VMIN, [v_min], [Minor version])
52 AC_DEFINE_UNQUOTED(VMIC, [v_mic], [Micro version])
53 AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison])
54 version_info="lt_rev:lt_cur:lt_age"
56 AC_SUBST([version_info])
57 AC_SUBST([release_info])
58 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
59 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
64 ### Needed information
70 ### Default options with respect to host
73 want_notify_win32="no"
77 want_notify_win32="yes"
85 ### Checks for programs
92 # Check whether pkg-config supports Requires.private
93 if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
94 pkgconfig_requires_private="Requires.private"
96 pkgconfig_requires_private="Requires"
98 AC_SUBST([pkgconfig_requires_private])
100 # doxygen program for documentation building
102 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
105 ### Checks for libraries
110 PKG_CHECK_EXISTS([evil >= 1.7.7])
111 AC_DEFINE([HAVE_EVIL], [1], [Set to 1 if evil package is installed])
112 requirements_eio="${requirements_eio} evil >= 1.7.7"
113 EFL_EIO_BUILD="-DEFL_EIO_BUILD"
116 AC_SUBST([EFL_EIO_BUILD])
118 requirements_eio="${requirements_eio} eet >= 1.7.7 eina >= 1.7.7 ecore >= 1.7.7"
119 AC_SUBST([requirements_eio])
121 PKG_CHECK_MODULES([EIO], [${requirements_eio}])
124 ### Checks for header files
128 AC_CHECK_HEADERS([unistd.h libgen.h grp.h features.h pwd.h])
132 if test "x${_efl_have_posix_threads}" = "xyes" ; then
135 if test "x${_efl_have_win32_threads}" = "xyes" ; then
144 if test "x${have_threads}" = "xno" ; then
145 AC_MSG_ERROR([Threads not supported. Be sure to have pthread on non Windows OS])
152 ### Checks for structures
154 ### Checks for compiler characteristics
163 EFL_EIO_BUILD="-DEFL_EIO_BUILD"
166 AC_SUBST(EFL_EIO_BUILD)
168 ### Checks for linker characteristics
170 # use --enable-auto-import on Windows
172 lt_enable_auto_import=""
175 lt_enable_auto_import="-Wl,--enable-auto-import"
178 AC_SUBST(lt_enable_auto_import)
180 ### Checks for library functions
181 AC_CHECK_FUNCS([fchmod chown getpwnam getgrnam fcntl])
183 ### Check for splice system call
185 AC_MSG_CHECKING([whether to use splice for file copy])
188 #if defined(HAVE_UNISTD_H)
194 long ret = splice(0,0,1,0,400,0);
198 AC_MSG_RESULT([${have_splice}])
200 if test "x${have_splice}" = "xyes" ; then
201 AC_DEFINE([HAVE_SPLICE], [1], [Define to mention that splice syscall is supported])
206 AC_MSG_CHECKING([whether lstat is available])
209 #include <sys/types.h>
210 #include <sys/stat.h>
211 #if defined(HAVE_UNISTD_H)
221 AC_MSG_RESULT([${have_lstat}])
223 if test "x${have_lstat}" = "xyes" ; then
224 AC_DEFINE([HAVE_LSTAT], [1], [Define to mention that lstat syscall is supported])
229 AC_MSG_CHECKING([for extended attributes])
235 #include <sys/types.h>
236 #include <sys/xattr.h>
239 size_t tmp = listxattr("/", NULL, 0);
240 tmp = getxattr("/", "user.ethumb.md5", NULL, 0);
241 setxattr("/", "user.ethumb.md5", NULL, 0, 0);
244 AC_DEFINE([HAVE_XATTR], [1], [Define to 1 if you have the `listxattr', `setxattr' and `getxattr' functions.])
249 AC_MSG_RESULT([${have_xattr}])
251 # Check for inotify specificity
253 have_notify_win32="no"
254 EIO_CHECK_INOTIFY([${want_inotify}], [have_inotify="yes"], [have_inotify="no"])
255 EIO_CHECK_NOTIFY_WIN32([${want_notify_win32}], [have_notify_win32="yes"], [have_notify_win32="no"])
257 AM_CONDITIONAL([EIO_HAVE_INOTIFY], [test "x$have_inotify" = "xyes"])
258 AM_CONDITIONAL([EIO_HAVE_WINCHANGE], [test "x$have_notify_win32" = "xyes"])
259 EFL_CHECK_BUILD_EXAMPLES([enable_build_examples="yes"], [enable_build_examples="no"])
260 EFL_CHECK_INSTALL_EXAMPLES([enable_install_examples="yes"], [enable_install_examples="no"])
272 src/examples/Makefile
277 echo "------------------------------------------------------------------------"
278 echo "$PACKAGE_NAME $PACKAGE_VERSION"
279 echo "------------------------------------------------------------------------"
283 echo "Configuration Options Summary:"
285 echo " Thread Support.......: ${have_threads}"
286 echo " Inotify..............: ${have_inotify}"
287 echo " Windows notification.: ${have_notify_win32}"
289 echo " Documentation........: ${build_doc}"
290 if test "x${build_doc}" = "xyes" ; then
291 echo " Installation.......: make install-doc"
293 echo " Examples...............: ${enable_build_examples}"
294 echo " Examples installed.....: ${enable_install_examples}"
296 echo "Compilation............: make (or gmake)"
297 echo " CPPFLAGS.............: $CPPFLAGS"
298 echo " CFLAGS...............: $CFLAGS"
299 echo " LDFLAGS..............: $LDFLAGS"
301 echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
302 echo " prefix...............: $prefix"