configure detection for eeze_disk
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 21 Oct 2010 08:59:41 +0000 (08:59 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 21 Oct 2010 08:59:41 +0000 (08:59 +0000)
SVN revision: 53711

configure.ac

index cdc2ca4..7e6056a 100644 (file)
@@ -297,6 +297,18 @@ if test "x$e_cv_want_device_udev" = "xyes";then
     [
       device_backend=eeze
       AC_DEFINE_UNQUOTED([HAVE_EEZE],[1],[enable udev support])
+      AC_CHECK_LIB([eeze], [eeze_disk_function],
+        [
+           AM_CONDITIONAL([HAVE_EEZE_MOUNT], [true])
+           AC_DEFINE_UNQUOTED([HAVE_EEZE_MOUNT], [1], [enable eeze mounting])
+           AC_MSG_NOTICE([eeze mounting enabled])
+        ],
+        [
+           AM_CONDITIONAL([HAVE_EEZE_MOUNT], [false]),
+           AC_MSG_NOTICE([eeze mounting disabled])
+        ]
+      )
+           
     ],[device_backend=ehal])
 else
   device_backend=ehal
@@ -305,6 +317,7 @@ AC_MSG_RESULT($device_backend)
 
 AM_CONDITIONAL([HAVE_EEZE], [test "x${device_backend}" = "xeeze"])
 
+
 # doxygen program for documentation building
 
 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])