From: cedric Date: Thu, 8 Dec 2011 12:08:53 +0000 (+0000) Subject: eina: make it possible to disable Eina_Log infrastructure. X-Git-Tag: submit/2.0alpha-wayland/20121127.222009~426 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5081ab721d4b40563e23487492c1260fa392d72c;p=profile%2Fivi%2Feina.git eina: make it possible to disable Eina_Log infrastructure. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@66025 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/configure.ac b/configure.ac index d2897ab..7278937 100644 --- a/configure.ac +++ b/configure.ac @@ -522,8 +522,28 @@ case "$host_os" in esac AC_SUBST([dlopen_libs]) -enable_log="yes" -EFL_CHECK_FNMATCH([enable_log="yes"], [enable_log="no"]) +have_log="yes" +EFL_CHECK_FNMATCH([have_log="yes"], [have_log="no"]) + +want_log="yes" +AC_ARG_ENABLE([log], + [AC_HELP_STRING([--disable-log], [disable Eina_Log infrastructure completly @<:@default=enabled@:>@])], + [ + if test "x${enableval}" = "xyes" ; then + want_log="yes" + else + want_log="no" + fi + ], + [want_log="yes"]) + +enable_log="no" +if test "x${have_log}" = xyes -a "x${want_log}" = xyes; then + enable_log="yes" +fi + +AC_MSG_CHECKING([wether to build Eina_Log infrastructure]) +AC_MSG_RESULT([${enable_log}]) if test "x${enable_log}" = "xyes"; then EINA_CONFIGURE_ENABLE_LOG="#define EINA_ENABLE_LOG"