implement readthread state to gain better control over running and paused behaviour
[gst-plugin-dreamsource.git] / configure.ac
1 AC_INIT([gst-plugin-dreamsource],[0.1],[fraxinas@opendreambox.org])
2 AM_INIT_AUTOMAKE([foreign])
3
4 AC_CONFIG_SRCDIR([src/gstdreamsource.c])
5 AC_CONFIG_MACRO_DIR([m4])
6
7 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
8 AC_USE_SYSTEM_EXTENSIONS
9 AC_SYS_LARGEFILE
10
11 dnl find a compiler
12 AC_PROG_CC
13 AC_PROG_CC_STDC
14
15 dnl find libtool
16 AC_PROG_LIBTOOL
17
18 dnl check if the compiler supports '-c' and '-o' options
19 AM_PROG_CC_C_O
20
21 # Checks for header files.
22 AC_CHECK_HEADERS([stdio.h stdlib.h stdint.h fcntl.h sys/mman.h ])
23
24 # Checks for typedefs, structures, and compiler characteristics.
25 AC_TYPE_SIZE_T
26
27 # Check for Gstreamer 1.0
28 PKG_CHECK_MODULES(GST, [gstreamer-1.0], [])
29
30 dnl set the plugindir where plugins should be installed
31 if test "x${prefix}" = "x$HOME"; then
32   plugindir="$HOME/.gstreamer-1.0/plugins"
33 else
34   plugindir="\$(libdir)/gstreamer-1.0"
35 fi
36 AC_SUBST(plugindir)
37
38 dnl set proper LDFLAGS for plugins
39 GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).*'
40 AC_SUBST(GST_PLUGIN_LDFLAGS)
41
42 AC_CONFIG_FILES([
43 Makefile
44 m4/Makefile
45 src/Makefile
46 ])
47 AC_OUTPUT