gst-plugins-mythtv/configure.ac
branchtrunk
changeset 4 259b9773e5c3
parent 2 bd3829c2e9c9
child 8 3194c4c16467
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gst-plugins-mythtv/configure.ac	Thu Sep 21 00:15:52 2006 +0100
     1.3 @@ -0,0 +1,170 @@
     1.4 +#                                               -*- Autoconf -*-
     1.5 +# Process this file with autoconf to produce a configure script.
     1.6 +
     1.7 +AC_PREREQ(2.50)
     1.8 +
     1.9 +AC_INIT([mythtvsrc],[0.1])
    1.10 +
    1.11 +dnl AC_CONFIG_SRCDIR([src/mmyth_main.c])
    1.12 +AC_CONFIG_HEADER(config.h)
    1.13 +
    1.14 +dnl when going to/from release please set the nano (fourth number) right !
    1.15 +dnl releases only do Wall, SVN and prerelease does Werror too
    1.16 +AS_VERSION(mythtvsrc, MYTHTVSRC, 0, 1, 0, 3, MYTHTVSRC_SVN="no", MYTHTVSRC_SVN="yes")
    1.17 +
    1.18 +MYTHTVSRC_MAJORMINOR=$MYTHTVSRC_MAJOR_VERSION.$MYTHTVSRC_MINOR_VERSION
    1.19 +
    1.20 +AC_SUBST(MYTHTVSRC_MAJORMINOR)
    1.21 +
    1.22 +dnl AM_MAINTAINER_MODE provides the option to enable maintainer mode
    1.23 +AM_MAINTAINER_MODE
    1.24 +dnl make aclocal work in maintainer mode
    1.25 +AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
    1.26 +
    1.27 +# Checks for programs.
    1.28 +# check for tools
    1.29 +# Make sure CFLAGS is defined to stop AC_PROC_CC adding -g
    1.30 +CFLAGS="$CFLAGS -Wall"
    1.31 +AC_PROG_CC
    1.32 +AC_PROG_LIBTOOL
    1.33 +# Checks for libraries.
    1.34 +
    1.35 +# Checks for header files.
    1.36 +AC_HEADER_STDC
    1.37 +AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h unistd.h])
    1.38 +
    1.39 +# Checks for typedefs, structures, and compiler characteristics.
    1.40 +AC_C_CONST
    1.41 +AC_TYPE_PID_T
    1.42 +AC_STRUCT_TM
    1.43 +
    1.44 +# Checks for library functions.
    1.45 +AC_FUNC_FORK
    1.46 +AC_PROG_GCC_TRADITIONAL
    1.47 +AC_FUNC_MALLOC
    1.48 +AC_FUNC_MKTIME
    1.49 +AC_FUNC_VPRINTF
    1.50 +AC_CHECK_FUNCS([memset socket stime strstr strtoul])
    1.51 +
    1.52 +AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
    1.53 +
    1.54 +# Checks required packages
    1.55 +
    1.56 +dnl Test if --disable-debug given
    1.57 +AC_ARG_ENABLE(debug,
    1.58 +	[AC_HELP_STRING([--disable-debug], [disable debugging mode])],
    1.59 +	enable_debug="$enableval",
    1.60 +	enable_debug=yes)
    1.61 +
    1.62 +if test "x$enable_debug" = "xyes" ; then
    1.63 +      CFLAGS="$CFLAGS -g"
    1.64 +else
    1.65 +      AC_DEFINE( NDEBUG, 1, [disable debug messages] )
    1.66 +      CFLAGS="$CFLAGS -O2 -DG_DISABLE_CHECKS -DNDEBUG"
    1.67 +fi          
    1.68 +
    1.69 +AM_CONDITIONAL( NDEBUG, test "x$enable_debug" = "xyes" )
    1.70 +
    1.71 +# Check for pkgconfig
    1.72 +AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
    1.73 +# Give error and exit if we don't have pkgconfig
    1.74 +if test "x$HAVE_PKGCONFIG" = "xno"; then
    1.75 +  AC_MSG_ERROR(you need to have pkgconfig installed !)
    1.76 +fi
    1.77 +
    1.78 +# Check for Glib2.0
    1.79 +PKG_CHECK_MODULES(GLIB, glib-2.0, HAVE_GLIB=yes,HAVE_GLIB=no)
    1.80 +
    1.81 +# Give error and exit if we don't have glib
    1.82 +if test "x$HAVE_GLIB" = "xno"; then
    1.83 +  AC_MSG_ERROR(you need glib-2.0 installed)
    1.84 +fi
    1.85 +
    1.86 +# make GLIB_CFLAGS and GLIB_LIBS available
    1.87 +AC_SUBST(GLIB_CFLAGS)
    1.88 +AC_SUBST(GLIB_LIBS)
    1.89 +
    1.90 +# Check for GObject2.0
    1.91 +PKG_CHECK_MODULES(GOBJECT,
    1.92 +  gobject-2.0,
    1.93 +  HAVE_GOBJECT=yes, HAVE_GOBJECT=no)
    1.94 +
    1.95 +# Give error and exit if we don't have gobject
    1.96 +if test "x$HAVE_GOBJECT" = "xno"; then
    1.97 +  AC_MSG_ERROR(you need gobject-2.0 installed)
    1.98 +fi
    1.99 +
   1.100 +# make GOBJECT_CFLAGS and GOBJECT_LIBS available
   1.101 +AC_SUBST(GOBJECT_CFLAGS)
   1.102 +AC_SUBST(GOBJECT_LIBS)
   1.103 +
   1.104 +dnl ========== Check for Hildon Libraries
   1.105 +PKG_CHECK_MODULES(HILDON,
   1.106 +  hildon-lgpl libosso hildon-status-bar-lib libhildonmenu hildon-base-lib hildon-control-panel hildon-libs,
   1.107 +  HAVE_HILDON=yes, HAVE_HILDON=no)
   1.108 +
   1.109 +if test "x$HAVE_HILDON" = "xyes"; then
   1.110 +  AC_DEFINE(MAEMO_PLATFORM, 1, [build with hildon libs])
   1.111 +  HILDON_CFLAGS="$HILDON_CFLAGS -DMAEMO_PLATFORM=1"
   1.112 +else
   1.113 +  AC_MSG_RESULT(no)
   1.114 +fi
   1.115 +
   1.116 +AM_CONDITIONAL(MAEMO_PLATFORM, test "x$HAVE_HILDON" = "xyes")
   1.117 +
   1.118 +dnl make HILDON_CFLAGS and HILDON_LIBS available
   1.119 +AC_SUBST(HILDON_CFLAGS)
   1.120 +AC_SUBST(HILDON_LIBS)
   1.121 +
   1.122 +dnl *** MythTV ***
   1.123 +PKG_CHECK_MODULES(GMYTH,
   1.124 +  gmyth-0.1,
   1.125 +  HAVE_GMYTH=yes, HAVE_GMYTH=no)
   1.126 +
   1.127 +# Give error and exit if we don't have gobject
   1.128 +if test "x$HAVE_GMYTH" = "xno"; then
   1.129 +  AC_MSG_ERROR(you need gmyth-0.1 must to be installed)
   1.130 +fi
   1.131 +
   1.132 +# make GMYTH_CFLAGS and GMYTH_LIBS available
   1.133 +AC_SUBST(GMYTH_CFLAGS)
   1.134 +AC_SUBST(GMYTH_LIBS)
   1.135 +
   1.136 +# check for gstreamer development files
   1.137 +GST_REQUIRED=0.10
   1.138 +GST_MAJORMINOR=0.10
   1.139 +PKG_CHECK_MODULES(GST, \
   1.140 +  gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED,
   1.141 +  HAVE_GST=yes, HAVE_GST=no)
   1.142 +
   1.143 +# Give error and exit if we don't have gstreamer
   1.144 +if test "x$HAVE_GST" = "xno"; then
   1.145 +  AC_MSG_ERROR(you need gstreamer development packages installed !)
   1.146 +fi
   1.147 +
   1.148 +# make GST_CFLAGS and GST_LIBS available
   1.149 +AC_SUBST(GST_CFLAGS)
   1.150 +AC_SUBST(GST_LIBS)
   1.151 +
   1.152 +# check for gstreamer-base plugins (xoverlay interface)
   1.153 +GSTBASE_REQUIRED=0.10
   1.154 +GSTBASE_MAJORMINOR=0.10
   1.155 +PKG_CHECK_MODULES(GSTBASE, \
   1.156 +  gstreamer-base-$GSTBASE_MAJORMINOR >= $GSTBASE_REQUIRED,
   1.157 +  HAVE_GSTBASE=yes, HAVE_GSTBASE=no)
   1.158 +
   1.159 +# Give error and exit if we don't have gstreamer base libraries
   1.160 +if test "x$HAVE_GSTBASE" = "xno"; then
   1.161 +  AC_MSG_ERROR(you need gstreamer base development packages installed !)
   1.162 +fi
   1.163 +
   1.164 +# make GSTBASE_CFLAGS and GSTBASE_LIBS available
   1.165 +AC_SUBST(GSTBASE_CFLAGS)
   1.166 +AC_SUBST(GSTBASE_LIBS)
   1.167 +
   1.168 +# make GST_MAJORMINOR available in Makefile.am
   1.169 +AC_SUBST(GST_MAJORMINOR)
   1.170 +
   1.171 +AC_CONFIG_FILES([Makefile])
   1.172 +
   1.173 +AC_OUTPUT