summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@samsung.com>2013-02-19 13:33:41 +0900
committerCedric BAIL <cedric.bail@samsung.com>2013-02-21 17:19:35 +0900
commitfe21e281a73bbd94336215b0f20896ff258c686d (patch)
treecad3dca92599ada7a69011b2ba576330020accd0 /configure.ac
parent83190eb0c2bcf9fdff52992164789d4daed4ee25 (diff)
eeze: add back support for older system.
Support for older system that don't come with libmount or have an older libmount. This is a backport from Eeze 1.7 tree. There is no code change there.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac30
1 files changed, 29 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 31308a2b36..29301b88c9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3113,7 +3113,35 @@ EFL_INTERNAL_DEPEND_PKG([EEZE], [ecore-con])
3113EFL_INTERNAL_DEPEND_PKG([EEZE], [eet]) 3113EFL_INTERNAL_DEPEND_PKG([EEZE], [eet])
3114 3114
3115EFL_DEPEND_PKG([EEZE], [UDEV], [libudev >= 148]) 3115EFL_DEPEND_PKG([EEZE], [UDEV], [libudev >= 148])
3116EFL_DEPEND_PKG([EEZE], [EEZE_MOUNT], [mount >= 2.20.0]) 3116
3117AC_ARG_ENABLE([libmount],
3118 [AC_HELP_STRING([--disable-libmount],
3119 [disable libmount support. @<:@default=enabled@:>@])],
3120 [
3121 if test "x${enableval}" = "xyes" ; then
3122 want_libmount="yes"
3123 else
3124 want_libmount="no"
3125 fi
3126 ],
3127 [want_libmount="yes"])
3128
3129EFL_OPTIONAL_DEPEND_PKG([EEZE], [${want_libmount}],
3130 [EEZE_MOUNT], [mount >= 2.18.0])
3131EFL_ADD_FEATURE([EEZE], [libmount], [${have_eeze_mount}])
3132
3133PKG_CHECK_EXISTS([mount > 2.19.0],
3134 [have_libmount_new="yes"],
3135 [have_libmount_new="no"])
3136AC_MSG_CHECKING([Use new libmount API (older that 2.19.0)])
3137AC_MSG_RESULT([${have_libmount_new}])
3138
3139AM_CONDITIONAL([EEZE_LIBMOUNT_NEW], [test "x${have_libmount_new}" = "xyes"])
3140if test "x${have_libmount_new}" = "xno"; then
3141 AC_DEFINE_UNQUOTED([OLD_LIBMOUNT], [1], [using first version of libmount])
3142fi
3143
3144AM_CONDITIONAL([EEZE_NOLIBMOUNT], [test "x${have_eeze_mount}" = "xno"])
3117 3145
3118## modules 3146## modules
3119if test "${want_tizen}" = "yes"; then 3147if test "${want_tizen}" = "yes"; then