summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2012-11-07 20:35:50 +0000
committerJosep Torra <n770galaxy@gmail.com>2013-03-10 09:03:57 +0100
commitd2d3d5854082e5a3630ef041f0724029e420a223 (patch)
treea6bba59fc42a7f8e8cfe6b7cc3a57584be068048
parentb4ed433e145612547ff91dd14e5e87bca27d90fc (diff)
downloadgstreamer-plugins-good-d2d3d5854082e5a3630ef041f0724029e420a223.tar.gz
configure.ac: update courtesy of autoupdate
Conflicts: configure.ac
-rw-r--r--configure.ac28
1 files changed, 12 insertions, 16 deletions
diff --git a/configure.ac b/configure.ac
index f08085d2b..efd2c75da 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,13 +1,11 @@
-AC_PREREQ(2.60)
+AC_PREREQ([2.60])
dnl please read gstreamer/docs/random/autotools before changing this file
dnl initialize autoconf
dnl releases only do -Wall, git and prerelease does -Werror too
dnl use a three digit version number for releases, and four for git/pre
-AC_INIT(GStreamer Good Plug-ins, 0.10.31.1,
- http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer,
- gst-plugins-good)
+AC_INIT([GStreamer Good Plug-ins],[0.10.31.1],[http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer],[gst-plugins-good])
AG_GST_INIT
@@ -24,7 +22,7 @@ dnl can autoconf find the source ?
AC_CONFIG_SRCDIR([gst/law/alaw.c])
dnl define the output header for config
-AM_CONFIG_HEADER([config.h])
+AC_CONFIG_HEADERS([config.h])
dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
AM_MAINTAINER_MODE
@@ -521,7 +519,7 @@ dnl renamed to GST_V4L2 because of some conflict with kernel headers
translit(dnm, m, l) AM_CONDITIONAL(USE_GST_V4L2, true)
AG_GST_CHECK_FEATURE(GST_V4L2, [Video 4 Linux 2], v4l2src, [
AC_MSG_CHECKING([Checking for up to date v4l2 installation])
- AC_TRY_COMPILE([
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <sys/types.h>
#ifdef __sun /* Solaris */
#include <sys/types.h>
@@ -535,12 +533,12 @@ AG_GST_CHECK_FEATURE(GST_V4L2, [Video 4 Linux 2], v4l2src, [
#if defined(V4L2_MAJOR_VERSION) || defined(V4L2_MINOR_VERSION)
#error too early v4l2 version or no v4l2 at all
#endif
- ], [
+ ]], [[
return 0;
- ], [
+ ]])],[
HAVE_GST_V4L2="yes"
AC_MSG_RESULT(yes)
- ], [
+ ],[
HAVE_GST_V4L2="no"
AC_MSG_RESULT(no)
@@ -562,7 +560,7 @@ return 0;
dnl check for missing v4l2_buffer declaration (see #135919)
MISSING_DECL=0
AC_MSG_CHECKING(struct v4l2_buffer declaration)
- AC_TRY_COMPILE([
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <sys/types.h>
#ifdef __sun /* Solaris */
#include <sys/types.h>
@@ -573,11 +571,11 @@ return 0;
#define __user
#include <linux/videodev2.h>
#endif
- ],[
+ ]], [[
struct v4l2_buffer buf;
buf.index = 0;
return 0;
- ], [ AC_MSG_RESULT(yes) ], [ MISSING_DECL=1 && AC_MSG_RESULT(no) ])
+ ]])],[ AC_MSG_RESULT(yes) ],[ MISSING_DECL=1 && AC_MSG_RESULT(no) ])
if [ test x$MISSING_DECL = x1 ]; then
AC_DEFINE(GST_V4L2_MISSING_BUFDECL, 1, [struct v4l2_buffer missing])
fi
@@ -589,8 +587,7 @@ return 0;
# Optional gudev for device probing
AC_ARG_WITH([gudev],
- AC_HELP_STRING([--with-gudev],
- [device detection with gudev]),
+ AS_HELP_STRING([--with-gudev],[device detection with gudev]),
[],
[with_gudev=check])
if test x$HAVE_GST_V4L2 = xyes; then
@@ -612,8 +609,7 @@ AC_SUBST(GUDEV_LIBS)
# Make libv4l2 non-automagic
AC_ARG_WITH([libv4l2],
- AC_HELP_STRING([--with-libv4l2],
- [support video buffer conversion using libv4l2]),
+ AS_HELP_STRING([--with-libv4l2],[support video buffer conversion using libv4l2]),
[],
[with_libv4l2=check])
if test x$HAVE_GST_V4L2 = xyes; then