diff options
author | phintuka <phintuka> | 2008-11-11 11:00:24 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2008-11-11 11:00:24 +0000 |
commit | 79e05e57ba443bae1300423ff8e6c1d251b47579 (patch) | |
tree | efcdbfeda733b95524f411cc234ceb393104a117 | |
parent | b8753dfae06c247eb71d191c2dc8b713cbd96656 (diff) | |
download | xineliboutput-79e05e57ba443bae1300423ff8e6c1d251b47579.tar.gz xineliboutput-79e05e57ba443bae1300423ff8e6c1d251b47579.tar.bz2 |
Refuse to build against xine-lib 1.2 if libavutil was not found
-rw-r--r-- | xine_input_vdr.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/xine_input_vdr.c b/xine_input_vdr.c index 0a1134a0..7fd0d0ad 100644 --- a/xine_input_vdr.c +++ b/xine_input_vdr.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_input_vdr.c,v 1.190 2008-11-11 10:16:05 phintuka Exp $ + * $Id: xine_input_vdr.c,v 1.191 2008-11-11 11:00:24 phintuka Exp $ * */ @@ -48,13 +48,19 @@ #include <xine/buffer.h> #include <xine/post.h> -#if XINE_VERSION_CODE >= 10190 -# include <libavutil/mem.h> -#endif #ifndef XINE_VERSION_CODE # error XINE_VERSION_CODE undefined ! #endif +#if XINE_VERSION_CODE >= 10190 +# include "features.h" +# ifdef HAVE_LIBAVUTIL +# include <libavutil/mem.h> +# else +# error plugin was configured without libavutil. It can't be compiled against xine-lib 1.2 ! +# endif +#endif + #include "xine_input_vdr.h" #include "xine_input_vdr_net.h" #include "xine_osd_command.h" |