Commit 8a35adc6 authored by Patricia Santana Cruz's avatar Patricia Santana Cruz Committed by David King

Check nautilus-sendto dependency in configure

Check whether nautilus-sendto is installed in the configure script. This
is only required in order to use the sharing functionality, so a warning
is presented if nautilus-sendto is not found.

Fixes bug 668072.
parent 8b6f83f0
......@@ -145,6 +145,24 @@ AS_IF([test "x$GST_INSPECT" = "xnotfound"],
AC_MSG_WARN([$gst_runtime_plugin was not found. It needs to be installed before Cheese is run])])
# Check for nautilus-sendto runtime dependency.
NAUTILUS_SENDTO_DEP_MSG="This is a runtime dependency just needed for using the sharing functionality in Cheese."
AC_PATH_PROGS([NAUTILUS_SENDTO], [nautilus-sendto], [notfound])
AS_IF([test "x$NAUTILUS_SENDTO" = "xnotfound"],
[AC_MSG_WARN([Unable to find nautilus-sendto >= $NAUTILUS_SENDTO_REQUIRED in the path. $NAUTILUS_SENDTO_DEP_MSG])],
[NAUTILUS_SENDTO_SYSTEM=`nautilus-sendto --version 2>/dev/null | $SED 's/nautilus-sendto //'`
AS_IF([echo $NAUTILUS_SENDTO_SYSTEM | $GREP 'version' >/dev/null],
[AC_MSG_WARN([Unable to check the version of nautilus-sendto, it is \
probably too old. At least $NAUTILUS_SENDTO_REQUIRED is required. \
[AC_MSG_WARN([Unable to find nautilus-sendto >= \
$NAUTILUS_SENDTO_REQUIRED in the path. The current installed version is \
# Check for GLib testing utilities.
AC_PATH_PROG([GTESTER], [gtester], [notfound])
AC_PATH_PROG([GTESTER_REPORT], [gtester-report], [notfound])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment