[svn r408] Some typo erros on gmyth_transcode.h were fixed; added more regression tests to the tests directory ('make check').
1 AC_INIT(libgnomevfs2-mythtv, 0.1)
3 dnl when going to/from release please set the nano (fourth number) right !
4 dnl releases only do Wall, cvs and prerelease does Werror too
5 AS_VERSION(libgnomevfs2-mythtv, LIBGNOMEVFS2_MYTHTV, 0, 1, 0, 1, LIBGNOMEVFS2_MYTHTV_CVS="no", LIBGNOMEVFS2_MYTHTV_CVS="yes")
7 AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
9 AM_CONFIG_HEADER(config.h)
13 dnl AM_MAINTAINER_MODE provides the option to enable maintainer mode
15 dnl make aclocal work in maintainer mode
16 AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
19 dnl Make sure CFLAGS is defined to stop AC_PROC_CC adding -g
27 dnl Test if --enable-debug given
28 AC_ARG_ENABLE(debug, [AC_HELP_STRING([--enable-debug],[enable debugging mode])])
29 if test "x$enable_debug" = "xyes" ; then
36 dnl decide on error flags
37 AS_COMPILER_FLAG(-Wall, LIBGNOMEVFS2_MYTHTV_WALL="yes", LIBGNOMEVFS2_MYTHTV_WALL="no")
39 if test "x$LIBGNOMEVFS2_MYTHTV_WALL" = "xyes"; then
40 CFLAGS="$CFLAGS -Wall"
42 if test "x$LIBGNOMEVFS2_MYTHTV_CVS" = "xyes"; then
43 AS_COMPILER_FLAG(-Werror,CFLAGS="$CFLAGS -Werror",)
47 dnl Now check required packages
49 dnl Check for pkgconfig
50 AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
51 dnl Give error and exit if we don't have pkgconfig
52 if test "x$HAVE_PKGCONFIG" = "xno"; then
53 AC_MSG_ERROR(you need to have pkgconfig installed !)
57 PKG_CHECK_MODULES(GLIB, glib-2.0, HAVE_GLIB=yes,HAVE_GLIB=no)
59 dnl Give error and exit if we don't have glib
60 if test "x$HAVE_GLIB" = "xno"; then
61 AC_MSG_ERROR(you need glib-2.0 installed)
64 dnl make GLIB_CFLAGS and GLIB_LIBS available
68 AC_DEFINE(HAVE_GLIB,1,[Defined when glib-2.0 was found])
70 dnl Check for GObject2.0
71 PKG_CHECK_MODULES(GOBJECT,
73 HAVE_GOBJECT=yes, HAVE_GOBJECT=no)
75 dnl Give error and exit if we don't have gobject
76 if test "x$HAVE_GOBJECT" = "xno"; then
77 AC_MSG_ERROR(you need gobject-2.0 installed)
80 dnl make GOBJECT_CFLAGS and GOBJECT_LIBS available
81 AC_SUBST(GOBJECT_CFLAGS)
82 AC_SUBST(GOBJECT_LIBS)
85 PKG_CHECK_MODULES(GNOME_VFS,
86 gnome-vfs-2.0 >= $GNOME_VFS_REQS gnome-vfs-module-2.0 >= $GNOME_VFS_REQS,
90 if test x"$HAVE_GNOME_VFS" = xno; then
91 AC_MSG_ERROR([You need gnome-vfs2 development packages to compile libgnomevfs2-mythtv])
94 AC_SUBST(GNOME_VFS_CFLAGS)
95 AC_SUBST(GNOME_VFS_LIBS)
99 PKG_CHECK_MODULES(LIBGMYTH,
100 gmyth >= $GMYTH_REQS,
104 if test x"$have_libgmyth" = "xno"; then
105 AC_MSG_ERROR(gmyth-0.1 not found)
108 AC_SUBST(LIBGMYTH_CFLAGS)
109 AC_SUBST(LIBGMYTH_LIBS)