Enlightenment CVS committal Author : sebastid Project : e17 Module : libs/ecore
Dir : e17/libs/ecore Modified Files: configure.in Log Message: Inotify monitoring almost works now. Since inotify seems to be the future, I changed the interface of monitoring to be more like inotify. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/configure.in,v retrieving revision 1.78 retrieving revision 1.79 diff -u -3 -r1.78 -r1.79 --- configure.in 23 Mar 2005 11:49:47 -0000 1.78 +++ configure.in 30 Mar 2005 06:35:12 -0000 1.79 @@ -738,14 +738,16 @@ AM_CONDITIONAL(BUILD_ECORE_CONFIG, false) fi -AC_MSG_CHECKING(wheter ecore_file module is to be built) - have_ecore_file="no" ecore_file_libs="" +use_fam="no" +use_inotify="no" +use_poll="no" +AC_MSG_CHECKING(wheter ecore_file module is to be built) AC_ARG_ENABLE(ecore-file, [ --disable-ecore-file disable the ecore_file module], [ - if [ test "$enableval" = "yes" ]; then + if test "$enableval" = "yes"; then AC_MSG_RESULT(yes) have_ecore_file="yes" else @@ -757,13 +759,49 @@ ] ) +AC_MSG_CHECKING(wheter inotify is to be used for filemonitoring) +AC_ARG_ENABLE(inotify, +[ --disable-inotify disable inotify in the ecore_file module], [ + if test "$enableval" = "yes"; then + AC_MSG_RESULT(yes) + use_inotify="yes" + else + AC_MSG_RESULT(no) + fi +], [ + AC_MSG_RESULT(yes) + use_inotify="yes" +] +) + +if test "x$use_inotify" = "xyes"; then + AC_CHECK_HEADER(linux/inotify.h, + [ + AC_DEFINE(HAVE_INOTIFY, 1, [ File monitoring with Inotify ]) + use_inotify="yes" + ], [ + use_inotify="no" + ] + ) +fi + +#AC_MSG_CHECKING(wheter FAM is to be used for filemonitoring) +#AC_ARG_ENABLE(fam, +#[ --disable-fam disable 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(yes) +# use_fam="yes" +#] +#) + fam_libs="" -if [ test "x$have_ecore_file" = "xyes" ]; then - AM_CONDITIONAL(BUILD_ECORE_FILE, true) - ecore_file_libs="-lecore_file" - AC_DEFINE(HAVE_POLL, 1, [ File monitoring with polling ]) -# I'm to stupid to get fam working right :) -# PKG_CHECK_MODULES(FAM, gamin >= 0.0.23, +#if test "x$use_fam" = "xyes"; then # AC_CHECK_LIB(fam, FAMOpen, # [ # AC_DEFINE(HAVE_FAM, 1, [ File monitoring with FAM ]) @@ -773,6 +811,31 @@ # use_fam="no" # ] # ) +#fi + +AC_MSG_CHECKING(wheter polling is to be used for filemonitoring) +AC_ARG_ENABLE(poll, +[ --disable-poll disable poll in the ecore_file module], [ + if test "$enableval" = "yes"; then + AC_MSG_RESULT(yes) + use_poll="yes" + else + AC_MSG_RESULT(no) + fi +], [ + AC_MSG_RESULT(yes) + use_poll="yes" +] +) + +if test "x$use_poll" = "xyes"; then + AC_DEFINE(HAVE_POLL, 1, [ File monitoring with polling ]) +fi + +if test "x$have_ecore_file" = "xyes"; then + AM_CONDITIONAL(BUILD_ECORE_FILE, true) + ecore_file_libs="-lecore_file" + AC_DEFINE(HAVE_POLL, 1, [ File monitoring with polling ]) else AM_CONDITIONAL(BUILD_ECORE_FILE, false) fi @@ -884,7 +947,8 @@ echo " Ecore_Buffer............: $have_ecore_evas_buffer" echo " Ecore_Ipc...............: $have_ecore_ipc (OpenSSL: $use_openssl)" echo " Ecore_Config............: $have_ecore_config" -echo " Ecore_File..............: $have_ecore_file (FAM: $use_fam)" +#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)" echo echo "Now type 'make' ('gmake' on some systems) to compile $PACKAGE." echo ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs