summaryrefslogtreecommitdiff
path: root/legacy/eeze/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/eeze/configure.ac')
-rw-r--r--legacy/eeze/configure.ac26
1 files changed, 22 insertions, 4 deletions
diff --git a/legacy/eeze/configure.ac b/legacy/eeze/configure.ac
index 981921e485..a382b451bf 100644
--- a/legacy/eeze/configure.ac
+++ b/legacy/eeze/configure.ac
@@ -146,12 +146,30 @@ if test "x$eeze_mount" = "xyes";then
146 AC_DEFINE_UNQUOTED([EEZE_EJECT_BIN], ["$with_eject"], [eject bin to use]) 146 AC_DEFINE_UNQUOTED([EEZE_EJECT_BIN], ["$with_eject"], [eject bin to use])
147fi 147fi
148 148
149if test -n "$mount_v";then 149want_mtab=
150 AM_CONDITIONAL([OLD_LIBMOUNT], [test "$(echo $mount_v | cut -d'.' -f2)" -lt 19]) 150AC_ARG_ENABLE([mtab],
151 AM_CONDITIONAL([NEW_LIBMOUNT], [test "$(echo $mount_v | cut -d'.' -f2)" -gt 19]) 151 [AC_HELP_STRING([--enable-mtab],
152else 152 [force use of mtab for mount info @<:@default=detect@:>@])],
153 [
154 if test "x${enableval}" = "xyes" ; then
155 want_mtab="yes"
156 else
157 want_mtab="no"
158 fi],
159 [want_mtab="auto"])
160
161
162if test "x${want_mtab}" = "xyes" ; then
153 AM_CONDITIONAL([OLD_LIBMOUNT], [false]) 163 AM_CONDITIONAL([OLD_LIBMOUNT], [false])
154 AM_CONDITIONAL([NEW_LIBMOUNT], [false]) 164 AM_CONDITIONAL([NEW_LIBMOUNT], [false])
165else
166 if test -n "$mount_v";then
167 AM_CONDITIONAL([OLD_LIBMOUNT], [test "$(echo $mount_v | cut -d'.' -f2)" -lt 19])
168 AM_CONDITIONAL([NEW_LIBMOUNT], [test "$(echo $mount_v | cut -d'.' -f2)" -gt 19])
169 else
170 AM_CONDITIONAL([OLD_LIBMOUNT], [false])
171 AM_CONDITIONAL([NEW_LIBMOUNT], [false])
172 fi
155fi 173fi
156AM_COND_IF([OLD_LIBMOUNT], [ 174AM_COND_IF([OLD_LIBMOUNT], [
157 AC_DEFINE_UNQUOTED([OLD_LIBMOUNT], [1], [using first version of libmount]) 175 AC_DEFINE_UNQUOTED([OLD_LIBMOUNT], [1], [using first version of libmount])