changeset 26527:f630747a813d

Abort build if we use --enable-vv, and vv-dependencies are not met.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 05 Apr 2009 20:06:11 +0000
parents 8e594c4cdae4
children 23b0a0723936 5391094529c6
files configure.ac
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Sun Apr 05 16:54:09 2009 +0000
+++ b/configure.ac	Sun Apr 05 20:06:11 2009 +0000
@@ -788,12 +788,19 @@
 dnl #######################################################################
 AC_ARG_ENABLE(vv,
 	[AC_HELP_STRING([--disable-vv], [compile without voice and video support])],
-	enable_vv="$enableval", enable_vv="yes")
+	[enable_vv="$enableval" force_vv=$enableval], [enable_vv="yes" enable_vv=no])
 if test "x$enable_vv" != "xno"; then
 	if test "x$enable_farsight" != "xno" -a "x$enable_gstprops" != "xno"; then
 		AC_DEFINE(USE_VV, 1, [Use voice and video])
 	else
 		enable_vv="no"
+		if test "x$force_vv" = "xyes"; then
+			AC_MSG_ERROR([
+
+Dependencies for voice/video were not met. Install the necessary gstreamer and farsight packages first.
+
+			])
+		fi
 	fi
 fi