2002-03-24 04:32:10 +00:00
|
|
|
-*- mode: m4 -*-
|
2003-10-09 19:59:23 +00:00
|
|
|
AC_PREREQ(2.57)
|
2004-03-05 10:46:24 +00:00
|
|
|
|
2003-06-11 20:32:29 +00:00
|
|
|
AC_INIT
|
|
|
|
AC_CANONICAL_TARGET
|
2002-03-24 04:32:10 +00:00
|
|
|
|
2004-06-21 09:52:03 +00:00
|
|
|
dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
|
|
|
dnl when going to/from release please set the nano (fourth number) right !
|
2004-10-11 16:01:45 +00:00
|
|
|
AS_VERSION(gst-python, PYGST_VERSION, 0, 7, 93, 0, GST_CVS="no", GST_CVS="yes")
|
2004-03-05 10:46:24 +00:00
|
|
|
|
2004-06-21 09:52:03 +00:00
|
|
|
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
|
2004-03-05 10:46:24 +00:00
|
|
|
|
2004-06-21 09:52:03 +00:00
|
|
|
AC_DEFINE_UNQUOTED(PYGST_MAJOR_VERSION, $PYGST_VERSION_MAJOR, [PyGst major version])
|
|
|
|
AC_DEFINE_UNQUOTED(PYGST_MINOR_VERSION, $PYGST_VERSION_MINOR, [PyGst minor version])
|
|
|
|
AC_DEFINE_UNQUOTED(PYGST_MICRO_VERSION, $PYGST_VERSION_MICRO, [PyGst macro version])
|
2002-03-24 04:32:10 +00:00
|
|
|
|
2004-03-04 11:32:46 +00:00
|
|
|
AC_CONFIG_SRCDIR([gst/gstmodule.c])
|
2002-03-24 04:32:10 +00:00
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
|
2003-06-11 20:32:29 +00:00
|
|
|
dnl Add parameters for aclocal
|
|
|
|
ACLOCAL="$ACLOCAL -I common/m4 $ACLOCAL_FLAGS"
|
2002-03-24 04:32:10 +00:00
|
|
|
|
2003-06-11 20:32:29 +00:00
|
|
|
dnl required versions of other packages
|
2004-10-11 08:45:04 +00:00
|
|
|
AC_SUBST(PYGTK_REQ, 2.4.0)
|
2003-06-11 20:32:29 +00:00
|
|
|
AC_SUBST(GLIB_REQ, 2.0.0)
|
|
|
|
AC_SUBST(GTK_REQ, 2.0.0)
|
2004-03-16 18:57:10 +00:00
|
|
|
AC_SUBST(GST_REQ, 0.8.0)
|
2002-03-24 04:32:10 +00:00
|
|
|
|
|
|
|
AC_DISABLE_STATIC
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
|
|
|
|
dnl check for python
|
|
|
|
dnl AM_PATH_PYTHON(2.2)
|
|
|
|
AM_PATH_PYTHON
|
2004-08-03 17:07:38 +00:00
|
|
|
AC_MSG_CHECKING(for python >= 2.3)
|
2002-03-24 04:32:10 +00:00
|
|
|
prog="
|
|
|
|
import sys, string
|
2004-08-03 17:07:38 +00:00
|
|
|
minver = (2,3,0,'final',0)
|
2002-03-24 04:32:10 +00:00
|
|
|
if sys.version_info < minver:
|
|
|
|
sys.exit(1)
|
|
|
|
sys.exit(0)"
|
2003-06-11 20:32:29 +00:00
|
|
|
|
2002-03-24 04:32:10 +00:00
|
|
|
if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC
|
|
|
|
then
|
|
|
|
AC_MSG_RESULT(okay)
|
|
|
|
else
|
|
|
|
AC_MSG_ERROR(too old)
|
|
|
|
fi
|
|
|
|
AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
|
|
|
|
|
Mass change to support compiling for both 0.6 and 0.7. Common support is now in common.{defs,override,c,h}. Specifi...
Original commit message from CVS:
Mass change to support compiling for both 0.6 and 0.7. Common support is now
in common.{defs,override,c,h}. Specific version support is in
{0.6,0.7}.{defs,override,c,h}. The common and version specific files are
merged and/or used as needed.
common.override: add gst_version
2003-10-10 04:21:21 +00:00
|
|
|
dnl check for GStreamer
|
2004-03-12 10:12:08 +00:00
|
|
|
GST_MAJORMINOR=0.8
|
2004-03-18 15:44:52 +00:00
|
|
|
AC_SUBST(GST_MAJORMINOR)
|
2004-03-16 18:57:10 +00:00
|
|
|
PKG_CHECK_MODULES(GST, gstreamer-$GST_MAJORMINOR >= $GST_REQ)
|
2004-03-12 16:08:48 +00:00
|
|
|
AC_SUBST(GST_CFLAGS)
|
2004-03-12 16:13:09 +00:00
|
|
|
AC_SUBST(GST_LIBS)
|
2003-06-11 20:32:29 +00:00
|
|
|
|
2002-03-24 04:32:10 +00:00
|
|
|
dnl check for pygtk
|
2003-06-11 20:32:29 +00:00
|
|
|
PKG_CHECK_MODULES(PYGTK, pygtk-2.0 >= $PYGTK_REQ)
|
2004-03-12 16:08:48 +00:00
|
|
|
AC_SUBST(PYGTK_CFLAGS)
|
2002-03-24 04:32:10 +00:00
|
|
|
|
|
|
|
AC_MSG_CHECKING(for pygtk defs)
|
|
|
|
PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
|
|
|
|
AC_SUBST(PYGTK_DEFSDIR)
|
|
|
|
AC_MSG_RESULT($PYGTK_DEFSDIR)
|
|
|
|
|
2002-06-17 02:01:54 +00:00
|
|
|
AC_MSG_CHECKING(for pygtk h2def)
|
2004-03-05 10:46:24 +00:00
|
|
|
PYGTK_H2DEF=`$PKG_CONFIG --variable=codegendir pygtk-2.0`/h2def.py
|
2002-06-17 02:01:54 +00:00
|
|
|
AC_SUBST(PYGTK_H2DEF)
|
|
|
|
AC_MSG_RESULT($PYGTK_H2DEF)
|
|
|
|
|
2004-08-03 17:07:38 +00:00
|
|
|
AC_MSG_CHECKING(for pygtk codegen)
|
|
|
|
PYGTK_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygtk-2.0`/codegen.py"
|
|
|
|
dnl PYGTK_CODEGEN="$PYTHON \$(top_srcdir)/codegen/codegen.py"
|
2004-04-16 16:53:29 +00:00
|
|
|
AC_SUBST(PYGTK_CODEGEN)
|
2004-08-03 17:07:38 +00:00
|
|
|
AC_MSG_RESULT($PYGTK_CODEGEN)
|
2004-03-05 10:46:24 +00:00
|
|
|
|
2004-05-03 09:10:26 +00:00
|
|
|
dnl Interfaces
|
2004-02-27 18:32:20 +00:00
|
|
|
AC_MSG_CHECKING(for GStreamer interfaces include dir)
|
2004-03-16 18:57:10 +00:00
|
|
|
PKG_CHECK_MODULES(GST_INTERFACES, gstreamer-interfaces-$GST_MAJORMINOR,
|
|
|
|
HAVE_INTERFACES=yes,HAVE_INTERFACES=no)
|
|
|
|
AM_CONDITIONAL(BUILD_INTERFACES, test "x$HAVE_INTERFACES" = "xyes")
|
2004-03-16 18:42:00 +00:00
|
|
|
AC_SUBST(GST_INTERFACES_CFLAGS)
|
2004-03-18 18:00:22 +00:00
|
|
|
AC_SUBST(GST_INTERFACES_LIBS)
|
2004-02-27 18:32:20 +00:00
|
|
|
|
2004-05-03 09:10:26 +00:00
|
|
|
dnl Play
|
2004-02-27 18:32:20 +00:00
|
|
|
AC_MSG_CHECKING(for GStreamer play include dir)
|
2004-03-16 18:57:10 +00:00
|
|
|
PKG_CHECK_MODULES(GST_PLAY, gstreamer-play-$GST_MAJORMINOR,
|
|
|
|
HAVE_PLAY=yes,HAVE_PLAY=no)
|
|
|
|
AM_CONDITIONAL(BUILD_PLAY, test "x$HAVE_PLAY" = "xyes")
|
2004-03-16 18:42:00 +00:00
|
|
|
AC_SUBST(GST_PLAY_CFLAGS)
|
2004-03-18 18:08:35 +00:00
|
|
|
AC_SUBST(GST_PLAY_LIBS)
|
2003-07-09 23:22:13 +00:00
|
|
|
|
2004-05-03 09:10:26 +00:00
|
|
|
dnl Editor
|
2004-05-03 10:46:49 +00:00
|
|
|
dnl AC_MSG_CHECKING(for GStreamer editor include dir)
|
|
|
|
dnl PKG_CHECK_MODULES(GST_EDITOR, gst-editor-libs >= 0.7.0,
|
|
|
|
dnl HAVE_EDITOR=yes,HAVE_EDITOR=no)
|
|
|
|
dnl AM_CONDITIONAL(BUILD_EDITOR, test "x$HAVE_EDITOR" = "xyes")
|
|
|
|
dnl AC_SUBST(GST_EDITOR_CFLAGS)
|
|
|
|
dnl AC_SUBST(GST_EDITOR_LIBS)
|
2004-05-03 09:10:26 +00:00
|
|
|
|
2004-07-03 04:13:22 +00:00
|
|
|
BUILD_DOCS=yes
|
|
|
|
AC_CHECK_PROG(XMLTO, xmlto, xmlto, no)
|
|
|
|
if test "x$XMLTO" = xno ; then
|
|
|
|
BUILD_DOCS=no
|
|
|
|
fi
|
|
|
|
AC_SUBST(XMLTO)
|
|
|
|
AC_CHECK_PROG(XMLCATALOG, xmlcatalog, xmlcatalog, no)
|
|
|
|
if test "x$XMLCATALOG" = xno ; then
|
|
|
|
BUILD_DOCS=no
|
|
|
|
fi
|
|
|
|
AC_SUBST(XMLCATALOG)
|
|
|
|
AC_CHECK_PROG(XMLLINT, xmllint, xmllint, no)
|
|
|
|
if test "x$XMLLINT" = xno ; then
|
|
|
|
BUILD_DOCS=no
|
|
|
|
fi
|
|
|
|
AC_SUBST(XMLLINT)
|
2003-07-09 23:22:13 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(docs,
|
|
|
|
AC_HELP_STRING([--enable-docs],[enable building of documentation]),
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes)
|
2004-07-03 04:13:22 +00:00
|
|
|
if test "x$XMLTO" = "xno" ; then
|
2003-07-09 23:22:13 +00:00
|
|
|
AC_MSG_ERROR([you don't have xmlto, so don't use --enable-docs])
|
|
|
|
BUILD_DOCS=no
|
|
|
|
fi
|
2004-07-03 04:13:22 +00:00
|
|
|
if test "x$XMLCATALOG" = "xno" ; then
|
2003-07-09 23:22:13 +00:00
|
|
|
AC_MSG_ERROR([you don't have xmlcatalog, so don't use --enable-docs])
|
|
|
|
BUILD_DOCS=no
|
2004-07-03 04:13:22 +00:00
|
|
|
fi
|
|
|
|
if test "x$XMLLINT" = "xno" ; then
|
|
|
|
AC_MSG_ERROR([you don't have xmllint, so don't use --enable-docs])
|
|
|
|
BUILD_DOCS=no
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
no)
|
|
|
|
BUILD_DOCS=no
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
AC_MSG_ERROR(bad value ${enableval} for --enable-docs)
|
|
|
|
;;
|
|
|
|
esac])
|
2003-07-09 23:22:13 +00:00
|
|
|
|
|
|
|
AM_CONDITIONAL(BUILD_DOCS, test "x$BUILD_DOCS" = "xyes")
|
|
|
|
|
|
|
|
|
2002-03-24 04:32:10 +00:00
|
|
|
dnl add debugging options ...
|
|
|
|
changequote(,)dnl
|
|
|
|
if test "x$GCC" = xyes; then
|
|
|
|
case " $CFLAGS " in
|
|
|
|
*[\ \ ]-Wall[\ \ ]*) ;;
|
|
|
|
*) CFLAGS="$CFLAGS -Wall" ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
case " $CFLAGS " in
|
|
|
|
*[\ \ ]-std=c9x[\ \ ]*) ;;
|
|
|
|
*) CFLAGS="$CFLAGS -std=c9x" ;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
changequote([,])dnl
|
2003-06-11 20:32:29 +00:00
|
|
|
|
|
|
|
AC_OUTPUT([
|
2002-03-24 04:32:10 +00:00
|
|
|
Makefile
|
2004-03-04 11:32:46 +00:00
|
|
|
gst/Makefile
|
2003-06-26 07:40:13 +00:00
|
|
|
pkgconfig/Makefile
|
|
|
|
pkgconfig/gst-python.pc
|
|
|
|
pkgconfig/gst-python-uninstalled.pc
|
2003-06-26 08:06:36 +00:00
|
|
|
docs/Makefile
|
2003-07-09 23:22:13 +00:00
|
|
|
docs/gst-python.ent
|
2003-10-04 13:37:45 +00:00
|
|
|
testsuite/Makefile
|
2003-06-11 20:32:29 +00:00
|
|
|
gst-python.spec
|
|
|
|
])
|