summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-09-19 17:44:54 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-09-19 17:44:54 +0200
commitcddfe69635bcb66bc254d20f4973eeabb4061b7e (patch)
tree61ccc84720962b914c71d7d4816da256ef6d8598
parent8ea0da109c1e8134b123f618b5e7df5274183e87 (diff)
YUYV -> JPEG conversion (untested).
-rw-r--r--configure.ac6
-rw-r--r--src/Makefile.am2
2 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 6e1124a..f413a2f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -50,6 +50,12 @@ fi
#dnl ======================
#PKG_CHECK_MODULES(AO, ao >= 0.8.8)
+dnl ======================
+dnl Check for Jpeg library
+dnl ======================
+AC_CHECK_HEADER(jpeglib.h, , AC_MSG_ERROR([*** libJpeg not found!]))
+AC_CHECK_LIB(jpeg, jpeg_start_compress, , AC_MSG_ERROR([*** libJpeg not found!]))
+
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(CXXFLAGS)
diff --git a/src/Makefile.am b/src/Makefile.am
index 7f62c50..197647c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS = simplertp
-simplertp_LDADD = $(QT_LIBS) $(AO_LIBS) $(V4LC_LIBS) \
+simplertp_LDADD = $(QT_LIBS) $(AO_LIBS) $(V4LC_LIBS) -ljpeg \
$(shell ../tools/MocList o ) qrc_simplertp.o
simplertp_CXXFLAGS = $(QT_CFLAGS) $(AO_CFLAGS) $(V4LC_CFLAGS)