From 0192ffc2aef33b675179dfac06a97c014eaab30c Mon Sep 17 00:00:00 2001 From: Jean-Paul Saman Date: Sun, 8 Feb 2004 21:00:19 +0000 Subject: [PATCH] Fail ./configure when ffmpeg/avcodec.h or postproc/postproc.h are not found and --disable-ffmpeg is not used. --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index cd38c03a12..68f436e97b 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ dnl Autoconf settings for vlc -dnl $Id: configure.ac,v 1.171 2004/02/08 20:19:03 jpsaman Exp $ +dnl $Id: configure.ac,v 1.172 2004/02/08 21:00:19 jpsaman Exp $ AC_INIT(vlc,0.7.1-cvs) @@ -1803,7 +1803,8 @@ then if test "${with_ffmpeg_tree}" = "no" -o -z "${with_ffmpeg_tree}"; then CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_ffmpeg}" LDFLAGS="${LDFLAGS_save} ${LDFLAGS_ffmpeg}" - AC_CHECK_HEADERS(ffmpeg/avcodec.h postproc/postprocess.h) + AC_CHECK_HEADERS(ffmpeg/avcodec.h, [], [AC_MSG_ERROR([Missing header file ffmpeg/avcodec.h.])] ) + AC_CHECK_HEADERS(postproc/postprocess.h, [], [AC_MSG_ERROR([Missing header file postproc/postprocess.h.])] ) AC_CHECK_LIB(avcodec, avcodec_init, [ AX_ADD_BUILTINS([ffmpeg stream_out_transcode]) AX_ADD_LDFLAGS([ffmpeg],[-lavcodec]) -- 2.39.2