libgnomevfs2-mythtv/configure.ac
author renatofilho
Tue Jul 03 21:45:39 2007 +0100 (2007-07-03)
branchtrunk
changeset 771 b4480dd29fc8
parent 644 b937c837e929
permissions -rwxr-xr-x
[svn r777] bug fixed
     1 dnl fill in your package name and version here
     2 dnl autoconf configuration files for gst-plugins-dspbin
     3 AC_INIT
     4 AC_CANONICAL_TARGET
     5 
     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
    10 AM_DISABLE_STATIC
    11 
    12 dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
    13 AM_MAINTAINER_MODE
    14 
    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")
    18 
    19 AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
    20 
    21 AM_PROG_LIBTOOL
    22 
    23 AM_CONFIG_HEADER(config.h)
    24 
    25 dnl make aclocal work in maintainer mode
    26 AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
    27 
    28 dnl check for tools
    29 AC_PROG_CC
    30 AC_PROG_CC_STDC
    31 AM_PROG_AS
    32 
    33 dnl decide on error flags
    34 AS_COMPILER_FLAG(-Wall, GST_WALL="yes", GST_WALL="no")
    35 
    36 if test "x$GST_WALL" = "xyes"; then
    37   ERROR_CFLAGS="$GST_ERROR -Wall"
    38 
    39   if test "x$GST_CVS" = "xyes"; then
    40     AS_COMPILER_FLAG(-Werror,ERROR_CFLAGS="$ERROR_CFLAGS -Werror",ERROR_CFLAGS="$ERROR_CFLAGS")
    41   fi
    42 fi
    43 
    44 AC_SUBST(ERROR_CFLAGS)
    45 
    46 dnl determine c++ compiler
    47 AC_PROG_CXX
    48 dnl determine if c++ is available on this system
    49 AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no)
    50 dnl determine c++ preprocessor
    51 AC_PROG_CXXCPP
    52 AC_ISC_POSIX
    53 
    54 AC_HEADER_STDC([])
    55 AC_C_INLINE
    56 
    57 dnl Check for pkgconfig first
    58 AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
    59 
    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 !)
    63 fi
    64 
    65 dnl Check for Glib2.0
    66 PKG_CHECK_MODULES(GLIB, glib-2.0, HAVE_GLIB=yes,HAVE_GLIB=no)
    67 
    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)
    71 fi
    72 
    73 dnl make GLIB_CFLAGS and GLIB_LIBS available
    74 AC_SUBST(GLIB_CFLAGS)
    75 AC_SUBST(GLIB_LIBS)
    76 
    77 AC_DEFINE(HAVE_GLIB,1,[Defined when glib-2.0 was found])
    78 
    79 dnl Check for GObject2.0
    80 PKG_CHECK_MODULES(GOBJECT, 
    81   gobject-2.0, 
    82   HAVE_GOBJECT=yes, HAVE_GOBJECT=no)
    83 
    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)
    87 fi
    88 
    89 dnl make GOBJECT_CFLAGS and GOBJECT_LIBS available
    90 AC_SUBST(GOBJECT_CFLAGS)
    91 AC_SUBST(GOBJECT_LIBS)
    92 
    93 
    94 GNOME_VFS_REQS=2.7.4
    95 PKG_CHECK_MODULES(GNOME_VFS, 
    96   gnome-vfs-2.0 >= $GNOME_VFS_REQS gnome-vfs-module-2.0 >= $GNOME_VFS_REQS,
    97   HAVE_GNOME_VFS=yes,
    98   HAVE_GNOME_VFS=no)
    99 
   100 if test x"$HAVE_GNOME_VFS" = xno; then
   101   AC_MSG_ERROR([You need gnome-vfs2 development packages to compile libgnomevfs2-mythtv])
   102 fi
   103 
   104 AC_SUBST(GNOME_VFS_CFLAGS)
   105 AC_SUBST(GNOME_VFS_LIBS)
   106 
   107 
   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)
   111 fi
   112 AC_SUBST(LIBGMYTH_CFLAGS)
   113 AC_SUBST(LIBGMYTH_LIBS)
   114 
   115 
   116 AC_OUTPUT( \
   117     Makefile \
   118     modules/Makefile \
   119     tests/Makefile
   120 )
   121