Elementary : add an option to disable video support (enabled by default)
authorVincent Torri <vincent.torri@gmail.com>
Fri, 15 Jul 2011 06:06:03 +0000 (06:06 +0000)
committerVincent Torri <vincent.torri@gmail.com>
Fri, 15 Jul 2011 06:06:03 +0000 (06:06 +0000)
SVN revision: 61393

configure.ac

index 5b774b9..e3c60fa 100644 (file)
@@ -238,7 +238,14 @@ PKG_CHECK_MODULES([EIO],
 
 AM_CONDITIONAL([HAVE_EIO], [test "x${have_eio}" = "xyes"])
 
-PKG_CHECK_MODULES([EMOTION],
+have_emotion="no"
+want_elementary_emotion="yes"
+AC_ARG_ENABLE([emotion],
+   [AC_HELP_STRING([--disable-emotion], [disable emotion support. @<:@default=enabled@:>@])],
+   [want_elementary_emotion=$enableval], [])
+
+if test "x$want_elementary_emotion" != "xno"; then
+   PKG_CHECK_MODULES([EMOTION],
        [emotion],
        [
         have_emotion="yes"
@@ -246,6 +253,7 @@ PKG_CHECK_MODULES([EMOTION],
         requirement_elm="emotion ${requirement_elm}"
        ],
        [have_emotion="no"])
+fi
 
 AM_CONDITIONAL([HAVE_EMOTION], [test "x${have_emotion}" = "xyes"])