summaryrefslogtreecommitdiff
path: root/legacy/eina/configure.ac
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2011-12-05 13:58:09 +0000
committerCedric BAIL <cedric.bail@free.fr>2011-12-05 13:58:09 +0000
commita6d8ebc55d0a7ac7038b9bb45424f60c233d136d (patch)
treecf1f012533fd7c6fc4f0de549d4bf495cf320d3f /legacy/eina/configure.ac
parent1561954c05fb6959d5e041deb9b014baa492c323 (diff)
eina: disable log if fnmatch is not present.
NOTE: would be better to have an explicit --disable option I think. SVN revision: 65901
Diffstat (limited to 'legacy/eina/configure.ac')
-rw-r--r--legacy/eina/configure.ac10
1 files changed, 9 insertions, 1 deletions
diff --git a/legacy/eina/configure.ac b/legacy/eina/configure.ac
index 126f1d0235..580774e684 100644
--- a/legacy/eina/configure.ac
+++ b/legacy/eina/configure.ac
@@ -530,7 +530,14 @@ case "$host_os" in
530esac 530esac
531AC_SUBST([dlopen_libs]) 531AC_SUBST([dlopen_libs])
532 532
533EFL_CHECK_FNMATCH([], [AC_MSG_ERROR([Cannot find fnmatch()])]) 533enable_log="yes"
534EFL_CHECK_FNMATCH([enable_log="yes"], [enable_log="no"])
535
536if test "x${enable_log}" = "xyes"; then
537 EINA_CONFIGURE_ENABLE_LOG="#define EINA_ENABLE_LOG"
538 AC_DEFINE([HAVE_LOG], [1], [Define to 1 if we log support is on])
539fi
540AC_SUBST([EINA_CONFIGURE_ENABLE_LOG])
534 541
535AC_CHECK_HEADERS([mcheck.h], [AC_DEFINE([HAVE_MCHECK], [1], [Have mcheck.h])]) 542AC_CHECK_HEADERS([mcheck.h], [AC_DEFINE([HAVE_MCHECK], [1], [Have mcheck.h])])
536AC_CHECK_FUNCS([mtrace], [AC_DEFINE([HAVE_MTRACE], [1], [Have mtrace])]) 543AC_CHECK_FUNCS([mtrace], [AC_DEFINE([HAVE_MTRACE], [1], [Have mtrace])])
@@ -782,6 +789,7 @@ echo " Maximum log level....: ${with_max_log_level}"
782echo " Report string usage..: ${have_stringshare_usage}" 789echo " Report string usage..: ${have_stringshare_usage}"
783echo " Valgrind support.....: ${have_valgrind}" 790echo " Valgrind support.....: ${have_valgrind}"
784echo " Default mempool......: ${have_default_mempool}" 791echo " Default mempool......: ${have_default_mempool}"
792echo " Log support..........: ${enable_log}"
785echo " Thread Support.......: ${have_threads}" 793echo " Thread Support.......: ${have_threads}"
786if test "${have_threads}" = "POSIX" ; then 794if test "${have_threads}" = "POSIX" ; then
787echo " spinlock...........: ${have_posix_threads_spinlock}" 795echo " spinlock...........: ${have_posix_threads_spinlock}"