Skip to content

Commit d4b0627

Browse files
dgsiegelhodefoting
authored andcommitted
pinpoint: enable ClutterGst on configure time
on configure time, it will be automatically checked if ClutterGst >= 1.3 is available. If so, media files can be included in your presentations using the full power of GStreamer
1 parent d42a449 commit d4b0627

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

pinpoint/configure.ac

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,27 @@ AS_IF([test "x$have_pdf" = "xyes"], [
3535
AC_DEFINE([HAVE_PDF], [1], [Wether pipoint will generate PDFs])])
3636
AM_CONDITIONAL([HAVE_PDF], [test "x$have_pdf" = "xyes"])
3737

38+
# ClutterGst support
39+
AC_ARG_ENABLE([cluttergst],
40+
[AS_HELP_STRING([--enable-cluttergst=@<:no/auto/yes:>@],
41+
[Show media files using ClutterGst])],,
42+
[enable_cluttergst=auto])
43+
AC_MSG_CHECKING([for the stuff needed to show media files])
44+
AS_CASE([$enable_cluttergst],
45+
[no], [have_cluttergst="no (disabled)"],
46+
[yes], [PKG_CHECK_EXISTS([clutter-gst-1.0 >= 1.3],
47+
have_cluttergst="yes",
48+
AC_MSG_ERROR([Oh no!]))],
49+
[auto], [PKG_CHECK_EXISTS([clutter-gst-1.0 >= 1.3],
50+
have_cluttergst="yes",
51+
have_cluttergst="no")],
52+
AC_MSG_ERROR([invalid argumented passed to --enable-cluttergst]))
53+
AC_MSG_RESULT([$have_cluttergst])
54+
AS_IF([test "x$have_cluttergst" = "xyes"], [
55+
PINPOINT_DEPS="$PINPOINT_DEPS clutter-gst-1.0 >= 1.3"
56+
AC_DEFINE([USE_CLUTTER_GST], [1], [Whether pinpoint will display media files using ClutterGst])])
57+
AM_CONDITIONAL([USE_CLUTTER_GST], [test "x$have_cluttergst" = "xyes"])
58+
3859
# SVG output support in the PDFs
3960
AC_ARG_ENABLE([rsvg],
4061
[AS_HELP_STRING([--enable-rsvg=@<:no/auto/yes:>@],
@@ -97,6 +118,7 @@ echo " • Slides' background"
97118
echo " Images: yes (built-in)"
98119
echo " SVG: ${use_dax}"
99120
echo " SVG in PDF: ${have_rsvg}"
121+
echo " ClutterGst: ${have_cluttergst}"
100122

101123
echo ""
102124
echo " • Renderers"

0 commit comments

Comments
 (0)