diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2003-12-03 12:49:29 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2003-12-03 12:49:29 +0000 |
commit | 256a0bfc359c4d14cbf10ec265a7aa01a3d5a9bd (patch) | |
tree | 4a90b8237f29509022a6753d06a639529f969f48 | |
parent | c897450994b93a7f0744989490fc1d43fdf9b302 (diff) |
fix X dependencies
Original commit message from CVS:
fix X dependencies
-rw-r--r-- | configure.ac | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 8563f09f..f3704eb0 100644 --- a/configure.ac +++ b/configure.ac @@ -419,11 +419,16 @@ dnl *** Video 4 Linux *** dnl for information about the header/define, see sys/v4l/gstv4lelement.h translit(dnm, m, l) AM_CONDITIONAL(USE_V4L, true) GST_CHECK_FEATURE(V4L, [Video 4 Linux], v4lsrc v4lmjpegsrc v4lmjpegsink, [ - AC_CHECK_DECL(VID_TYPE_MPEG_ENCODER, HAVE_V4L="yes", HAVE_V4L="no", [ + # first check X + HAVE_V4L="no" + if test "$HAVE_X" == "yes" + then + AC_CHECK_DECL(VID_TYPE_MPEG_ENCODER, HAVE_V4L="yes", HAVE_V4L="no", [ #include <sys/types.h> #define _LINUX_TIME_H #include <linux/videodev.h> - ]) + ]) + fi ]) dnl *** Video 4 Linux 2*** |