Added gst-plugins-base-subtitles0.10-0.10.34 for Meego Harmattan 1.2
[mafwsubrenderer] / gst-plugins-base-subtitles0.10 / common / m4 / gst.m4
1 dnl AG_GST_INIT
2 dnl sets up use of GStreamer configure.ac macros
3 dnl all GStreamer autoconf macros are prefixed
4 dnl with AG_GST_ for public macros
5 dnl with _AG_GST_ for private macros
6
7 AC_DEFUN([AG_GST_INIT],
8 [
9   m4_pattern_forbid(^_?AG_GST_)
10 ])
11
12 dnl AG_GST_PKG_CONFIG_PATH
13 dnl
14 dnl sets up a GST_PKG_CONFIG_PATH variable for use in Makefile.am
15 dnl which contains the path of the in-tree pkgconfig directory first
16 dnl and then any paths specified in PKG_CONFIG_PATH.
17 dnl
18 dnl We do this mostly so we don't have to use unportable shell constructs
19 dnl such as ${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH} in Makefile.am to handle
20 dnl the case where the environment variable is not set, but also in order
21 dnl to avoid a trailing ':' in the PKG_CONFIG_PATH which apparently causes
22 dnl problems with pkg-config on windows with msys/mingw.
23 AC_DEFUN([AG_GST_PKG_CONFIG_PATH],
24 [
25   GST_PKG_CONFIG_PATH="\$(top_builddir)/pkgconfig"
26   if test "x$PKG_CONFIG_PATH" != "x"; then
27     GST_PKG_CONFIG_PATH="$GST_PKG_CONFIG_PATH:$PKG_CONFIG_PATH"
28   fi
29   AC_SUBST([GST_PKG_CONFIG_PATH])
30   AC_MSG_NOTICE([Using GST_PKG_CONFIG_PATH = $GST_PKG_CONFIG_PATH])
31 ])