[vlc-commits] Configure: check protoc with AC_PATH_PROG

Jean-Baptiste Kempf git at videolan.org
Fri Oct 17 11:46:38 CEST 2014


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Oct 17 11:45:17 2014 +0200| [2a3089ad6cd1666406191a5d385677fbd2744e6d] | committer: Jean-Baptiste Kempf

Configure: check protoc with AC_PATH_PROG

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2a3089ad6cd1666406191a5d385677fbd2744e6d
---

 configure.ac |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index cc8d8f9..b8c8b79 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3741,9 +3741,10 @@ dnl
 dnl  Chromecast streaming support
 dnl
 m4_pushdef([protobuf_lite_version], 2.5.0)
+AC_ARG_VAR(PROTOC, [protobuf compiler])
+AC_PATH_PROGS(PROTOC, protoc, no )
 PKG_WITH_MODULES([CHROMECAST],[protobuf-lite >= protobuf_lite_version], [
-    AC_CHECK_PROGS(PROTOC, protoc)
-    AS_IF([test "${PROTOC}" = "protoc"], [
+    AS_IF([test "x${PROTOC}" != "xno"], [
         VLC_ADD_PLUGIN([stream_out_chromecast])
         VLC_ADD_CXXFLAGS([stream_out_chromecast],[${CHROMECAST_CFLAGS}] [-I./chromecast])
         VLC_ADD_LIBS([stream_out_chromecast],[${CHROMECAST_LIBS}])



More information about the vlc-commits mailing list