renatofilho@621: dnl fill in your package name and version here renatofilho@621: dnl autoconf configuration files for gst-plugins-dspbin renatofilho@621: AC_INIT renatofilho@621: AC_CANONICAL_TARGET renatofilho@621: renatofilho@621: AC_CONFIG_MACRO_DIR([m4]) renatofilho@621: dnl We disable static building for development, for time savings renatofilho@621: dnl this goes before AS_LIBTOOL to appease autoconf renatofilho@621: dnl *NOTE*: dnl this line before release, so release does static too renatofilho@621: AM_DISABLE_STATIC renatofilho@621: renatofilho@621: dnl AM_MAINTAINER_MODE only provides the option to configure to enable it renatofilho@621: AM_MAINTAINER_MODE melunko@38: melunko@38: dnl when going to/from release please set the nano (fourth number) right ! melunko@38: dnl releases only do Wall, cvs and prerelease does Werror too melunko@38: AS_VERSION(libgnomevfs2-mythtv, LIBGNOMEVFS2_MYTHTV, 0, 1, 0, 1, LIBGNOMEVFS2_MYTHTV_CVS="no", LIBGNOMEVFS2_MYTHTV_CVS="yes") melunko@38: melunko@38: AM_INIT_AUTOMAKE($PACKAGE, $VERSION) melunko@38: renatofilho@621: AM_PROG_LIBTOOL renatofilho@621: melunko@38: AM_CONFIG_HEADER(config.h) melunko@38: melunko@38: dnl make aclocal work in maintainer mode melunko@38: AC_SUBST(ACLOCAL_AMFLAGS, "-I m4") melunko@38: melunko@38: dnl check for tools melunko@38: AC_PROG_CC renatofilho@621: AC_PROG_CC_STDC renatofilho@621: AM_PROG_AS melunko@38: melunko@38: dnl decide on error flags renatofilho@621: AS_COMPILER_FLAG(-Wall, GST_WALL="yes", GST_WALL="no") melunko@38: renatofilho@621: if test "x$GST_WALL" = "xyes"; then renatofilho@621: ERROR_CFLAGS="$GST_ERROR -Wall" melunko@38: renatofilho@621: if test "x$GST_CVS" = "xyes"; then renatofilho@621: AS_COMPILER_FLAG(-Werror,ERROR_CFLAGS="$ERROR_CFLAGS -Werror",ERROR_CFLAGS="$ERROR_CFLAGS") renatofilho@621: fi melunko@38: fi melunko@38: renatofilho@621: AC_SUBST(ERROR_CFLAGS) renatofilho@621: renatofilho@621: dnl determine c++ compiler renatofilho@621: AC_PROG_CXX renatofilho@621: dnl determine if c++ is available on this system renatofilho@621: AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no) renatofilho@621: dnl determine c++ preprocessor renatofilho@621: AC_PROG_CXXCPP renatofilho@621: AC_ISC_POSIX renatofilho@621: renatofilho@621: AC_HEADER_STDC([]) renatofilho@621: AC_C_INLINE renatofilho@621: renatofilho@621: dnl Check for pkgconfig first melunko@38: AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no) renatofilho@621: melunko@38: dnl Give error and exit if we don't have pkgconfig melunko@38: if test "x$HAVE_PKGCONFIG" = "xno"; then melunko@38: AC_MSG_ERROR(you need to have pkgconfig installed !) melunko@38: fi melunko@38: melunko@38: dnl Check for Glib2.0 melunko@38: PKG_CHECK_MODULES(GLIB, glib-2.0, HAVE_GLIB=yes,HAVE_GLIB=no) melunko@38: melunko@38: dnl Give error and exit if we don't have glib melunko@38: if test "x$HAVE_GLIB" = "xno"; then melunko@38: AC_MSG_ERROR(you need glib-2.0 installed) melunko@38: fi melunko@38: melunko@38: dnl make GLIB_CFLAGS and GLIB_LIBS available melunko@38: AC_SUBST(GLIB_CFLAGS) melunko@38: AC_SUBST(GLIB_LIBS) melunko@38: melunko@38: AC_DEFINE(HAVE_GLIB,1,[Defined when glib-2.0 was found]) melunko@38: melunko@38: dnl Check for GObject2.0 melunko@38: PKG_CHECK_MODULES(GOBJECT, melunko@38: gobject-2.0, melunko@38: HAVE_GOBJECT=yes, HAVE_GOBJECT=no) melunko@38: melunko@38: dnl Give error and exit if we don't have gobject melunko@38: if test "x$HAVE_GOBJECT" = "xno"; then melunko@38: AC_MSG_ERROR(you need gobject-2.0 installed) melunko@38: fi melunko@38: melunko@38: dnl make GOBJECT_CFLAGS and GOBJECT_LIBS available melunko@38: AC_SUBST(GOBJECT_CFLAGS) melunko@38: AC_SUBST(GOBJECT_LIBS) melunko@38: renatofilho@621: melunko@38: GNOME_VFS_REQS=2.7.4 melunko@38: PKG_CHECK_MODULES(GNOME_VFS, melunko@38: gnome-vfs-2.0 >= $GNOME_VFS_REQS gnome-vfs-module-2.0 >= $GNOME_VFS_REQS, melunko@38: HAVE_GNOME_VFS=yes, melunko@38: HAVE_GNOME_VFS=no) melunko@38: melunko@38: if test x"$HAVE_GNOME_VFS" = xno; then melunko@38: AC_MSG_ERROR([You need gnome-vfs2 development packages to compile libgnomevfs2-mythtv]) melunko@38: fi melunko@38: melunko@38: AC_SUBST(GNOME_VFS_CFLAGS) melunko@38: AC_SUBST(GNOME_VFS_LIBS) melunko@38: melunko@38: renatofilho@621: PKG_CHECK_MODULES(LIBGMYTH, gmyth >= 0.3, HAVE_LIBGMYTH=yes,HAVE_LIBGMYTH=no) renatofilho@621: if test "x$HAVE_LIBGMYTH" = "xno"; then renatofilho@621: AC_MSG_ERROR(you need gmyth >= 0.3 installed) melunko@38: fi melunko@38: AC_SUBST(LIBGMYTH_CFLAGS) melunko@38: AC_SUBST(LIBGMYTH_LIBS) melunko@38: renatofilho@621: renatofilho@621: AC_OUTPUT( \ renatofilho@621: Makefile \ renatofilho@621: modules/Makefile renatofilho@621: ) renatofilho@621: