mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
configure: compile cgroup example conditionally
Only compile the cgroup example when we have libcgroup
This commit is contained in:
parent
5c6bb3052f
commit
2fdc6ef88a
2 changed files with 10 additions and 2 deletions
|
@ -232,6 +232,7 @@ AC_SUBST([GST_OBJ_LIBS])
|
||||||
PKG_CHECK_MODULES(LIBCGROUP, libcgroup >= 0.26, HAVE_LIBCGROUP="yes", HAVE_LIBCGROUP="no")
|
PKG_CHECK_MODULES(LIBCGROUP, libcgroup >= 0.26, HAVE_LIBCGROUP="yes", HAVE_LIBCGROUP="no")
|
||||||
AC_SUBST(LIBCGROUP_CFLAGS)
|
AC_SUBST(LIBCGROUP_CFLAGS)
|
||||||
AC_SUBST(LIBCGROUP_LIBS)
|
AC_SUBST(LIBCGROUP_LIBS)
|
||||||
|
AM_CONDITIONAL(HAVE_LIBCGROUP, test "x$HAVE_LIBCGROUP" = "xyes")
|
||||||
|
|
||||||
dnl this really should only contain flags, not libs - they get added before
|
dnl this really should only contain flags, not libs - they get added before
|
||||||
dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
|
dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
|
||||||
|
@ -265,6 +266,7 @@ Configuration
|
||||||
Source code location : ${srcdir}
|
Source code location : ${srcdir}
|
||||||
Prefix : ${prefix}
|
Prefix : ${prefix}
|
||||||
Compiler : ${CC}
|
Compiler : ${CC}
|
||||||
|
CGroups example : ${HAVE_LIBCGROUP}
|
||||||
|
|
||||||
gst-rtsp-server configured. Type 'make' to build.
|
gst-rtsp-server configured. Type 'make' to build.
|
||||||
"
|
"
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
noinst_PROGRAMS = test-video test-ogg test-mp4 test-readme \
|
noinst_PROGRAMS = test-video test-ogg test-mp4 test-readme \
|
||||||
test-launch test-sdp test-uri test-auth \
|
test-launch test-sdp test-uri test-auth \
|
||||||
test-multicast test-multicast2 test-cgroups
|
test-multicast test-multicast2
|
||||||
|
|
||||||
#INCLUDES = -I$(top_srcdir) -I$(srcdir)
|
#INCLUDES = -I$(top_srcdir) -I$(srcdir)
|
||||||
|
|
||||||
AM_CFLAGS = $(GST_OBJ_CFLAGS)
|
AM_CFLAGS = $(GST_OBJ_CFLAGS)
|
||||||
AM_LDFLAGS = $(GST_OBJ_LIBS) $(GIO_LIBS) $(LIBCGROUP_LIBS)
|
AM_LDFLAGS = $(GST_OBJ_LIBS) $(GIO_LIBS)
|
||||||
|
|
||||||
|
if HAVE_LIBCGROUP
|
||||||
|
noinst_PROGRAMS += test-cgroups
|
||||||
|
AM_LDFLAGS += $(LIBCGROUP_LIBS)
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue