1.1 --- a/gst-gmyth/configure.ac Tue May 01 16:31:26 2007 +0100
1.2 +++ b/gst-gmyth/configure.ac Wed May 23 20:05:05 2007 +0100
1.3 @@ -1,174 +1,141 @@
1.4 -# -*- Autoconf -*-
1.5 -# Process this file with autoconf to produce a configure script.
1.6 +dnl fill in your package name and version here
1.7 +dnl autoconf configuration files for gst-plugins-dspbin
1.8 +AC_INIT
1.9 +AC_CANONICAL_TARGET
1.10
1.11 -AC_PREREQ(2.50)
1.12 +AC_CONFIG_MACRO_DIR([m4])
1.13 +dnl We disable static building for development, for time savings
1.14 +dnl this goes before AS_LIBTOOL to appease autoconf
1.15 +dnl *NOTE*: dnl this line before release, so release does static too
1.16 +AM_DISABLE_STATIC
1.17
1.18 -AC_INIT([mythtvsrc],[0.1])
1.19 -
1.20 -dnl AC_CONFIG_SRCDIR([src])
1.21 -AC_CONFIG_HEADER(config.h)
1.22 +dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
1.23 +AM_MAINTAINER_MODE
1.24
1.25 dnl when going to/from release please set the nano (fourth number) right !
1.26 -dnl releases only do Wall, SVN and prerelease does Werror too
1.27 -AS_VERSION(mythtvsrc, MYTHTVSRC, 0, 1, 0, 3, MYTHTVSRC_SVN="no", MYTHTVSRC_SVN="yes")
1.28 +dnl releases only do Wall, cvs and prerelease does Werror too
1.29 +AS_VERSION(gst-indt-plugins, GST_PLUGINS_VERSION, 0, 10, 0, 1, GST_CVS="no", GST_CVS="yes")
1.30
1.31 -MYTHTVSRC_MAJORMINOR=$MYTHTVSRC_MAJOR_VERSION.$MYTHTVSRC_MINOR_VERSION
1.32 +AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
1.33
1.34 -AC_SUBST(MYTHTVSRC_MAJORMINOR)
1.35 +AM_PROG_LIBTOOL
1.36
1.37 -dnl AM_MAINTAINER_MODE provides the option to enable maintainer mode
1.38 -AM_MAINTAINER_MODE
1.39 +AM_CONFIG_HEADER(config.h)
1.40 +
1.41 dnl make aclocal work in maintainer mode
1.42 AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
1.43
1.44 -# Checks for programs.
1.45 -# check for tools
1.46 -# Make sure CFLAGS is defined to stop AC_PROC_CC adding -g
1.47 -CFLAGS="$CFLAGS -Wall"
1.48 +dnl check for tools
1.49 AC_PROG_CC
1.50 -AC_PROG_LIBTOOL
1.51 -# Checks for libraries.
1.52 +AC_PROG_CC_STDC
1.53 +AM_PROG_AS
1.54
1.55 -# Checks for header files.
1.56 -AC_HEADER_STDC
1.57 -AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h unistd.h])
1.58 +dnl decide on error flags
1.59 +AS_COMPILER_FLAG(-Wall, GST_WALL="yes", GST_WALL="no")
1.60
1.61 -# Checks for typedefs, structures, and compiler characteristics.
1.62 -AC_C_CONST
1.63 -AC_TYPE_PID_T
1.64 -AC_STRUCT_TM
1.65 +if test "x$GST_WALL" = "xyes"; then
1.66 + ERROR_CFLAGS="$GST_ERROR -Wall"
1.67
1.68 -# Checks for library functions.
1.69 -AC_FUNC_FORK
1.70 -AC_PROG_GCC_TRADITIONAL
1.71 -AC_FUNC_MALLOC
1.72 -AC_FUNC_MKTIME
1.73 -AC_FUNC_VPRINTF
1.74 -AC_CHECK_FUNCS([memset socket stime strstr strtoul])
1.75 + if test "x$GST_CVS" = "xyes"; then
1.76 + AS_COMPILER_FLAG(-Werror,ERROR_CFLAGS="$ERROR_CFLAGS -Werror",ERROR_CFLAGS="$ERROR_CFLAGS")
1.77 + fi
1.78 +fi
1.79
1.80 -AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
1.81 +AC_SUBST(ERROR_CFLAGS)
1.82
1.83 -# Checks required packages
1.84 +dnl determine c++ compiler
1.85 +AC_PROG_CXX
1.86 +dnl determine if c++ is available on this system
1.87 +AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no)
1.88 +dnl determine c++ preprocessor
1.89 +AC_PROG_CXXCPP
1.90 +AC_ISC_POSIX
1.91
1.92 -dnl Test if --disable-debug given
1.93 -AC_ARG_ENABLE(debug,
1.94 - [AC_HELP_STRING([--disable-debug], [disable debugging mode])],
1.95 - enable_debug="$enableval",
1.96 - enable_debug=yes)
1.97 +AC_HEADER_STDC([])
1.98 +AC_C_INLINE
1.99
1.100 -if test "x$enable_debug" = "xyes" ; then
1.101 - CFLAGS="$CFLAGS -g"
1.102 -else
1.103 - AC_DEFINE( NDEBUG, 1, [disable debug messages] )
1.104 - CFLAGS="$CFLAGS -O2 -DG_DISABLE_CHECKS -DNDEBUG"
1.105 -fi
1.106 +dnl Check for pkgconfig first
1.107 +AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
1.108
1.109 -AM_CONDITIONAL( NDEBUG, test "x$enable_debug" = "xyes" )
1.110 -
1.111 -# Check for pkgconfig
1.112 -AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
1.113 -# Give error and exit if we don't have pkgconfig
1.114 +dnl Give error and exit if we don't have pkgconfig
1.115 if test "x$HAVE_PKGCONFIG" = "xno"; then
1.116 AC_MSG_ERROR(you need to have pkgconfig installed !)
1.117 fi
1.118
1.119 -# Check for Glib2.0
1.120 -PKG_CHECK_MODULES(GLIB, glib-2.0, HAVE_GLIB=yes,HAVE_GLIB=no)
1.121 +dnl Now we're ready to ask for gstreamer libs and cflags
1.122 +dnl And we can also ask for the right version of gstreamer
1.123
1.124 -# Give error and exit if we don't have glib
1.125 -if test "x$HAVE_GLIB" = "xno"; then
1.126 - AC_MSG_ERROR(you need glib-2.0 installed)
1.127 -fi
1.128 -
1.129 -# make GLIB_CFLAGS and GLIB_LIBS available
1.130 -AC_SUBST(GLIB_CFLAGS)
1.131 -AC_SUBST(GLIB_LIBS)
1.132 -
1.133 -# Check for GObject2.0
1.134 -PKG_CHECK_MODULES(GOBJECT,
1.135 - gobject-2.0,
1.136 - HAVE_GOBJECT=yes, HAVE_GOBJECT=no)
1.137 -
1.138 -# Give error and exit if we don't have gobject
1.139 -if test "x$HAVE_GOBJECT" = "xno"; then
1.140 - AC_MSG_ERROR(you need gobject-2.0 installed)
1.141 -fi
1.142 -
1.143 -# make GOBJECT_CFLAGS and GOBJECT_LIBS available
1.144 -AC_SUBST(GOBJECT_CFLAGS)
1.145 -AC_SUBST(GOBJECT_LIBS)
1.146 -
1.147 -dnl *** MythTV ***
1.148 -PKG_CHECK_MODULES(GMYTH,
1.149 - gmyth,
1.150 - HAVE_GMYTH=yes, HAVE_GMYTH=no)
1.151 -
1.152 -# Give error and exit if we don't have gobject
1.153 -if test "x$HAVE_GMYTH" = "xno"; then
1.154 - AC_MSG_ERROR(you need gmyth must to be installed)
1.155 -fi
1.156 -
1.157 -# make GMYTH_CFLAGS and GMYTH_LIBS available
1.158 -AC_SUBST(GMYTH_CFLAGS)
1.159 -AC_SUBST(GMYTH_LIBS)
1.160 -
1.161 -# GStreamer version required
1.162 -GST_REQUIRED=0.10
1.163 +GST_REQUIRED=0.10.3
1.164 GST_MAJORMINOR=0.10
1.165
1.166 -GST_PLUGINS_DIR=`$PKG_CONFIG gstreamer-plugins-base-$GST_MAJORMINOR --variable pluginsdir`
1.167 -AC_SUBST(GST_PLUGINS_DIR)
1.168 -AC_MSG_NOTICE(Using GStreamer Base Plugins in $GST_PLUGINS_DIR)
1.169 -
1.170 -dnl this really should only contain flags, not libs - they get added before
1.171 -dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
1.172 -GST_PLUGIN_LDFLAGS="-module -avoid-version $GST_PLUGINS_DIR"
1.173 -AC_SUBST(GST_PLUGIN_LDFLAGS)
1.174 -
1.175 -# check for gstreamer development files
1.176 PKG_CHECK_MODULES(GST, \
1.177 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED,
1.178 - HAVE_GST=yes, HAVE_GST=no)
1.179 + HAVE_GST=yes,HAVE_GST=no)
1.180
1.181 -# Give error and exit if we don't have gstreamer
1.182 +dnl Give error and exit if we don't have gstreamer
1.183 if test "x$HAVE_GST" = "xno"; then
1.184 AC_MSG_ERROR(you need gstreamer development packages installed !)
1.185 fi
1.186
1.187 -# make GST_CFLAGS and GST_LIBS available
1.188 +if test "x$USE_DEBUG" = xyes; then
1.189 + GST_CFLAGS="$GST_CFLAGS -g"
1.190 +fi
1.191 +
1.192 +dnl added because of the i18n headers
1.193 +GST_CFLAGS="-I\$(top_builddir)/gst-libs $GST_CFLAGS"
1.194 +
1.195 +dnl make GST_CFLAGS and GST_LIBS available
1.196 AC_SUBST(GST_CFLAGS)
1.197 AC_SUBST(GST_LIBS)
1.198
1.199 -# check for gstreamer-base plugins (xoverlay interface)
1.200 -GST_BASE_REQUIRED=0.10
1.201 -GST_BASE_MAJORMINOR=0.10
1.202 -PKG_CHECK_MODULES(GST_BASE, \
1.203 - gstreamer-base-$GST_BASE_MAJORMINOR >= $GST_BASE_REQUIRED,
1.204 - HAVE_GST_BASE=yes, HAVE_GST_BASE=no)
1.205 +dnl make GST_MAJORMINOR available in Makefile.am
1.206 +AC_SUBST(GST_MAJORMINOR)
1.207
1.208 -# Give error and exit if we don't have gstreamer base libraries
1.209 +dnl check for gstreamer-base; uninstalled is selected preferentially
1.210 +PKG_CHECK_MODULES(GST_BASE, gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED,
1.211 + HAVE_GST_BASE="yes", HAVE_GST_BASE="no")
1.212 +
1.213 if test "x$HAVE_GST_BASE" = "xno"; then
1.214 - AC_MSG_ERROR(you need gstreamer base development packages installed !)
1.215 + AC_MSG_ERROR(no GStreamer Base Libs found)
1.216 fi
1.217
1.218 -# make GST_BASE_CFLAGS and GST_BASE_LIBS available
1.219 +AC_SUBST(GST_BASE_LIBS)
1.220 AC_SUBST(GST_BASE_CFLAGS)
1.221 -AC_SUBST(GST_BASE_LIBS)
1.222
1.223 -# make GST_MAJORMINOR available in Makefile.am
1.224 -AC_SUBST(GST_MAJORMINOR)
1.225 +dnl check for gstreamer-libs; uinstalled is selected preferentially
1.226 +PKG_CHECK_MODULES(GST_PLUGINS_BASE, gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED,
1.227 + HAVE_GST_PLUGINS="yes", HAVE_GST_PLUGINS="no")
1.228 +
1.229 +if test "x$HAVE_GST_PLUGINS" = "xno"; then
1.230 + AC_MSG_ERROR(no GStreamer Plugins Libs found)
1.231 +fi
1.232 +
1.233 +AC_SUBST(GST_PLUGINS_BASE_LIBS)
1.234 +AC_SUBST(GST_PLUGINS_BASE_CFLAGS)
1.235 +
1.236 +PKG_CHECK_MODULES(GMYTH, gmyth >= 0.3, HAVE_GMYTH=yes,HAVE_GMYTH=no)
1.237 +if test "x$HAVE_GMYTH" = "xno"; then
1.238 + AC_MSG_ERROR(you need gmyth >= 0.3 installed)
1.239 +fi
1.240 +AC_SUBST(GMYTH_CFLAGS)
1.241 +AC_SUBST(GMYTH_LIBS)
1.242 +
1.243 +dnl set the plugindir where plugins should be installed
1.244 +plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
1.245 +AC_SUBST(plugindir)
1.246 +
1.247 +dnl set proper LDFLAGS for plugins
1.248 +GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).*'
1.249 +AC_SUBST(GST_PLUGIN_LDFLAGS)
1.250
1.251 AC_DEFINE(GST_LICENSE, "LGPL", [License for Distribution])
1.252 +AC_DEFINE(GST_PACKAGE_NAME, "INdT plugins to Gstreamer ", [package name])
1.253 +AC_DEFINE(GST_PACKAGE_ORIGIN, "https://svn.sourceforge.net/svnroot/gmyth/gst-gmyth", [Origin of this package] )
1.254
1.255 -AC_DEFINE(GST_PACKAGE_NAME, "GStreamer", [Gstremar package name])
1.256 +AC_OUTPUT( \
1.257 + Makefile \
1.258 + nuvdemux/Makefile \
1.259 + mythsrc/Makefile \
1.260 + concatmux/Makefile
1.261 +)
1.262
1.263 -AC_DEFINE(GST_PACKAGE_ORIGIN, "http://gstreamer.net/", [Origin of this package] )
1.264 -
1.265 -AC_CONFIG_FILES([
1.266 -Makefile
1.267 -mythtvsrc/Makefile
1.268 -nuvdemux/Makefile
1.269 -concatmux/Makefile
1.270 -])
1.271 -
1.272 -AC_OUTPUT