diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | m4/video_out.m4 | 10 | ||||
-rw-r--r-- | src/video_out/video_out_caca.c | 2 |
3 files changed, 12 insertions, 1 deletions
@@ -17,6 +17,7 @@ xine-lib (1.2.?) ????-??-?? * Build optimization fixes (aliasing). * AVformat demux build fix. * More safety on memory allocation failure. + * Fix detection of and compilation with libcaca 0.99 beta 19. xine-lib (1.2.5) 2014-04-08 * Update german translation. diff --git a/m4/video_out.m4 b/m4/video_out.m4 index e8ff1c45d..734ffa2d9 100644 --- a/m4/video_out.m4 +++ b/m4/video_out.m4 @@ -77,12 +77,20 @@ AC_DEFUN([XINE_VIDEO_OUT_PLUGINS], [ dnl Color AsCii Art XINE_ARG_WITH([caca], [enable support for CACA]) if test x"$with_caca" != x"no"; then - PKG_CHECK_MODULES([CACA], [caca >= 0.99beta14 cucul >= 0.99beta14], [have_caca="yes"], [have_caca="no"]) + have_cucul=yes + PKG_CHECK_MODULES([CACA], [caca >= 0.99beta19], + [have_caca="yes" + have_cucul="no"], + [PKG_CHECK_MODULES([CACA], [caca >= 0.99beta14 cucul >= 0.99beta14], [have_caca="yes"], [have_caca="no"])]) if test x"$hard_with_caca" = x"yes" && test x"$have_caca" != x"yes"; then AC_MSG_ERROR([CACA support requested, but libcaca 0.99 not found]) fi fi AM_CONDITIONAL([ENABLE_CACA], [test x"$have_caca" = x"yes"]) + if test x"$have_caca$have_cucul" = x"yesyes"; then + HAVE_CUCUL=1 + AC_SUBST([HAVE_CUCUL]) + fi dnl dha (Linux only) diff --git a/src/video_out/video_out_caca.c b/src/video_out/video_out_caca.c index e402db42b..06c57515e 100644 --- a/src/video_out/video_out_caca.c +++ b/src/video_out/video_out_caca.c @@ -34,7 +34,9 @@ #include <sys/stat.h> #include <sys/mman.h> #include <sys/time.h> +#ifdef HAVE_CUCUL #include <cucul.h> +#endif #include <caca.h> #ifdef HAVE_FFMPEG_AVUTIL_H |