summaryrefslogtreecommitdiff
path: root/gst-plugin/configure.ac
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2003-02-06 22:45:31 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2003-02-06 22:45:31 +0000
commit66a454c3ae11f8ae4158fe5f914baca92bb0dc29 (patch)
tree76cfc12363e26c7bd97771821157e2fe6d7a6bc7 /gst-plugin/configure.ac
parent1106b5674dca39fef9aae89b7569b47e17e97cfe (diff)
update for 0.6.0
Original commit message from CVS: update for 0.6.0
Diffstat (limited to 'gst-plugin/configure.ac')
-rw-r--r--gst-plugin/configure.ac34
1 files changed, 27 insertions, 7 deletions
diff --git a/gst-plugin/configure.ac b/gst-plugin/configure.ac
index 0130e7e..26467d3 100644
--- a/gst-plugin/configure.ac
+++ b/gst-plugin/configure.ac
@@ -2,7 +2,7 @@ AC_INIT
dnl Fill in your package name and version here
PACKAGE=gst-plugin
-VERSION=0.1.0
+VERSION=0.1.1
dnl these AC_DEFINE_UNQUOTED's are necessary for make dist to work
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
@@ -27,26 +27,46 @@ fi
dnl Now we're ready to ask for gstreamer libs and cflags
dnl And we can also ask for the right version of gstreamer
-PKG_CHECK_MODULES(GST, gstreamer >= 0.4.0, HAVE_GST=yes, HAVE_GST=no)
-
+
+GST_REQUIRED=0.6.0
+
+dnl start with 0.6
+GST_MAJORMINOR=0.6
+PKG_CHECK_MODULES(GST, \
+ gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED \
+ gstreamer-control-$GST_MAJORMINOR >= $GST_REQUIRED,
+ HAVE_GST=yes,HAVE_GST=no)
+
+dnl fail back to 0.7
+if test "x$HAVE_GST" = "xno"; then
+ GST_MAJORMINOR=0.7
+ PKG_CHECK_MODULES(GST, \
+ gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED \
+ gstreamer-control-$GST_MAJORMINOR >= $GST_REQUIRED,
+ HAVE_GST=yes,HAVE_GST=no)
+fi
+
dnl Give error and exit if we don't have gstreamer
if test "x$HAVE_GST" = "xno"; then
AC_MSG_ERROR(you need gstreamer development packages installed !)
fi
-
+
dnl make GST_CFLAGS and GST_LIBS available
AC_SUBST(GST_CFLAGS)
AC_SUBST(GST_LIBS)
+
+dnl make GST_MAJORMINOR available in Makefile.am
+AC_SUBST(GST_MAJORMINOR)
dnl If we need them, we can also use the plugin libraries
-PKG_CHECK_MODULES(GST_LIBS, gstreamer-libs >= 0.4.0,
+PKG_CHECK_MODULES(GST_LIBS, gstreamer-libs-$GST_MAJORMINOR >= $GST_REQUIRED,
HAVE_GST_LIBS=yes, HAVE_GST_LIBS=no)
-
+
dnl Give a warning if we don't have gstreamer libs
if test "x$HAVE_GST_LIBS" = "xno"; then
AC_MSG_NOTICE(no GStreamer plugin libs found)
fi
-
+
dnl make GST_LIBS_CFLAGS and GST_LIBS_LIBS available
AC_SUBST(GST_LIBS_CFLAGS)
AC_SUBST(GST_LIBS_LIBS)