lib/libv4lconvert/libv4lconvert.pc
lib/libv4l1/libv4l1.pc
lib/libv4l2/libv4l2.pc
+ lib/libdvbv5/libdvbv5.pc
])
AM_INIT_AUTOMAKE([1.9 no-dist-gzip dist-bzip2 -Wno-portability]) # 1.10 is needed for target_LIBTOOLFLAGS
# options
+AC_ARG_ENABLE(libdvbv5,
+ [ --disable-libdvbv5 disable dynamic libdvbv5 compilation],
+ [case "${enableval}" in
+ yes | no ) with_liblibdvbv5="${enableval}" ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --disable-libdvbv5) ;;
+ esac],
+ [with_libdvbv5="yes"]
+)
+
AC_ARG_ENABLE(libv4l,
[ --disable-libv4l disable dynamic libv4l compilation],
[case "${enableval}" in
[with_v4lutils="yes"]
)
+AM_CONDITIONAL([WITH_LIBDVBV5], [test x$with_libdvbv5 = xyes])
AM_CONDITIONAL([WITH_LIBV4L], [test x$with_libv4l = xyes])
AM_CONDITIONAL([WITH_V4LUTILS], [test x$with_v4lutils = xyes])
# append -static to libtool compile and link command to enforce static libs
+AS_IF([test x$with_libdvbv5 != xyes], [AC_SUBST([ENFORCE_LIBDVBV5_STATIC], ["-static"])])
AS_IF([test x$with_libv4l != xyes], [AC_SUBST([ENFORCE_LIBV4L_STATIC], ["-static"])])
# misc
+if WITH_LIBDVBV5
lib_LTLIBRARIES = libdvbv5.la
+include_HEADERS = ../include/dvb-demux.h ../include/dvb-v5-std.h \
+ ../include/dvb-file.h ../include/dvb-frontend.h ../include/dvb-fe.h \
+ ../include/libsat.h ../include/libscan.h
+pkgconfig_DATA = libdvbv5.pc
+else
+noinst_LTLIBRARIES = libdvbv5.la
+endif
libdvbv5_la_SOURCES = \
dvb-demux.c ../include/dvb-demux.h \
libsat.c ../include/libsat.h \
libscan.c ../include/libscan.h \
parse_string.c parse_string.h
-#libdvbv5_la_CPPFLAGS = -fvisibility=hidden
-#libdvbv5_la_LDFLAGS = -version-info 0 -lpthread
+libdvbv5_la_CPPFLAGS = $(ENFORCE_LIBDVBV5_STATIC)
+libdvbv5_la_LDFLAGS = -version-info 0 $(ENFORCE_LIBDVBV5_STATIC)
EXTRA_DIST = README gen_dvb_structs.pl
--- /dev/null
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+includedir=@includedir@
+libdir=@libdir@
+
+Name: libdvbv5
+Description: DVBv5 utility library
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -ldvbv5
+Cflags: -I${includedir}