summaryrefslogtreecommitdiff
path: root/legacy/eeze/configure.ac
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-11-18 03:13:31 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-11-18 03:13:31 +0000
commitec9e6085ad3a5ce9b71c1863d3a53e92f6dd13d6 (patch)
treeafc58ae02ed1e845db8f907783bc50e34db5418c /legacy/eeze/configure.ac
parent8c34d7abf034b726d920c1d78ea9afc3ce4087c2 (diff)
add functions for runtime checking of disk capabilities for embedded devices
SVN revision: 65358
Diffstat (limited to 'legacy/eeze/configure.ac')
-rw-r--r--legacy/eeze/configure.ac24
1 files changed, 18 insertions, 6 deletions
diff --git a/legacy/eeze/configure.ac b/legacy/eeze/configure.ac
index de1c2cffa2..477d0c2609 100644
--- a/legacy/eeze/configure.ac
+++ b/legacy/eeze/configure.ac
@@ -116,20 +116,32 @@ if test "x$eeze_mount" = "xyes";then
116 PKG_CHECK_MODULES([ECORE_CON], [ecore-con >= 1.1.0]) 116 PKG_CHECK_MODULES([ECORE_CON], [ecore-con >= 1.1.0])
117 117
118 if test "x$with_mount" = "xdetect";then 118 if test "x$with_mount" = "xdetect";then
119 AC_PATH_PROG([with_mount], [mount], [no]) 119 AC_PATH_PROG([with_mount], [mount], [])
120 test "x$with_mount" = "xno" && AC_MSG_ERROR([mount binary could not be detected]) 120 fi
121 if test -z "$with_mount" ; then
122 AC_DEFINE_UNQUOTED([MOUNTABLE], [0], [whether mount is available])
123 else
124 AC_DEFINE_UNQUOTED([MOUNTABLE], [1], [whether mount is available])
121 fi 125 fi
122 AC_DEFINE_UNQUOTED([EEZE_MOUNT_BIN], ["$with_mount"], [mount bin to use]) 126 AC_DEFINE_UNQUOTED([EEZE_MOUNT_BIN], ["$with_mount"], [mount bin to use])
123 127
124 if test "x$with_umount" = "xdetect";then 128 if test "x$with_umount" = "xdetect";then
125 AC_PATH_PROG([with_umount], [umount], [no]) 129 AC_PATH_PROG([with_umount], [umount], [])
126 test "x$with_umount" = "xno" && AC_MSG_ERROR([umount binary could not be detected]) 130 fi
131 if test -z "$with_umount" ; then
132 AC_DEFINE_UNQUOTED([UNMOUNTABLE], [0], [whether umount is available])
133 else
134 AC_DEFINE_UNQUOTED([UNMOUNTABLE], [1], [whether umount is available])
127 fi 135 fi
128 AC_DEFINE_UNQUOTED([EEZE_UNMOUNT_BIN], ["$with_umount"], [umount bin to use]) 136 AC_DEFINE_UNQUOTED([EEZE_UNMOUNT_BIN], ["$with_umount"], [umount bin to use])
129 137
130 if test "x$with_eject" = "xdetect";then 138 if test "x$with_eject" = "xdetect";then
131 AC_PATH_PROG([with_eject], [eject], [no]) 139 AC_PATH_PROG([with_eject], [eject], [])
132 test "x$with_eject" = "xno" && AC_MSG_ERROR([eject binary could not be detected]) 140 fi
141 if test -z "$with_eject" ; then
142 AC_DEFINE_UNQUOTED([EJECTABLE], [0], [whether eject is available])
143 else
144 AC_DEFINE_UNQUOTED([EJECTABLE], [1], [whether eject is available])
133 fi 145 fi
134 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])
135fi 147fi