1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/gst-plugins-nuvdemux/configure.ac Tue Oct 24 20:05:07 2006 +0100
1.3 @@ -0,0 +1,126 @@
1.4 +dnl fill in your package name and version here
1.5 +dnl autoconf configuration files for gst-plugins-dspbin
1.6 +AC_INIT
1.7 +AC_CANONICAL_TARGET
1.8 +
1.9 +AC_CONFIG_MACRO_DIR([m4])
1.10 +dnl We disable static building for development, for time savings
1.11 +dnl this goes before AS_LIBTOOL to appease autoconf
1.12 +dnl *NOTE*: dnl this line before release, so release does static too
1.13 +AM_DISABLE_STATIC
1.14 +
1.15 +dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
1.16 +AM_MAINTAINER_MODE
1.17 +
1.18 +dnl when going to/from release please set the nano (fourth number) right !
1.19 +dnl releases only do Wall, cvs and prerelease does Werror too
1.20 +AS_VERSION(gst-plugins-nuvdemux, GST_PLUGINS_VERSION, 0, 10, 0, 1, GST_CVS="no", GST_CVS="yes")
1.21 +
1.22 +AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
1.23 +
1.24 +AM_PROG_LIBTOOL
1.25 +
1.26 +AM_CONFIG_HEADER(config.h)
1.27 +
1.28 +dnl make aclocal work in maintainer mode
1.29 +AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
1.30 +
1.31 +dnl check for tools
1.32 +AC_PROG_CC
1.33 +AC_PROG_CC_STDC
1.34 +AM_PROG_AS
1.35 +
1.36 +dnl decide on error flags
1.37 +AS_COMPILER_FLAG(-Wall, GST_WALL="yes", GST_WALL="no")
1.38 +
1.39 +if test "x$GST_WALL" = "xyes"; then
1.40 + ERROR_CFLAGS="$GST_ERROR -Wall"
1.41 +
1.42 + if test "x$GST_CVS" = "xyes"; then
1.43 + AS_COMPILER_FLAG(-Werror,ERROR_CFLAGS="$ERROR_CFLAGS -Werror",ERROR_CFLAGS="$ERROR_CFLAGS")
1.44 + fi
1.45 +fi
1.46 +
1.47 +AC_SUBST(ERROR_CFLAGS)
1.48 +
1.49 +dnl determine c++ compiler
1.50 +AC_PROG_CXX
1.51 +dnl determine if c++ is available on this system
1.52 +AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no)
1.53 +dnl determine c++ preprocessor
1.54 +AC_PROG_CXXCPP
1.55 +AC_ISC_POSIX
1.56 +
1.57 +AC_HEADER_STDC([])
1.58 +AC_C_INLINE
1.59 +
1.60 +dnl Check for pkgconfig first
1.61 +AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
1.62 +
1.63 +dnl Give error and exit if we don't have pkgconfig
1.64 +if test "x$HAVE_PKGCONFIG" = "xno"; then
1.65 + AC_MSG_ERROR(you need to have pkgconfig installed !)
1.66 +fi
1.67 +
1.68 +dnl Now we're ready to ask for gstreamer libs and cflags
1.69 +dnl And we can also ask for the right version of gstreamer
1.70 +
1.71 +GST_REQUIRED=0.10.3
1.72 +GST_MAJORMINOR=0.10
1.73 +
1.74 +PKG_CHECK_MODULES(GST, \
1.75 + gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED,
1.76 + HAVE_GST=yes,HAVE_GST=no)
1.77 +
1.78 +dnl Give error and exit if we don't have gstreamer
1.79 +if test "x$HAVE_GST" = "xno"; then
1.80 + AC_MSG_ERROR(you need gstreamer development packages installed !)
1.81 +fi
1.82 +
1.83 +if test "x$USE_DEBUG" = xyes; then
1.84 + GST_CFLAGS="$GST_CFLAGS -g"
1.85 +fi
1.86 +
1.87 +dnl make GST_CFLAGS and GST_LIBS available
1.88 +AC_SUBST(GST_CFLAGS)
1.89 +AC_SUBST(GST_LIBS)
1.90 +
1.91 +dnl make GST_MAJORMINOR available in Makefile.am
1.92 +AC_SUBST(GST_MAJORMINOR)
1.93 +
1.94 +dnl check for gstreamer-base; uninstalled is selected preferentially
1.95 +PKG_CHECK_MODULES(GST_BASE, gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED,
1.96 + HAVE_GST_BASE="yes", HAVE_GST_BASE="no")
1.97 +
1.98 +if test "x$HAVE_GST_BASE" = "xno"; then
1.99 + AC_MSG_ERROR(no GStreamer Base Libs found)
1.100 +fi
1.101 +
1.102 +AC_SUBST(GST_BASE_LIBS)
1.103 +AC_SUBST(GST_BASE_CFLAGS)
1.104 +
1.105 +dnl check for gstreamer-libs; uinstalled is selected preferentially
1.106 +PKG_CHECK_MODULES(GST_PLUGINS_BASE, gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED,
1.107 + HAVE_GST_PLUGINS="yes", HAVE_GST_PLUGINS="no")
1.108 +
1.109 +if test "x$HAVE_GST_PLUGINS" = "xno"; then
1.110 + AC_MSG_ERROR(no GStreamer Plugins Libs found)
1.111 +fi
1.112 +
1.113 +AC_SUBST(GST_PLUGINS_BASE_LIBS)
1.114 +AC_SUBST(GST_PLUGINS_BASE_CFLAGS)
1.115 +
1.116 +dnl set the plugindir where plugins should be installed
1.117 +plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
1.118 +AC_SUBST(plugindir)
1.119 +
1.120 +dnl set proper LDFLAGS for plugins
1.121 +GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).*'
1.122 +AC_SUBST(GST_PLUGIN_LDFLAGS)
1.123 +
1.124 +AC_OUTPUT( \
1.125 + Makefile \
1.126 + src/Makefile \
1.127 + m4/Makefile
1.128 +)
1.129 +