Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 297326 | Differences between
and this patch

Collapse All | Expand All

(-)iulib-0.4.orig/configure.ac (-9 / +21 lines)
Lines 54-70 AM_CONDITIONAL([have_sdl], [test "$nosdl Link Here
54
AC_LANG(C++)
54
AC_LANG(C++)
55
55
56
# --- vidio (optional video in-/output) ---
56
# --- vidio (optional video in-/output) ---
57
AC_SUBST(novidio, 0)
57
AC_ARG_WITH(vidio,[	--without-vidio			disable vidio],
58
AC_CHECK_HEADER(ffmpeg/avcodec.h,,AC_SUBST(novidio, 1))
58
    [ac_cv_use_vidio=$withval], [ac_cv_use_vidio=yes])
59
AC_CHECK_HEADER(ffmpeg/avformat.h,,AC_SUBST(novidio, 1))
59
	
60
AC_TRY_COMPILE([#include <ffmpeg/avio.h>
60
if test x$ac_cv_use_vidio != xno; then
61
                #include <ffmpeg/avformat.h>],
61
	AC_CHECK_HEADER(libavcodec/avcodec.h,,AC_SUBST(novidio, 1))
62
               [AVFormatContext fc; url_fclose(fc.pb);],
62
	AC_CHECK_HEADER(libavformat/avformat.h,,AC_SUBST(novidio, 1))
63
               [], [AC_DEFINE(HAVE_OLD_AVFORMAT)])
63
	AC_TRY_COMPILE([#include <libavformat/avio.h>
64
					#include <libavformat/avformat.h>],
65
				   [AVFormatContext fc; url_fclose(fc.pb);],
66
				   [], [AC_DEFINE(HAVE_OLD_AVFORMAT)])
67
else
68
	AC_SUBST(novidio, 1)
69
fi
64
AM_CONDITIONAL([have_vidio], [test "$novidio" != 1])
70
AM_CONDITIONAL([have_vidio], [test "$novidio" != 1])
65
71
66
AC_SUBST(nov4l2, 0)
72
AC_ARG_WITH(v4l2,[	--without-v4l2			disable video4linux2 support],
67
AC_CHECK_HEADER(linux/videodev2.h,,AC_SUBST(nov4l2, 1))
73
    [ac_cv_use_v4l2=$withval], [ac_cv_use_v4l2=yes])
74
75
if test x$ac_cv_use_v4l2 != xno; then
76
	AC_CHECK_HEADER(linux/videodev2.h,,AC_SUBST(nov4l2, 1))
77
else
78
	AC_SUBST(nov4l2, 0)
79
fi
68
AM_CONDITIONAL([have_v4l2], [test "$nov4l2" != 1])
80
AM_CONDITIONAL([have_v4l2], [test "$nov4l2" != 1])
69
81
70
AC_TYPE_INT64_T
82
AC_TYPE_INT64_T

Return to bug 297326