mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-02 16:52:42 +00:00
69 lines
1.6 KiB
Text
69 lines
1.6 KiB
Text
AC_PREREQ(2.60)
|
|
|
|
dnl initialize autoconf
|
|
dnl when going to/from release please set the nano (fourth number) right !
|
|
dnl releases only do Wall, cvs and prerelease does Werror too
|
|
AC_INIT(GStreamer GObject Introspectin tests for Python , 0.11.92,
|
|
http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer,
|
|
gst-python)
|
|
|
|
dnl initialize automake
|
|
AM_INIT_AUTOMAKE([-Wno-portability 1.10])
|
|
|
|
dnl define PACKAGE_VERSION_* variables
|
|
AS_VERSION
|
|
|
|
dnl check if this is a release version
|
|
AS_NANO(GST_CVS="no", GST_CVS="yes")
|
|
|
|
dnl can autoconf find the source ?
|
|
AC_CONFIG_SRCDIR([testsuite/common.py])
|
|
|
|
dnl define the output header for config
|
|
AM_CONFIG_HEADER([config.h])
|
|
|
|
dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
|
|
AM_MAINTAINER_MODE
|
|
|
|
dnl use pretty build output with automake >= 1.11
|
|
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])],
|
|
[AM_DEFAULT_VERBOSITY=1
|
|
AC_SUBST(AM_DEFAULT_VERBOSITY)])
|
|
|
|
dnl Add parameters for aclocal
|
|
AC_SUBST(ACLOCAL_AMFLAGS, "-I m4 -I common/m4")
|
|
|
|
dnl required versions of other packages
|
|
dnl Note that they are runtime requirements
|
|
AC_SUBST(GST_REQ, 0.11.92)
|
|
AC_SUBST(GSTPB_REQ, 0.11.92)
|
|
|
|
dnl check for python
|
|
dnl AM_PATH_PYTHON(2.2)
|
|
AM_PATH_PYTHON
|
|
AC_MSG_CHECKING(for python >= 2.5)
|
|
prog="
|
|
import sys, string
|
|
minver = (2,5,0,'final',0)
|
|
if sys.version_info < minver:
|
|
sys.exit(1)
|
|
sys.exit(0)"
|
|
|
|
if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC
|
|
then
|
|
AC_MSG_RESULT(okay)
|
|
else
|
|
AC_MSG_ERROR(too old)
|
|
fi
|
|
|
|
AG_GST_VALGRIND_CHECK
|
|
|
|
dnl set release date/time
|
|
|
|
AC_OUTPUT([
|
|
Makefile
|
|
common/Makefile
|
|
common/m4/Makefile
|
|
examples/Makefile
|
|
testsuite/Makefile
|
|
])
|