##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## m4_define([v_maj], [0]) m4_define([v_min], [1]) m4_define([v_mic], [0]) m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v export || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n'])) m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))]) ##-- When released, remove the dnl on the below line dnl m4_undefine([v_rev]) ##-- When doing snapshots - change soname. remove dnl on below line m4_define([relname], [ver-pre-svn-08]) m4_define([v_rel], [-release relname]) ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])], [m4_define([v_ver], [v_maj.v_min.v_mic])]) m4_define([lt_rev], m4_eval(v_maj + v_min)) m4_define([lt_cur], v_mic) m4_define([lt_age], v_min) ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## AC_INIT([eio], [v_ver], [enlightenment-devel@lists.sourceforge.net]) release="ver-pre-svn-07" AC_PREREQ([2.52]) AC_CONFIG_SRCDIR([configure.ac]) AC_CONFIG_MACRO_DIR([m4]) AC_CANONICAL_BUILD AC_CANONICAL_HOST AC_ISC_POSIX AM_INIT_AUTOMAKE([1.6 dist-bzip2]) AM_CONFIG_HEADER([config.h]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) AC_GNU_SOURCE AC_LIBTOOL_WIN32_DLL define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl AC_PROG_LIBTOOL ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## m4_ifdef([v_rev], , [m4_define([v_rev], [0])]) m4_ifdef([v_rel], , [m4_define([v_rel], [])]) AC_DEFINE_UNQUOTED(VERS_MAJ, [v_maj], [Major version]) AC_DEFINE_UNQUOTED(VERS_MIN, [v_min], [Minor version]) AC_DEFINE_UNQUOTED(VERS_MIC, [v_mic], [Micro version]) AC_DEFINE_UNQUOTED(VERS_REV, [v_rev], [Revison]) version_info="lt_rev:lt_cur:lt_age" release_info="v_rel" AC_SUBST(version_info) AC_SUBST(release_info) ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## VMAJ=v_maj AC_SUBST(VMAJ) dnl we just have set the version info, then: AC_SUBST(version_info) AC_PROG_CC # pkg-config PKG_PROG_PKG_CONFIG # Check whether pkg-config supports Requires.private if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then pkgconfig_requires_private="Requires.private" else pkgconfig_requires_private="Requires" fi AC_SUBST(pkgconfig_requires_private) AC_SUBST(requirements_eio) # doxygen program for documentation building EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"]) ### Checks for libraries requirements_eio="eina >= 1.0.0 ecore >= 1.0.0" PKG_CHECK_MODULES([EIO], [${requirements_eio}]) ### Checks for header files AC_HEADER_ASSERT AC_HEADER_DIRENT AC_HEADER_TIME AC_CHECK_HEADERS([grp.h]) EFL_CHECK_THREADS( [ if test "x${_efl_have_posix_threads}" = "xyes" ; then have_threads="POSIX" else if test "x${_efl_have_win32_threads}" = "xyes" ; then have_threads="Win32" else have_threads="no" fi fi ], [have_threads="no"]) if test "x${have_threads}" = "xno" ; then AC_MSG_ERROR([Threads not supported. Be sure to have pthread on non Windows OS]) fi ### Checks for types ### Checks for structures ### Checks for linker characteristics # use --enable-auto-import on Windows lt_enable_auto_import="" case "$host_os" in mingw* | cegcc*) lt_enable_auto_import="-Wl,--enable-auto-import" ;; esac AC_SUBST(lt_enable_auto_import) ### Checks for compiler characteristics AC_C_CONST AC_C_BIGENDIAN AC_C_INLINE AC_C___ATTRIBUTE__ AC_PROG_CC_STDC AM_PROG_CC_C_O EFL_EIO_BUILD="" case "$host_os" in mingw*) EFL_EIO_BUILD="-DEFL_EIO_BUILD" ;; esac AC_SUBST(EFL_EIO_BUILD) ### Checks for library functions AC_CHECK_FUNCS([fchmod chown getpwnam getgrnam]) have_splice="no" AC_TRY_LINK( [ #if defined(HAVE_UNISTD_H) # include #endif #include ], [long ret = splice(0,0,1,0,400,0);], [have_splice="yes"], [have_splice="no"]) AC_MSG_CHECKING([whether to use splice for file copy]) AC_MSG_RESULT([${have_splice}]) if test "x${have_splice}" = "xyes" ; then AC_DEFINE([EFL_HAVE_SPLICE], [1], [Define to mention that splice syscall is supported]) fi AC_OUTPUT([ eio.pc Makefile doc/Makefile doc/eio.dox src/Makefile src/lib/Makefile ]) echo echo echo "------------------------------------------------------------------------" echo "$PACKAGE_NAME $PACKAGE_VERSION" echo "------------------------------------------------------------------------" echo echo echo echo "Configuration Options Summary:" echo echo " Thread Support.......: ${have_threads}" echo echo " Documentation........: ${build_doc}" echo echo "Compilation............: make (or gmake)" echo " CPPFLAGS.............: $CPPFLAGS" echo " CFLAGS...............: $CFLAGS" echo " LDFLAGS..............: $LDFLAGS" echo echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" echo " prefix...............: $prefix" echo