[svn r721] Added GStreamer-like indentation.
1 dnl fill in your package name and version here
2 dnl autoconf configuration files for gst-plugins-dspbin
6 AC_CONFIG_MACRO_DIR([m4])
7 dnl We disable static building for development, for time savings
8 dnl this goes before AS_LIBTOOL to appease autoconf
9 dnl *NOTE*: dnl this line before release, so release does static too
12 dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
15 dnl when going to/from release please set the nano (fourth number) right !
16 dnl releases only do Wall, cvs and prerelease does Werror too
17 AS_VERSION(libgnomevfs2-mythtv, LIBGNOMEVFS2_MYTHTV, 0, 3, 0, 0, LIBGNOMEVFS2_MYTHTV_CVS="no", LIBGNOMEVFS2_MYTHTV_CVS="yes")
19 AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
23 AM_CONFIG_HEADER(config.h)
25 dnl make aclocal work in maintainer mode
26 AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
33 dnl decide on error flags
34 AS_COMPILER_FLAG(-Wall, GST_WALL="yes", GST_WALL="no")
36 if test "x$GST_WALL" = "xyes"; then
37 ERROR_CFLAGS="$GST_ERROR -Wall"
39 if test "x$GST_CVS" = "xyes"; then
40 AS_COMPILER_FLAG(-Werror,ERROR_CFLAGS="$ERROR_CFLAGS -Werror",ERROR_CFLAGS="$ERROR_CFLAGS")
44 AC_SUBST(ERROR_CFLAGS)
46 dnl determine c++ compiler
48 dnl determine if c++ is available on this system
49 AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no)
50 dnl determine c++ preprocessor
57 dnl Check for pkgconfig first
58 AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
60 dnl Give error and exit if we don't have pkgconfig
61 if test "x$HAVE_PKGCONFIG" = "xno"; then
62 AC_MSG_ERROR(you need to have pkgconfig installed !)
66 PKG_CHECK_MODULES(GLIB, glib-2.0, HAVE_GLIB=yes,HAVE_GLIB=no)
68 dnl Give error and exit if we don't have glib
69 if test "x$HAVE_GLIB" = "xno"; then
70 AC_MSG_ERROR(you need glib-2.0 installed)
73 dnl make GLIB_CFLAGS and GLIB_LIBS available
77 AC_DEFINE(HAVE_GLIB,1,[Defined when glib-2.0 was found])
79 dnl Check for GObject2.0
80 PKG_CHECK_MODULES(GOBJECT,
82 HAVE_GOBJECT=yes, HAVE_GOBJECT=no)
84 dnl Give error and exit if we don't have gobject
85 if test "x$HAVE_GOBJECT" = "xno"; then
86 AC_MSG_ERROR(you need gobject-2.0 installed)
89 dnl make GOBJECT_CFLAGS and GOBJECT_LIBS available
90 AC_SUBST(GOBJECT_CFLAGS)
91 AC_SUBST(GOBJECT_LIBS)
95 PKG_CHECK_MODULES(GNOME_VFS,
96 gnome-vfs-2.0 >= $GNOME_VFS_REQS gnome-vfs-module-2.0 >= $GNOME_VFS_REQS,
100 if test x"$HAVE_GNOME_VFS" = xno; then
101 AC_MSG_ERROR([You need gnome-vfs2 development packages to compile libgnomevfs2-mythtv])
104 AC_SUBST(GNOME_VFS_CFLAGS)
105 AC_SUBST(GNOME_VFS_LIBS)
108 PKG_CHECK_MODULES(LIBGMYTH, gmyth >= 0.3, HAVE_LIBGMYTH=yes,HAVE_LIBGMYTH=no)
109 if test "x$HAVE_LIBGMYTH" = "xno"; then
110 AC_MSG_ERROR(you need gmyth >= 0.3 installed)
112 AC_SUBST(LIBGMYTH_CFLAGS)
113 AC_SUBST(LIBGMYTH_LIBS)