2 AC_INIT(extension, 1.0)
4 dnl versions of gstreamer and plugins-base
10 dnl fill in your package name and version here
11 dnl the fourth (nano) number should be 0 for a release, 1 for CVS,
12 dnl and 2... for a prerelease
14 dnl when going to/from release please set the nano correctly !
15 dnl releases only do Wall, cvs and prerelease does Werror too
16 AS_VERSION(gst-plugin, GST_PLUGIN_VERSION, 0, 10, 0, 1,
17 GST_PLUGIN_CVS="no", GST_PLUGIN_CVS="yes")
19 dnl AM_MAINTAINER_MODE provides the option to enable maintainer mode
22 #AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
25 #AC_CONFIG_MACRO_DIR([m4])
27 dnl make aclocal work in maintainer mode
28 dnl AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
30 dnl Add parameters for aclocal
31 AC_SUBST(ACLOCAL_AMFLAGS, "-I m4 -I common/m4")
33 AM_CONFIG_HEADER(config.h)
40 dnl decide on error flags
41 AS_COMPILER_FLAG(-Wall, GST_WALL="yes", GST_WALL="no")
43 if test "x$GST_WALL" = "xyes"; then
44 GST_ERROR="$GST_ERROR -Wall"
46 # if test "x$GST_PLUGIN_CVS" = "xyes"; then
47 # AS_COMPILER_FLAG(-Werror,GST_ERROR="$GST_ERROR -Werror",GST_ERROR="$GST_ERROR")
51 dnl Check for pkgconfig first
52 AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
54 dnl Give error and exit if we don't have pkgconfig
55 if test "x$HAVE_PKGCONFIG" = "xno"; then
56 AC_MSG_ERROR(you need to have pkgconfig installed !)
59 dnl Now we're ready to ask for gstreamer libs and cflags
60 dnl And we can also ask for the right version of gstreamer
61 AM_CONDITIONAL([IS_VODA_SDK], [test "x$DISTRO" = "xvodafone-sdk"])
62 AM_CONDITIONAL([ISPROTECTOR_VODA_SDK], [test "x$DISTRO" = "xvodafone-sdk" && test "x$MACHINE" = "xprotector"])
63 AM_CONDITIONAL([ISVOLANS_VODA_SDK], [test "x$DISTRO" = "xvodafone-sdk" && test "x$MACHINE" = "xvolans"])
64 AM_CONDITIONAL([ISPROTECTOR_TARGET], [test "x$ARCH" = "xarm" && test "x$MACHINE" = "xprotector"])
65 AM_CONDITIONAL([ISVOLANS_TARGET], [test "x$ARCH" = "xarm" && test "x$MACHINE" = "xvolans"])
67 PKG_CHECK_MODULES(GST, \
68 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED,
69 HAVE_GST=yes,HAVE_GST=no)
71 dnl Give error and exit if we don't have gstreamer
72 if test "x$HAVE_GST" = "xno"; then
73 AC_MSG_ERROR(you need gstreamer development packages installed !)
76 dnl append GST_ERROR cflags to GST_CFLAGS
77 GST_CFLAGS="$GST_CFLAGS $GST_ERROR"
79 dnl make GST_CFLAGS and GST_LIBS available
80 PKG_CHECK_MODULES(GST, gstreamer-0.10 >= 0.10)
84 dnl make GST_MAJORMINOR available in Makefile.am
85 AC_SUBST(GST_MAJORMINOR)
87 dnl If we need them, we can also use the base class libraries
88 PKG_CHECK_MODULES(GST_BASE, gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED,
89 HAVE_GST_BASE=yes, HAVE_GST_BASE=no)
91 dnl Give a warning if we don't have gstreamer libs
92 dnl you can turn this into an error if you need them
93 if test "x$HAVE_GST_BASE" = "xno"; then
94 AC_MSG_NOTICE(no GStreamer base class libraries found (gstreamer-base-$GST_MAJORMINOR))
97 dnl make _CFLAGS and _LIBS available
98 AC_SUBST(GST_BASE_CFLAGS)
99 AC_SUBST(GST_BASE_LIBS)
101 dnl If we need them, we can also use the gstreamer-plugins-base libraries
102 PKG_CHECK_MODULES(GSTPB_BASE,
103 gstreamer-plugins-base-$GST_MAJORMINOR >= $GSTPB_REQUIRED,
104 HAVE_GSTPB_BASE=yes, HAVE_GSTPB_BASE=no)
106 dnl Give a warning if we don't have gstreamer libs
107 dnl you can turn this into an error if you need them
108 if test "x$HAVE_GSTPB_BASE" = "xno"; then
109 AC_MSG_NOTICE(no GStreamer Plugins Base libraries found (gstreamer-plugins-base-$GST_MAJORMINOR))
112 dnl make _CFLAGS and _LIBS available
113 AC_SUBST(GSTPB_BASE_CFLAGS)
114 AC_SUBST(GSTPB_BASE_LIBS)
116 dnl If we need them, we can also use the gstreamer-controller libraries
117 PKG_CHECK_MODULES(GSTCTRL,
118 gstreamer-controller-$GST_MAJORMINOR >= $GSTPB_REQUIRED,
119 HAVE_GSTCTRL=yes, HAVE_GSTCTRL=no)
121 dnl Give a warning if we don't have gstreamer-controller
122 dnl you can turn this into an error if you need them
123 if test "x$HAVE_GSTCTRL" = "xno"; then
124 AC_MSG_NOTICE(no GStreamer Controller libraries found (gstreamer-controller-$GST_MAJORMINOR))
127 dnl make _CFLAGS and _LIBS available
128 AC_SUBST(GSTCTRL_CFLAGS)
129 AC_SUBST(GSTCTRL_LIBS)
131 dnl set the plugindir where plugins should be installed
132 if test "x${prefix}" = "x$HOME"; then
133 plugindir="$HOME/.gstreamer-$GST_MAJORMINOR/plugins"
135 plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
139 dnl set proper LDFLAGS for plugins
140 #GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).*'
141 GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\|FIR_\|arkamys_malloc\|arkamys_free\).*'
142 #GST_PLUGIN_LDFLAGS='-module -avoid-version'
143 AC_SUBST(GST_PLUGIN_LDFLAGS)
146 PKG_CHECK_MODULES(GST_AUDIO, gstreamer-audio-$GST_MAJORMINOR >= $GST_REQUIRED )
149 dnl make _CFLAGS and _LIBS available
150 AC_SUBST(GST_AUDIO_CFLAGS)
151 AC_SUBST(GST_AUDIO_LIBS)
153 PKG_CHECK_MODULES(GST_VIDEO, gstreamer-video-$GST_MAJORMINOR >= $GST_REQUIRED)
155 dnl make _CFLAGS and _LIBS available
156 AC_SUBST(GST_VIDEO_CFLAGS)
157 AC_SUBST(GST_VIDEO_LIBS)
159 PKG_CHECK_MODULES(GST_INTERFACES, gstreamer-interfaces-$GST_MAJORMINOR >= $GST_REQUIRED)
160 AC_SUBST(GST_INTERFACES_CFLAGS)
161 AC_SUBST(GST_INTERFACES_LIBS)
163 dnl use time analysis module
164 PKG_CHECK_MODULES(MMTA, mm-ta)
165 AC_SUBST(MMTA_CFLAGS)
168 dnl required package for evasimagesink
169 PKG_CHECK_MODULES(EFL, [
170 evas >= $EFL_REQUIRED
171 ecore >= $EFL_REQUIRED
172 ecore-x >= $EFL_REQUIRED
178 You need to install or upgrade the EFL development
179 packages on your system. On debian-based systems these are
180 libevas-dev and libecore-dev.
181 The minimum version required is $EFL_REQUIRED.
185 dnl PKG_CHECK_MODULES(UDEVMGR, unified-dev-mgr)
186 dnl AC_SUBST(UDEVMGR_CFLAGS)
187 dnl AC_SUBST(UDEVMGR_LIBS)
189 dnl use ext-encodebin --------------------------------------------------------------------------
190 AC_ARG_ENABLE(ext-encodebin, AC_HELP_STRING([--enable-ext-encodebin], [using encodebin]),
192 case "${enableval}" in
193 yes) GST_EXT_USE_EXT_ENCODEBIN=yes ;;
194 no) GST_EXT_USE_EXT_ENCODEBIN=no ;;
195 *) AC_MSG_ERROR(bad value ${enableval} for --enable-ext-encodebin) ;;
198 [GST_EXT_USE_EXT_ENCODEBIN=yes])
199 AM_CONDITIONAL(GST_EXT_USE_EXT_ENCODEBIN, test "x$GST_EXT_USE_EXT_ENCODEBIN" = "xyes")
201 dnl use ext-avsystem --------------------------------------------------------------------------
202 AC_ARG_ENABLE(ext-avsystem, AC_HELP_STRING([--enable-ext-avsystem], [using avsystem]),
204 case "${enableval}" in
205 yes) GST_EXT_USE_EXT_AVSYSTEM=yes ;;
206 no) GST_EXT_USE_EXT_AVSYSTEM=no ;;
207 *) AC_MSG_ERROR(bad value ${enableval} for --enable-ext-avsystem) ;;
210 [GST_EXT_USE_EXT_AVSYSTEM=yes])
211 AM_CONDITIONAL(GST_EXT_USE_EXT_AVSYSTEM, test "x$GST_EXT_USE_EXT_AVSYSTEM" = "xyes")
213 dnl use ext-evasimagesink --------------------------------------------------------------------------
214 AC_ARG_ENABLE(ext-evasimagesink, AC_HELP_STRING([--enable-ext-evasimagesink], [using evasimagesink]),
216 case "${enableval}" in
217 yes) GST_EXT_USE_EXT_EVASIMAGESINK=yes ;;
218 no) GST_EXT_USE_EXT_EVASIMAGESINK=no ;;
219 *) AC_MSG_ERROR(bad value ${enableval} for --enable-ext-evasimagesink) ;;
222 [GST_EXT_USE_EXT_EVASIMAGESINK=yes])
223 AM_CONDITIONAL(GST_EXT_USE_EXT_EVASIMAGESINK, test "x$GST_EXT_USE_EXT_EVASIMAGESINK" = "xyes")
225 dnl use ext-gstreamer-audio -------------------------------------------------------------------
226 AC_ARG_ENABLE(ext-gstreamer-audio, AC_HELP_STRING([--enable-ext-gstreamer-audio], [using gstreamer-audio]),
228 case "${enableval}" in
229 yes) GST_EXT_USE_EXT_AVSYSAUDIO=yes ;;
230 no) GST_EXT_USE_EXT_AVSYSAUDIO=no ;;
231 *) AC_MSG_ERROR(bad value ${enableval} for --enable-ext-gstreamer-audio) ;;
234 [GST_EXT_USE_EXT_AVSYSAUDIO=yes])
235 AM_CONDITIONAL(GST_EXT_USE_EXT_AVSYSAUDIO, test "x$GST_EXT_USE_EXT_AVSYSAUDIO" = "xyes")
237 if test "x$GST_EXT_USE_EXT_AVSYSAUDIO" = "xyes"; then
239 PKG_CHECK_MODULES(AVSYSAUDIO, avsysaudio, HAVE_AVSYSAUDIO="yes", [
243 if test "x$HAVE_AVSYSAUDIO" = "xno"; then
244 AC_MSG_ERROR(no avsysaudio package found)
246 AC_SUBST(AVSYSAUDIO_CFLAGS)
247 AC_SUBST(AVSYSAUDIO_LIBS)
250 dnl use ext-drmsrc --------------------------------------------------------------------------
251 AC_ARG_ENABLE(ext-drmsrc, AC_HELP_STRING([--enable-ext-drmsrc], [using drmsrc]),
253 case "${enableval}" in
254 yes) GST_EXT_USE_EXT_DRMSRC=yes ;;
255 no) GST_EXT_USE_EXT_DRMSRC=no ;;
256 *) AC_MSG_ERROR(bad value ${enableval} for --enable-ext-drmsrc) ;;
259 [GST_EXT_USE_EXT_DRMSRC=yes])
260 AM_CONDITIONAL(GST_EXT_USE_EXT_DRMSRC, test "x$GST_EXT_USE_EXT_DRMSRC" = "xyes")
261 dnl use ext-toggle --------------------------------------------------------------------------
262 AC_ARG_ENABLE(ext-toggle, AC_HELP_STRING([--enable-ext-toggle], [using toggle]),
264 case "${enableval}" in
265 yes) GST_EXT_USE_EXT_TOGGLE=yes ;;
266 no) GST_EXT_USE_EXT_TOGGLE=no ;;
267 *) AC_MSG_ERROR(bad value ${enableval} for --enable-ext-toggle) ;;
270 [GST_EXT_USE_EXT_TOGGLE=yes])
271 AM_CONDITIONAL(GST_EXT_USE_EXT_TOGGLE, test "x$GST_EXT_USE_EXT_TOGGLE" = "xyes")
273 dnl for i386 --------------------------------------------------------------------------
274 AC_ARG_ENABLE(i386, AC_HELP_STRING([--enable-i386], [i386 build]),
276 case "${enableval}" in
279 *) AC_MSG_ERROR(bad value ${enableval} for --enable-i386) ;;
283 AM_CONDITIONAL([IS_I386], [test "x$IS_I386" = "xyes"])
285 dnl use ext-pdpushsrc --------------------------------------------------------------------------
286 AC_ARG_ENABLE(ext-pdpushsrc, AC_HELP_STRING([--enable-ext-pdpushsrc], [using pdpushsrc]),
288 case "${enableval}" in
289 yes) GST_EXT_USE_EXT_PD_PUSHSRC=yes ;;
290 no) GST_EXT_USE_EXT_PD_PUSHSRC=no ;;
291 *) AC_MSG_ERROR(bad value ${enableval} for --enable-ext-pdpushsrc) ;;
294 [GST_EXT_USE_EXT_PD_PUSHSRC=yes])
295 AM_CONDITIONAL(GST_EXT_USE_EXT_PD_PUSHSRC, test "x$GST_EXT_USE_EXT_PD_PUSHSRC" = "xyes")
296 dnl use ext-audiotp --------------------------------------------------------------------------
297 AC_ARG_ENABLE(ext-audiotp, AC_HELP_STRING([--enable-ext-audiotp], [using audiotp]),
299 case "${enableval}" in
300 yes) GST_EXT_USE_EXT_AUDIOTP=yes ;;
301 no) GST_EXT_USE_EXT_AUDIOTP=no ;;
302 *) AC_MSG_ERROR(bad value ${enableval} for --enable-ext-audiotp) ;;
305 [GST_EXT_USE_EXT_AUDIOTP=yes])
306 AM_CONDITIONAL(GST_EXT_USE_EXT_AUDIOTP, test "x$GST_EXT_USE_EXT_AUDIOTP" = "xyes")
308 dnl use ext-ssdemux --------------------------------------------------------------------------
309 AC_ARG_ENABLE(ext-ssdemux, AC_HELP_STRING([--enable-ext-ssdemux], [using ssdemux]),
311 case "${enableval}" in
312 yes) GST_EXT_USE_EXT_SSDEMUX=yes ;;
313 no) GST_EXT_USE_EXT_SSDEMUX=no ;;
314 *) AC_MSG_ERROR(bad value ${enableval} for --enable-ext-ssdemux) ;;
317 [GST_EXT_USE_EXT_SSDEMUX=yes])
318 AM_CONDITIONAL(GST_EXT_USE_EXT_SSDEMUX, test "x$GST_EXT_USE_EXT_SSDEMUX" = "xyes")
327 pdpushsrc/src/Makefile
328 avsystem/src/Makefile
330 encodebin/src/Makefile
331 evasimagesink/Makefile
332 evasimagesink/src/Makefile