]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gst-plugin-ducati.git/blob - configure.ac
viddec: add interlaced support
[glsdk/gst-plugin-ducati.git] / configure.ac
1 dnl required version of autoconf
2 AC_PREREQ([2.53])
4 dnl TODO: fill in your package name and package version here
5 AC_INIT([gst-ducati],[0.10.0])
7 dnl required versions of gstreamer and plugins-base
8 GST_MAJORMINOR=0.10
9 GST_REQUIRED=0.10.30
11 AC_CONFIG_SRCDIR([src/gstducati.c])
12 AC_CONFIG_HEADERS([config.h])
14 dnl required version of automake
15 AM_INIT_AUTOMAKE([1.10])
17 dnl enable mainainer mode by default
18 AM_MAINTAINER_MODE
20 dnl sets host_* variables
21 AC_CANONICAL_HOST
23 dnl use pretty build output with automake >= 1.11
24 m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])],
25   [AM_DEFAULT_VERBOSITY=1
26    AC_SUBST(AM_DEFAULT_VERBOSITY)])
28 dnl check for tools
29 AC_PROG_CC
30 AM_PROG_CC_C_O
31 AC_PROG_INSTALL
32 AC_PROG_LIBTOOL
34 PKG_CHECK_MODULES([CHECK], [check], HAVE_CHECK=yes, HAVE_CHECK=no)
36 dnl Keep correct libtool macros in-tree.
37 AC_CONFIG_MACRO_DIR([m4])
39 dnl initialize GStreamer macros
40 AG_GST_INIT
41 dnl define an ERROR_CFLAGS Makefile variable
42 AG_GST_SET_ERROR_CFLAGS($GST_CVS)
44 dnl set up gettext
45 dnl the version check needs to stay here because autopoint greps for it
46 AM_GNU_GETTEXT_VERSION([0.17])
47 AM_GNU_GETTEXT([external])
48 AG_GST_GETTEXT([gst-ducati-$GST_MAJORMINOR])
50 dnl add GStreamer arguments
51 AG_GST_ARG_DEBUG
52 AG_GST_ARG_PROFILING
53 AG_GST_ARG_VALGRIND
54 AG_GST_ARG_GCOV
56 AG_GST_ARG_WITH_PKG_CONFIG_PATH
57 AG_GST_ARG_WITH_PACKAGE_NAME
58 AG_GST_ARG_WITH_PACKAGE_ORIGIN
60 dnl required version of libtool
61 LT_PREREQ([2.2.6])
62 LT_INIT
64 dnl give error and exit if we don't have pkgconfig
65 AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, [ ], [
66   AC_MSG_ERROR([You need to have pkg-config installed!])
67 ])
69 dnl Check for tiler memmgr
70 PKG_CHECK_MODULES([MEMMGR], [libmemmgr])
72 dnl Check for required codec-engine library..
73 PKG_CHECK_MODULES(LIBDCE, [libdce >= 1.0.0])
75 dnl Check for the required version of GStreamer core (and gst-plugins-base)
76 dnl This will export GST_CFLAGS and GST_LIBS variables for use in Makefile.am
77 PKG_CHECK_MODULES(GST, [
78   gstreamer-0.10 >= $GST_REQUIRED
79   gstreamer-base-0.10 >= $GST_REQUIRED
80 ], [
81   AC_SUBST(GST_CFLAGS)
82   AC_SUBST(GST_LIBS)
83 ], [
84   AC_MSG_ERROR([
85       You need to install or upgrade the GStreamer development
86       packages on your system. On debian-based systems these are
87       libgstreamer0.10-dev and libgstreamer-plugins-base0.10-dev.
88       on RPM-based systems gstreamer0.10-devel, libgstreamer0.10-devel
89       or similar. The minimum version required is $GST_REQUIRED.
90   ])
91 ])
93 dnl set license and copyright notice
94 GST_LICENSE="LGPL"
95 AC_DEFINE_UNQUOTED(GST_LICENSE, "$GST_LICENSE", [GStreamer license])
96 AC_SUBST(GST_LICENSE)
98 dnl set GStreamer plug-in dir
99 AG_GST_SET_PLUGINDIR
101 dnl GST_OPTION_CFLAGS
102 if test "x$USE_DEBUG" = xyes; then
103    PROFILE_CFLAGS="-g"
104 fi
105 AC_SUBST(PROFILE_CFLAGS)
107 DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED"
108 AC_SUBST(DEPRECATED_CFLAGS)
110 dnl every flag in GST_OPTION_CFLAGS can be overridden at make time
111 GST_OPTION_CFLAGS="\$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
112 AC_SUBST(GST_OPTION_CFLAGS)
114 dnl our libraries need to be versioned correctly
115 AC_SUBST(GST_LT_LDFLAGS)
117 dnl FIXME: do we want to rename to GST_ALL_* ?
118 dnl prefer internal headers to already installed ones
119 dnl also add builddir include for enumtypes and marshal
120 dnl add GST_OPTION_CFLAGS, but overridable
121 GST_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS \$(GST_OPTION_CFLAGS)"
122 AC_SUBST(GST_CFLAGS)
123 AC_SUBST(GST_LIBS)
125 dnl LDFLAGS really should only contain flags, not libs - they get added before
126 dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
127 GST_ALL_LDFLAGS=""
128 AC_SUBST(GST_ALL_LDFLAGS)
130 dnl this really should only contain flags, not libs - they get added before
131 dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
132 GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_desc\$\$' $GST_ALL_LDFLAGS"
133 AC_SUBST(GST_PLUGIN_LDFLAGS)
135 AC_CONFIG_FILES([Makefile src/Makefile])
136 AC_OUTPUT