mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 02:45:35 +00:00
merged back from build branch let's hope you all agree
Original commit message from CVS: merged back from build branch let's hope you all agree
This commit is contained in:
parent
6fee15adad
commit
40e6dccb43
26 changed files with 875 additions and 269 deletions
|
@ -1,3 +1,8 @@
|
|||
2001-12-15 Thomas Vander Stichele <thomas@apestaart.org>
|
||||
|
||||
* configure.ac : major overhaul
|
||||
* m4/ dir added with lots of checks in it
|
||||
|
||||
2001-12-14 Michael Meeks <michael@ximian.com>
|
||||
|
||||
* gst/gst.c (gst_main, gst_main_quit): upd.
|
||||
|
@ -113,6 +118,7 @@
|
|||
|
||||
* lots of build fixes for 0.3.0 release
|
||||
|
||||
>>>>>>> 1.3.2.2
|
||||
2001-08-15 23:43 cael
|
||||
|
||||
* gstplay/: ChangeLog, gstmediaplay.c, gstplay.c: Added hacky check
|
||||
|
|
12
Makefile.am
12
Makefile.am
|
@ -1,18 +1,20 @@
|
|||
PACKAGE = @PACKAGE@
|
||||
VERSION = @VERSION@
|
||||
|
||||
# if libglade is present, build the player and editor
|
||||
# if libglade and gnome1 are present, build the player and editor
|
||||
# if libglade and gnome2, only the player
|
||||
# otherwise none
|
||||
|
||||
if HAVE_LIBGLADE_GNOME
|
||||
if HAVE_GNOME
|
||||
SUBDIRS_LGG = gstplay editor
|
||||
SUBDIRS_LGG = gstplay editor
|
||||
else
|
||||
# Gnome 2.0 ...
|
||||
SUBDIRS_LGG = gstplay
|
||||
SUBDIRS_LGG = gstplay
|
||||
endif
|
||||
else
|
||||
SUBDIRS_LGG =
|
||||
endif
|
||||
|
||||
|
||||
if BUILD_DOCS
|
||||
SUBDIRS_DOCS = docs
|
||||
else
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#undef HAVE_XAUDIO
|
||||
#undef HAVE_LIBDVDREAD
|
||||
#undef HAVE_VORBIS
|
||||
#undef HAVE_AALIB
|
||||
#undef HAVE_LIBMAD
|
||||
#undef HAVE_LIBMIKMOD
|
||||
#undef HAVE_LIBJPEG
|
||||
|
|
483
configure.ac
483
configure.ac
|
@ -8,9 +8,11 @@ AM_CONFIG_HEADER(config.h)
|
|||
|
||||
GST_VERSION_MAJOR=0
|
||||
GST_VERSION_MINOR=3
|
||||
GST_VERSION_MICRO=0
|
||||
GST_VERSION_MICRO=01
|
||||
|
||||
dnl we use the release tag during CVS development
|
||||
GST_VERSION_RELEASE=`date +%Y%m%d`
|
||||
|
||||
GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_MICRO
|
||||
|
||||
PACKAGE=gstreamer
|
||||
|
@ -48,7 +50,6 @@ AM_MAINTAINER_MODE
|
|||
|
||||
AC_PROG_CC
|
||||
AM_PROG_CC_STDC
|
||||
dnl you need automake 1.5 for AM_PROG_AS to work !
|
||||
AM_PROG_AS
|
||||
AS="${CC}"
|
||||
AC_PROG_CXX
|
||||
|
@ -67,6 +68,55 @@ dnl This is used for the -config script...
|
|||
builddir=`pwd`
|
||||
AC_SUBST(builddir)
|
||||
|
||||
|
||||
dnl ###########################################
|
||||
dnl # Super Duper options for plugin building #
|
||||
dnl ###########################################
|
||||
|
||||
dnl experimental plugins; stuff that hasn't had the dust settle yet
|
||||
AC_ARG_ENABLE(experimental,
|
||||
[ --enable-experimental enable building of experimental plugins],
|
||||
[case "${enableval}" in
|
||||
yes) EXPERIMENTAL="yes" ;;
|
||||
no) EXPERIMENTAL="no" ;;
|
||||
esac],
|
||||
[EXPERIMENTAL=no]) dnl Default value
|
||||
|
||||
if test "x$EXPERIMENTAL" = "$xyes"; then
|
||||
AC_MSG_WARN(building experimental plugins)
|
||||
USE_FLACLIB="yes"
|
||||
else
|
||||
AC_MSG_NOTICE(not building experimental plugins)
|
||||
USE_FLACLIB="no"
|
||||
fi
|
||||
|
||||
dnl broken plugins; stuff that doesn't seem to build at the moment
|
||||
AC_ARG_ENABLE(broken,
|
||||
[ --enable-broken enable building of broken plugins],
|
||||
[case "${enableval}" in
|
||||
yes) BROKEN="yes" ;;
|
||||
no) BROKEN="no" ;;
|
||||
esac],
|
||||
[BROKEN=no]) dnl Default value
|
||||
|
||||
if test "x$broken-plugins" = "$xyes"; then
|
||||
AC_MSG_WARN(building broken plugins)
|
||||
USE_ARTS="yes"
|
||||
USE_ARTSC="yes"
|
||||
USE_LIBGSM="yes"
|
||||
USE_FLACLIB="yes"
|
||||
USE_LIBAVIFILE="yes"
|
||||
else
|
||||
AC_MSG_NOTICE(not building broken plugins)
|
||||
USE_ARTS="no"
|
||||
USE_ARTSC="no"
|
||||
USE_LIBGSM="no"
|
||||
USE_FLACLIB="no"
|
||||
USE_LIBAVIFILE="no"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
dnl ##############################
|
||||
dnl # Do automated configuration #
|
||||
dnl ##############################
|
||||
|
@ -86,7 +136,7 @@ else
|
|||
fi
|
||||
|
||||
dnl fix pkg-config's broken default search path
|
||||
if test -z "$PKG_CONFIG_PATH"; then
|
||||
if test -z $PKG_CONFIG_PATH; then
|
||||
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
|
||||
fi
|
||||
export PKG_CONFIG_PATH
|
||||
|
@ -292,12 +342,18 @@ fi
|
|||
AC_SUBST(LIBXML_PKG)
|
||||
|
||||
dnl Check for libxml
|
||||
AC_PATH_PROG(XML_CONFIG, xml-config, no)
|
||||
dnl Thomas tries to convert this to pkg-config
|
||||
PKG_CHECK_MODULES(XML, $LIBXML_PKG, XML_CONFIG=yes, XML_CONFIG=no)
|
||||
dnl PKG_CHECK_MODULES(XML, $LIBXML_PKG, XML_CONFIG=yes, XML_CONFIG=no)
|
||||
dnl AC_PATH_PROG(XML_CONFIG, xml-config, no)
|
||||
if test x$XML_CONFIG = xno; then
|
||||
AC_MSG_ERROR(Couldn't find $LIBXML_PKG)
|
||||
fi
|
||||
XML_LIBS="`xml-config --libs`"
|
||||
XML_CFLAGS="`xml-config --cflags`"
|
||||
AC_CHECK_LIB(xml, xmlDocGetRootElement, :,
|
||||
[ AC_MSG_ERROR(Need version 1.8.1 or better of libxml) ],
|
||||
$XML_LIBS)
|
||||
AC_SUBST(XML_LIBS)
|
||||
AC_SUBST(XML_CFLAGS)
|
||||
|
||||
|
@ -359,51 +415,196 @@ dnl ==========================================================================
|
|||
|
||||
|
||||
dnl Next, check for the optional libraries:
|
||||
dnl =======================================
|
||||
dnl These are all libraries used in building plugins
|
||||
dnl ================================================
|
||||
dnl let's try and sort them alphabetically, shall we ?
|
||||
|
||||
echo
|
||||
echo
|
||||
AC_MSG_NOTICE(Checking for plugin libraries)
|
||||
|
||||
dnl ***** ESound *****
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_LIBESD, true)
|
||||
GST_CHECK_FEATURE(LIBESD, [esound plugins], esdsrc esdsink, [
|
||||
AM_PATH_ESD(0.2.12, HAVE_LIBESD=yes, HAVE_LIBESD=no)
|
||||
dnl *** a52dec ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_A52DEC, true)
|
||||
GST_CHECK_FEATURE(A52DEC, [a52dec], a52dec, [
|
||||
GST_CHECK_LIBHEADER(A52DEC, a52, a52_init,-lm, a52dec/a52.h, A52DEC_LIBS="-la52")
|
||||
])
|
||||
|
||||
dnl Check for artsc
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_ARTSC, true)
|
||||
GST_CHECK_FEATURE(ARTSC, [artsd plugins], artsdsink, [GST_CHECK_ARTSC()])
|
||||
dnl *** aalib ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_AALIB, true)
|
||||
GST_CHECK_FEATURE(AALIB, [aasink plugin], aasink, [
|
||||
AM_PATH_AALIB(, HAVE_AALIB=yes, HAVE_AALIB=no)
|
||||
])
|
||||
|
||||
dnl Check for arts
|
||||
dnl FIXME: thomasvs: I don't understand this, have replaced the check
|
||||
dnl translit(dnm, m, l) AM_CONDITIONAL(USE_ARTS, true)
|
||||
dnl GST_CHECK_FEATURE(ARTS, [arts plugins], arts, [GST_CHECK_ARTS()])
|
||||
|
||||
dnl Check for alsa
|
||||
dnl *** alsa ***
|
||||
dnl FIXME: check if the version should be 0.9.0 or 0.5.0
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_ALSA, true)
|
||||
GST_CHECK_FEATURE(ALSA, [alsa plugins], gstalsa, [
|
||||
AM_PATH_ALSA(0.9.0, HAVE_ALSA=yes, HAVE_ALSA=no)
|
||||
AM_PATH_ALSA(0.5.0, HAVE_ALSA=yes, HAVE_ALSA=no)
|
||||
])
|
||||
if test x$HAVE_ALSA = xno; then
|
||||
unset USE_ALSA
|
||||
ALSA_CFLAGS=
|
||||
ALSA_LIBS=
|
||||
fi
|
||||
|
||||
dnl Check for libaudiofile
|
||||
dnl *** arts ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_ARTS, true)
|
||||
GST_CHECK_FEATURE(ARTS, [arts plugins], arts, [GST_CHECK_ARTS()])
|
||||
|
||||
dnl *** artsc ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_ARTSC, true)
|
||||
GST_CHECK_FEATURE(ARTSC, [artsd plugins], artsdsink, [GST_CHECK_ARTSC()],
|
||||
)
|
||||
|
||||
dnl *** audiofile ***
|
||||
dnl this check uses the GST_CHECK_CONFIGPROG macro
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_LIBAUDIOFILE, true)
|
||||
GST_CHECK_FEATURE(LIBAUDIOFILE, [use gdk pixbuf], afsink afsrc, [
|
||||
GST_CHECK_FEATURE(LIBAUDIOFILE, [audiofile], afsink afsrc, [
|
||||
translit(dnm, m, l) AC_SUBST(LIBAUDIOFILE_LIBS)
|
||||
translit(dnm, m, l) AC_SUBST(LIBAUDIOFILE_CFLAGS)
|
||||
GST_CHECK_CONFIGPROG(LIBAUDIOFILE, audiofile-config)
|
||||
])
|
||||
|
||||
dnl *** avifile ***
|
||||
dnl this check uses the GST_CHECK_CONFIGPROG macro
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_AVIFILE, true)
|
||||
GST_CHECK_FEATURE(AVIFILE, [avifile], windec winenc, [
|
||||
translit(dnm, m, l) AC_SUBST(AVIFILE_LIBS)
|
||||
translit(dnm, m, l) AC_SUBST(AVIFILE_CFLAGS)
|
||||
GST_CHECK_CONFIGPROG(AVIFILE, avifile-config)
|
||||
])
|
||||
|
||||
dnl *** dvdread ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_LIBDVDREAD, true)
|
||||
GST_CHECK_FEATURE(LIBDVDREAD, [dvdread library], libdvdread, [
|
||||
GST_CHECK_LIBHEADER(LIBDVDREAD, dvdread, DVDOpen, , dvdread/dvd_reader.h, LIBDVDREAD_LIBS="-ldvdread")
|
||||
])
|
||||
|
||||
dnl **** ESound ****
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_LIBESD, true)
|
||||
GST_CHECK_FEATURE(LIBESD, [esound plugins], esdsrc esdsink, [
|
||||
AM_PATH_ESD(0.2.12, HAVE_LIBESD=yes, HAVE_LIBESD=no)
|
||||
])
|
||||
|
||||
dnl *** FLAC ***
|
||||
dnl dnl thomas : checking for compile with main instead of actual function,
|
||||
dnl dnl since that made autoconf break (for version 2.13)
|
||||
dnl translit(dnm, m, l) AM_CONDITIONAL(USE_LIBFLAC, true)
|
||||
dnl GST_CHECK_FEATURE(FLACLIB, [FLAC lossless audio], flacenc flacdec, [
|
||||
dnl GST_CHECK_LIBHEADER(FLACLIB, FLAC, main, -lm, FLAC/all.h, LIBFLAC_LIBS="-lFLAC")
|
||||
dnl ])
|
||||
dnl
|
||||
dnl *** Gnome VFS ***
|
||||
dnl this check uses the GST_CHECK_CONFIGPROG macro with gnome-config vfs
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_GNOME_VFS, true)
|
||||
GST_CHECK_FEATURE(GNOME_VFS, [Gnome VFS], gnomevfssrc, [
|
||||
translit(dnm, m, l) AC_SUBST(GNOME_VFS_LIBS)
|
||||
translit(dnm, m, l) AC_SUBST(GNOME_VFS_CFLAGS)
|
||||
GST_CHECK_CONFIGPROG(GNOME_VFS, gnome-config vfs)
|
||||
])
|
||||
|
||||
dnl *** gsm ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_LIBGSM, true)
|
||||
GST_CHECK_FEATURE(LIBGSM, [GSM library], gsmenc gsmdec, [
|
||||
GST_CHECK_LIBHEADER(LIBGSM, gsm, gsm_create, , gsm/gsm.h, LIBGSM_LIBS="-lgsm" && LIBGSM_CFLAGS="-DGSM_HEADER_IN_SUBDIR")
|
||||
])
|
||||
|
||||
dnl *** Hermes ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_LIBHERMES, true)
|
||||
GST_CHECK_FEATURE(LIBHERMES, [Hermes library], colorspace, [
|
||||
GST_CHECK_LIBHEADER(LIBHERMES, Hermes, Hermes_ConverterInstance, , Hermes/Hermes.h, LIBHERMES_LIBS="-lHermes")
|
||||
], AC_SUBST(LIBHERMES_LIBS))
|
||||
|
||||
dnl *** lame ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_LIBLAME, true)
|
||||
GST_CHECK_FEATURE(LIBLAME, [lame mp3 encoder library], lame, [
|
||||
GST_CHECK_LIBHEADER(LIBLAME, mp3lame, lame_init, -lm, lame/lame.h, LIBLAME_LIBS="-lmp3lame")
|
||||
])
|
||||
|
||||
dnl AC_SUBST(HAVE_LIBLAME)
|
||||
|
||||
dnl *** libdv ***
|
||||
dnl FIXME : check if those GLIB thingies are ok
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_LIBDV, true)
|
||||
GST_CHECK_FEATURE(LIBDV, [dv library], dv, [
|
||||
GST_CHECK_LIBHEADER(LIBDV, dv, dv_init, -lm $GLIB_LIBS $GLIB_CFLAGS, libdv/dv.h, LIBDV_LIBS="-ldv")
|
||||
])
|
||||
dnl FIXME : check if these CPP flags can be dealt with otherwise
|
||||
dnl libdvcheck_save_CPPFLAGS="$CPPFLAGS"
|
||||
dnl CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"
|
||||
dnl AC_CHECK_HEADER(libdv/dv.h, :, HAVE_LIBDV=no)
|
||||
dnl CPPFLAGS="$libdvcheck_save_CPPFLAGS"
|
||||
|
||||
dnl *** libjpeg ***
|
||||
dnl FIXME: we could use header checks here as well IMO
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_LIBJPEG, true)
|
||||
GST_CHECK_FEATURE(LIBJPEG, [libjpeg], jpegenc jpegdec, [
|
||||
AC_CHECK_LIB(jpeg, jpeg_set_defaults, HAVE_LIBJPEG="yes", HAVE_LIBJPEG="no")
|
||||
])
|
||||
|
||||
dnl *** mad ***
|
||||
dnl FIXME: we could use header checks here as well IMO
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_LIBMAD, true)
|
||||
GST_CHECK_FEATURE(LIBMAD, [mad], mad, [
|
||||
AC_CHECK_LIB(mad, mad_decoder_finish, HAVE_LIBMAD="yes")
|
||||
])
|
||||
|
||||
dnl *** mikmod ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_LIBMIKMOD, true)
|
||||
GST_CHECK_FEATURE(LIBMIKMOD, [mikmod plugin], mikmod, [
|
||||
AM_PATH_LIBMIKMOD(, HAVE_LIBMIKMOD=yes, HAVE_LIBMIKMOD=no)
|
||||
])
|
||||
|
||||
dnl *** mpeg2dec ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_MPEG2DEC, true)
|
||||
GST_CHECK_FEATURE(MPEG2DEC, [mpeg2dec], mpeg2dec, [
|
||||
GST_CHECK_LIBHEADER(MPEG2DEC, mpeg2, mpeg2_init,, mpeg2dec/mpeg2.h, MPEG2DEC_LIBS="-lmpeg2")
|
||||
])
|
||||
|
||||
dnl *** quicktime ***
|
||||
dnl FIXME: make this be called openquicktime
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_QUICKTIME, true)
|
||||
GST_CHECK_FEATURE(QUICKTIME, [Open Quicktime], quicktime_parser quicktime_decoder quicktime_demux,[
|
||||
GST_CHECK_LIBHEADER(QUICKTIME, openquicktime, quicktime_init,, openquicktime/openquicktime.h, QUICKTIME_LIBS="-lopenquicktime")
|
||||
])
|
||||
|
||||
dnl *** raw1394 ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_RAW1394, true)
|
||||
GST_CHECK_FEATURE(RAW1394, [raw1394 library], dv1394src, [
|
||||
GST_CHECK_LIBHEADER(RAW1394, raw1934, raw1934_get_handle,, libraw1394/raw1394.h, RAW1394_LIBS="-raw1394")
|
||||
])
|
||||
|
||||
dnl *** SDL ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_LIBSDL, true)
|
||||
GST_CHECK_FEATURE(LIBSDL, [SDL plugin], sdlvideosink, [
|
||||
AM_PATH_SDL(, HAVE_LIBSDL=yes, HAVE_LIBSDL=no)
|
||||
])
|
||||
|
||||
dnl *** shout ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_LIBSHOUT, true)
|
||||
GST_CHECK_FEATURE(LIBSHOUT, [shout plugin], icecastsend, [
|
||||
GST_CHECK_LIBHEADER(LIBSHOUT, shout, shout_init_connection,, shout/shout.h, LIBSHOUT_LIBS="-lshout")
|
||||
])
|
||||
|
||||
dnl *** vorbis ***
|
||||
dnl AM_PATH_VORBIS only takes two options
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_VORBIS, true)
|
||||
GST_CHECK_FEATURE(VORBIS, [vorbis plugin], vorbisenc vorbisdec, [
|
||||
AM_PATH_VORBIS(HAVE_VORBIS=yes, HAVE_VORBIS=no)
|
||||
])
|
||||
|
||||
dnl *** xmms ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_LIBXMMS, true)
|
||||
GST_CHECK_FEATURE(LIBXMMS, [xmms plugin], xmms, [
|
||||
AM_PATH_XMMS(0.1.0, HAVE_LIBXMMS=yes, HAVE_LIBXMMS=no)
|
||||
])
|
||||
|
||||
dnl Check for libgdk-pixbuf
|
||||
dnl FIXME: not sure that this is still used anywhere.
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_GDK_PIXBUF, true)
|
||||
GST_CHECK_FEATURE(GDK_PIXBUF, [use gdk pixbuf], , [
|
||||
translit(dnm, m, l) AC_SUBST(GDK_PIXBUF_LIBS)
|
||||
translit(dnm, m, l) AC_SUBST(GDK_PIXBUF_CFLAGS)
|
||||
GST_CHECK_CONFIGPROG(GDK_PIXBUF, gdk-pixbuf-config)
|
||||
])
|
||||
dnl DELETEME
|
||||
dnl translit(dnm, m, l) AM_CONDITIONAL(USE_GDK_PIXBUF, true)
|
||||
dnl GST_CHECK_FEATURE(GDK_PIXBUF, [use gdk pixbuf], , [
|
||||
dnl translit(dnm, m, l) AC_SUBST(GDK_PIXBUF_LIBS)
|
||||
dnl translit(dnm, m, l) AC_SUBST(GDK_PIXBUF_CFLAGS)
|
||||
dnl GST_CHECK_CONFIGPROG(GDK_PIXBUF, gdk-pixbuf-config)
|
||||
dnl ])
|
||||
dnl
|
||||
|
||||
|
||||
if test x$USE_GLIB2 = xyes; then
|
||||
dnl we don't support gnome/gtk with glib2.0 yet
|
||||
|
@ -413,10 +614,10 @@ if test x$USE_GLIB2 = xyes; then
|
|||
AC_MSG_WARN(gnome disabled for glib2.0)
|
||||
else
|
||||
dnl Check for libgnome
|
||||
translit(dnm, m, l) AC_SUBST(GNOME_LIBS)
|
||||
translit(dnm, m, l) AC_SUBST(GNOME_CFLAGS)
|
||||
GST_CHECK_CONFIGPROG(GNOME, gnome-config, gnome gnomeui)
|
||||
GST_CHECK_CONFIGPROG(GNOME, gnome-config, gnome gnomeui)
|
||||
fi
|
||||
AC_SUBST(GNOME_LIBS)
|
||||
AC_SUBST(GNOME_CFLAGS)
|
||||
AC_SUBST(HAVE_GNOME)
|
||||
|
||||
dnl Check for libghttp
|
||||
|
@ -438,6 +639,7 @@ GST_CHECK_FEATURE(LIBGHTTP, [libghttp plugins], gsthttpsrc, [
|
|||
AC_SUBST(GST_HTTPSRC_GET_TYPE)
|
||||
])
|
||||
|
||||
|
||||
dnl thomas : adding an arts check taken from xine with it's own .m4
|
||||
AM_PATH_ARTS(, HAVE_ARTS=yes, HAVE_ARTS=no)
|
||||
|
||||
|
@ -445,12 +647,10 @@ dnl also define ARTS_MCOPFLAGS
|
|||
ARTS_MCOPFLAGS="$ARTS_CFLAGS"
|
||||
AC_SUBST(ARTS_MCOPFLAGS)
|
||||
|
||||
dnl Check for xmms
|
||||
AM_PATH_XMMS(0.9.4, HAVE_XMMS=yes, HAVE_XMMS=no)
|
||||
|
||||
dnl Check for libglade
|
||||
dnl Check for libglade with gnome support; no libglade for glib2.0
|
||||
HAVE_LIBGLADE_GNOME="no"
|
||||
if test x$USE_GLIB2 = xyes; then
|
||||
AC_MSG_WARN(libglade disabled for glib2.0)
|
||||
PKG_CHECK_MODULES(LIBGLADE_GNOME, libglade-2.0 libgnomeui-2.0, HAVE_LIBGLADE_GNOME=yes, HAVE_LIBGLADE_GNOME=no)
|
||||
if test x$HAVE_LIBGLADE_GNOME = xno; then
|
||||
AC_MSG_WARN(Couldn't find libglade-2.0 - Can't build gstplay)
|
||||
|
@ -475,30 +675,6 @@ AC_SUBST(HAVE_LIBGLADE_GNOME)
|
|||
AC_SUBST(LIBGLADE_GNOME_LIBS)
|
||||
AC_SUBST(LIBGLADE_GNOME_CFLAGS)
|
||||
|
||||
dnl Check for Gnome VFS
|
||||
HAVE_GNOME_VFS="no"
|
||||
if test x$USE_GLIB2 = xyes; then
|
||||
PKG_CHECK_MODULES(VFS, gnome-vfs-2.0, HAVE_GNOME_VFS=yes, HAVE_GNOME_VFS=no)
|
||||
|
||||
if test x$HAVE_GNOME_VFS = xno; then
|
||||
AC_MSG_WARN(Couldn't find gnome-vfs-2.0 - Gnome-VFS support disabled)
|
||||
fi;
|
||||
else
|
||||
AC_MSG_CHECKING(for Gnome VFS)
|
||||
if gnome-config --libs vfs > /dev/null 2>&1; then
|
||||
HAVE_GNOME_VFS="yes"
|
||||
AC_MSG_RESULT(found)
|
||||
VFS_LIBS="`gnome-config --libs vfs`"
|
||||
VFS_CFLAGS="`gnome-config --cflags vfs`"
|
||||
else
|
||||
AC_MSG_WARN(Did not find Gnome-VFS installed)
|
||||
VFS_LIBS=
|
||||
VFS_CFLAGS=
|
||||
fi
|
||||
fi
|
||||
AC_SUBST(VFS_LIBS)
|
||||
AC_SUBST(VFS_CFLAGS)
|
||||
|
||||
dnl Check for Avifile
|
||||
HAVE_AVIFILE="no"
|
||||
AC_MSG_CHECKING(for Avifile)
|
||||
|
@ -508,6 +684,7 @@ if avifile-config --libs > /dev/null 2>&1; then
|
|||
else
|
||||
AC_MSG_WARN(Did not find Avifile installed)
|
||||
fi
|
||||
|
||||
AVIFILE_LIBS="`avifile-config --libs`"
|
||||
AVIFILE_CFLAGS="`avifile-config --cflags`"
|
||||
AC_SUBST(AVIFILE_LIBS)
|
||||
|
@ -515,6 +692,7 @@ AC_SUBST(AVIFILE_CFLAGS)
|
|||
dnl HAVE_AVIFILE is needed in a Makefile.am
|
||||
|
||||
AC_SUBST(HAVE_AVIFILE)
|
||||
|
||||
dnl Check for atomic.h
|
||||
dnl Note: use AC_CHECK_HEADER not AC_CHECK_HEADERS, because the latter
|
||||
dnl defines the wrong default symbol as well (HAVE_ASM_ATOMIC_H)
|
||||
|
@ -573,84 +751,6 @@ AC_CHECK_HEADER(xaudio/decoder.h,
|
|||
HAVE_XAUDIO="no",
|
||||
)
|
||||
|
||||
dnl Check for libmad
|
||||
AC_MSG_CHECKING(MAD library)
|
||||
AC_CHECK_LIB(mad, mad_decoder_finish,
|
||||
HAVE_LIBMAD=yes
|
||||
AC_DEFINE(HAVE_LIBMAD, 1, [Define if libmad is available]),
|
||||
AC_MSG_WARN(
|
||||
***** NOTE: These plugins won't be built: mad
|
||||
)
|
||||
HAVE_LIBMAD=no,
|
||||
)
|
||||
|
||||
dnl Check for libmikmod
|
||||
AC_MSG_CHECKING(Mikmod library)
|
||||
AC_CHECK_LIB(mikmod, MikMod_Init,
|
||||
HAVE_LIBMIKMOD=yes
|
||||
AC_DEFINE(HAVE_LIBMIKMOD, 1, [Define if libmikmod is available]),
|
||||
AC_MSG_WARN(
|
||||
***** NOTE: These plugins won't be built: mikmod
|
||||
)
|
||||
HAVE_LIBMIKMOD=no,
|
||||
)
|
||||
|
||||
|
||||
dnl Check for libvorbis
|
||||
AC_MSG_CHECKING(Vorbis library)
|
||||
AC_CHECK_LIB(vorbis, ogg_sync_init,
|
||||
HAVE_VORBIS=yes
|
||||
AC_DEFINE(HAVE_VORBIS, 1, [Define if vorbis library is available]),
|
||||
AC_MSG_WARN(
|
||||
***** NOTE: These plugins won't be built: vorbisdec vorbisenc
|
||||
)
|
||||
HAVE_VORBIS=no,
|
||||
)
|
||||
|
||||
dnl Check for libjpeg
|
||||
AC_MSG_CHECKING(libjpeg library)
|
||||
AC_CHECK_LIB(jpeg, jpeg_set_defaults,
|
||||
HAVE_LIBJPEG=yes
|
||||
AC_DEFINE(HAVE_LIBJPEG, 1, [Define if libjpeg is available]),
|
||||
AC_MSG_WARN(
|
||||
***** NOTE: These plugins won't be built: jpegdec jpegenc
|
||||
)
|
||||
HAVE_LIBJPEG=no,
|
||||
)
|
||||
|
||||
dnl Check for libHermes
|
||||
AC_MSG_CHECKING(Hermes library)
|
||||
AC_CHECK_LIB(Hermes, Hermes_ConverterInstance,
|
||||
HAVE_LIBHERMES=yes
|
||||
AC_DEFINE(HAVE_LIBHERMES, 1, [Define if Hermes library is available]),
|
||||
AC_MSG_WARN(
|
||||
***** NOTE: These plugins won't be built: colorspace
|
||||
)
|
||||
HAVE_LIBHERMES=no,
|
||||
)
|
||||
AC_CHECK_HEADER(Hermes/Hermes.h, :, HAVE_LIBHERMES=no)
|
||||
|
||||
dnl Check for libgsm
|
||||
AC_MSG_CHECKING(GSM library)
|
||||
AC_CHECK_LIB(gsm, gsm_create, HAVE_LIBGSM=yes, HAVE_LIBGSM=no,)
|
||||
GSM_CFLAGS=
|
||||
GSM_LIBS=-lgsm
|
||||
AC_CHECK_HEADER(gsm.h, :,
|
||||
GSM_CFLAGS="$GSM_CFLAGS -DGSM_HEADER_IN_SUBDIR"
|
||||
AC_CHECK_HEADER(gsm/gsm.h, :, HAVE_LIBGSM=no)
|
||||
)
|
||||
AC_SUBST(GSM_CFLAGS)
|
||||
AC_SUBST(GSM_LIBS)
|
||||
|
||||
if test "x$HAVE_LIBGSM" = "xyes"; then
|
||||
AC_DEFINE(HAVE_LIBGSM, 1, [Define if GSM library is available])
|
||||
else
|
||||
AC_MSG_WARN(
|
||||
***** NOTE: These plugins won't be built: gsmdec, gsmenc
|
||||
)
|
||||
fi
|
||||
|
||||
dnl Check for cdparanoia
|
||||
AC_MSG_CHECKING(CDparanoia library)
|
||||
HAVE_CDPARANOIA=yes
|
||||
AC_CHECK_LIB(cdda_interface, cdda_open, : , HAVE_CDPARANOIA=no, )
|
||||
|
@ -658,26 +758,6 @@ AC_CHECK_HEADER(cdda_interface.h, :, HAVE_CDPARANOIA=no)
|
|||
AC_CHECK_LIB(cdda_paranoia, paranoia_init, : , HAVE_CDPARANOIA=no, -lcdda_interface )
|
||||
AC_CHECK_HEADER(cdda_paranoia.h, :, HAVE_CDPARANOIA=no)
|
||||
|
||||
dnl Check for liblame
|
||||
dnl checking the version doesn't work yet
|
||||
dnl HAVE_LIBLAME gets set by AM_PATH_LIBLAME, but for clarity we do it again
|
||||
AM_PATH_LIBLAME(:, HAVE_LIBLAME=yes, HAVE_LIBLAME=no)
|
||||
|
||||
dnl Check for libshout
|
||||
AC_MSG_CHECKING(Shout library)
|
||||
AC_CHECK_LIB(shout, shout_init_connection, HAVE_LIBSHOUT=yes, HAVE_LIBSHOUT=no, )
|
||||
AC_CHECK_HEADER(shout/shout.h, :, HAVE_LIBSHOUT=no)
|
||||
|
||||
dnl Check for mpeg2dec
|
||||
AC_MSG_CHECKING(mpeg2dec library)
|
||||
AC_CHECK_LIB(mpeg2, mpeg2_init, HAVE_MPEG2DEC=yes, HAVE_MPEG2DEC=no, )
|
||||
AC_CHECK_HEADER(mpeg2dec/mpeg2.h, :, HAVE_MPEG2DEC=no)
|
||||
|
||||
dnl Check for a52dec
|
||||
AC_MSG_CHECKING(a52dec library)
|
||||
AC_CHECK_LIB(a52, a52_init, HAVE_A52DEC=yes, HAVE_A52DEC=no, -lm)
|
||||
AC_CHECK_HEADER(a52dec/a52.h, :, HAVE_A52DEC=no)
|
||||
|
||||
dnl Check for sidplay
|
||||
AC_PATH_LIBSIDPLAY
|
||||
|
||||
|
@ -690,51 +770,6 @@ dnl AC_CHECK_HEADERS(rtp/rtp-packet.h, :, HAVE_LIBRTP=no)
|
|||
dnl AC_CHECK_HEADERS(rtp/rtcp-packet.h, :, HAVE_LIBRTP=no)
|
||||
dnl AC_CHECK_HEADERS(rtp/rtp-audio.h, :, HAVE_LIBRTP=no)
|
||||
|
||||
dnl Check for FLAC
|
||||
dnl thomas : checking for compile with main instead of actual function,
|
||||
dnl since that made autoconf break (for version 2.13)
|
||||
AC_MSG_CHECKING(FLAC library)
|
||||
AC_CHECK_LIB(FLAC, main, HAVE_FLACLIB=yes, HAVE_FLACLIB=no, -lm)
|
||||
AC_CHECK_HEADER(FLAC/all.h, :, HAVE_FLACLIB=no)
|
||||
|
||||
dnl Check for libraw1394
|
||||
AC_MSG_CHECKING(raw1394 library)
|
||||
AC_CHECK_LIB(raw1394, raw1394_get_handle, HAVE_RAW1394=yes, HAVE_RAW1394=no, )
|
||||
AC_CHECK_HEADER(libraw1394/raw1394.h, :, HAVE_RAW1394=no)
|
||||
|
||||
dnl Check for libdv
|
||||
AC_MSG_CHECKING(libdv)
|
||||
AC_CHECK_LIB(dv, dv_init, HAVE_LIBDV=yes, HAVE_LIBDV=no, -lm $GLIB_LIBS $GLIB_CFLAGS)
|
||||
libdvcheck_save_CPPFLAGS="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"
|
||||
AC_CHECK_HEADER(libdv/dv.h, :, HAVE_LIBDV=no)
|
||||
CPPFLAGS="$libdvcheck_save_CPPFLAGS"
|
||||
|
||||
dnl Check for aalib
|
||||
AC_MSG_CHECKING(aalib)
|
||||
AC_CHECK_LIB(aa, aa_init, HAVE_LIBAA=yes, HAVE_LIBAA=no, )
|
||||
AC_CHECK_HEADER(aalib.h, :, HAVE_LIBAA=no)
|
||||
|
||||
dnl Check for quicktime
|
||||
AC_MSG_CHECKING(openquicktime)
|
||||
AC_CHECK_LIB(openquicktime, quicktime_init, HAVE_LIBOPENQUICKTIME=yes, HAVE_LIBOPENQUICKTIME=no, )
|
||||
AC_CHECK_HEADER(openquicktime/openquicktime.h, :, HAVE_LIBOPENQUICKTIME=no)
|
||||
|
||||
dnl Check for libdvdread
|
||||
AC_MSG_CHECKING(libdvdread)
|
||||
AC_CHECK_LIB(dvdread, DVDOpen, HAVE_LIBDVDREAD=yes, HAVE_LIBDVDREAD=no, )
|
||||
AC_CHECK_HEADER(dvdread/dvd_reader.h, :, HAVE_LIBDVDREAD=no)
|
||||
|
||||
dnl Check for SDL library
|
||||
dnl this bit is taken from vlc's configure.in and modified accordingly
|
||||
|
||||
AM_PATH_SDL(1.1.0, HAVE_LIBSDL=yes, HAVE_LIBSDL=no)
|
||||
|
||||
if test "x$HAVE_LIBSDL" = "xno"; then
|
||||
AC_MSG_WARN(
|
||||
***** NOTE: These plugins won't be built: sdlvideosink
|
||||
)
|
||||
fi
|
||||
|
||||
dnl Check for linux/cdrom.h
|
||||
AC_CHECK_HEADER(linux/cdrom.h,
|
||||
|
@ -999,6 +1034,10 @@ if test "x$HAVE_VORBIS" = xyes; then
|
|||
AC_DEFINE(HAVE_VORBIS)
|
||||
fi
|
||||
|
||||
if test "x$HAVE_AALIB" = "xyes"; then
|
||||
AC_DEFINE(HAVE_AALIB)
|
||||
fi
|
||||
|
||||
if test "x$HAVE_LIBJPEG" = xyes; then
|
||||
AC_DEFINE(HAVE_LIBJPEG)
|
||||
fi
|
||||
|
@ -1051,7 +1090,12 @@ AM_CONDITIONAL(HAVE_CPU_ALPHA, test "x$HAVE_CPU_ALPHA" = "xyes")
|
|||
AM_CONDITIONAL(HAVE_CPU_ARM, test "x$HAVE_CPU_ARM" = "xyes")
|
||||
AM_CONDITIONAL(HAVE_CPU_SPARC, test "x$HAVE_CPU_SPARC" = "xyes")
|
||||
AM_CONDITIONAL(HAVE_LIBMMX, test "x$USE_LIBMMX" = "xyes")
|
||||
|
||||
AM_CONDITIONAL(HAVE_ATOMIC_H, test "x$USE_ATOMIC_H" = "xyes")
|
||||
|
||||
AM_CONDITIONAL(EXPERIMENTAL, test "$EXPERIMENTAL" = "$xyes")
|
||||
AM_CONDITIONAL(BROKEN, test "$BROKEN" = "$xyes")
|
||||
|
||||
AM_CONDITIONAL(HAVE_OSS, test "x$HAVE_OSS" = "xyes")
|
||||
AM_CONDITIONAL(HAVE_XAUDIO, test "x$HAVE_XAUDIO" = "xyes")
|
||||
AM_CONDITIONAL(HAVE_LIBMAD, test "x$HAVE_LIBMAD" = "xyes")
|
||||
|
@ -1094,7 +1138,7 @@ AM_CONDITIONAL(HAVE_ARTS, test "x$HAVE_ARTS" = "xyes")
|
|||
AM_CONDITIONAL(HAVE_XMMS, test "x$HAVE_XMMS" = "xyes")
|
||||
AM_CONDITIONAL(HAVE_RAW1394, test "x$HAVE_RAW1394" = "xyes")
|
||||
AM_CONDITIONAL(HAVE_LIBDV, test "x$HAVE_LIBDV" = "xyes")
|
||||
AM_CONDITIONAL(HAVE_LIBAA, test "x$HAVE_LIBAA" = "xyes")
|
||||
AM_CONDITIONAL(HAVE_AALIB, test "x$HAVE_AALIB" = "xyes")
|
||||
AM_CONDITIONAL(HAVE_GNOME_VFS, test "x$HAVE_GNOME_VFS" = "xyes")
|
||||
AM_CONDITIONAL(HAVE_AVIFILE, test "x$HAVE_AVIFILE" = "xyes")
|
||||
AM_CONDITIONAL(HAVE_LIBOPENQUICKTIME, test "x$HAVE_LIBOPENQUICKTIME" = "xyes")
|
||||
|
@ -1129,17 +1173,16 @@ PLUGINS_BUILDDIR=${builddir}
|
|||
AC_DEFINE_UNQUOTED(PLUGINS_BUILDDIR,"$PLUGINS_BUILDDIR")
|
||||
AC_SUBST(PLUGINS_BUILDDIR)
|
||||
|
||||
dnl Vars for everyone else
|
||||
GST_LIBS="\$(top_builddir)/gst/libgst.la"
|
||||
GST_CFLAGS="-I\$(top_srcdir) -I\$(top_srcdir)/include"
|
||||
AC_SUBST(GST_LIBS)
|
||||
AC_SUBST(GST_CFLAGS)
|
||||
|
||||
dnl Private vars for libgst only
|
||||
LIBGST_CFLAGS="$GST_CFLAGS"
|
||||
LIBGST_LIBS="$GST_LIBS $XML_LIBS $GLIB_LIBS"
|
||||
LIBGST_CFLAGS="$GST_CFLAGS $XML_CFLAGS $GLIB_CFLAGS"
|
||||
AC_SUBST(LIBGST_LIBS)
|
||||
AC_SUBST(LIBGST_CFLAGS)
|
||||
|
||||
dnl Vars for everyone else
|
||||
GST_LIBS="\$(top_builddir)/gst/libgst.la $LIBGST_LIBS"
|
||||
GST_CFLAGS="-I\$(top_srcdir) -I\$(top_srcdir)/include $LIBGST_CFLAGS"
|
||||
AC_SUBST(GST_LIBS)
|
||||
AC_SUBST(GST_CFLAGS)
|
||||
|
||||
dnl #############################
|
||||
|
@ -1174,10 +1217,9 @@ dnl #########################
|
|||
|
||||
dnl until ffmpeg is handled by configure plugins/ffmpeg/Makefile
|
||||
dnl components/bonobo-gstmediaplay/Makefile
|
||||
dnl FIXME someone should fix this test/misc/Makefile
|
||||
dnl FIXME wtay fix this: testsuite/threads/Makefile
|
||||
dnl FIXME testsuite/refcounting/Makefile
|
||||
|
||||
dnl someone should fix this test/misc/Makefile
|
||||
dnl wtay fix this: testsuite/threads/Makefile
|
||||
dnl testsuite/refcounting/Makefile
|
||||
AC_OUTPUT(
|
||||
Makefile
|
||||
include/Makefile
|
||||
|
@ -1348,3 +1390,8 @@ gstreamer.spec,
|
|||
chmod +x gstreamer-config
|
||||
echo "$infomessages", infomessages="$infomessages"
|
||||
)
|
||||
|
||||
echo -e "configure: *** Plugins that will be built : $GST_PLUGINS_YES"
|
||||
echo
|
||||
echo -e "configure: *** Plugins that will not be built : $GST_PLUGINS_NO"
|
||||
echo
|
||||
|
|
|
@ -28,7 +28,6 @@ gsteditor_SOURCES = editor.c
|
|||
gsteditor_LDFLAGS = libgsteditor.la $(GST_LIBS) $(LIBGLADE_GNOME_LIBS)
|
||||
gsteditor_CFLAGS = $(LIBGLADE_GNOME_CFLAGS) $(GST_CFLAGS) -DDATADIR=\""$(gladedir)/"\"
|
||||
|
||||
|
||||
man_MANS = gsteditor.1
|
||||
|
||||
gladedir = $(datadir)/gsteditor
|
||||
|
|
|
@ -22,5 +22,5 @@ noinst_HEADERS = gststaticautoplug.h gststaticautoplugrender.h
|
|||
|
||||
noinst_PROGRAMS = autoplugtest
|
||||
|
||||
autoplugtest_CFLAGS = $(GST_CFLAGS) $(GLIB_CFLAGS) $(XML_CFLAGS) $(GST_CFLAGS)
|
||||
autoplugtest_LDADD = $(GST_LIBS) $(GLIB_LIBS) $(XML_LIBS)
|
||||
autoplugtest_CFLAGS = $(GST_CFLAGS)
|
||||
autoplugtest_LDADD = $(GST_LIBS)
|
||||
|
|
|
@ -40,6 +40,6 @@ noinst_HEADERS = \
|
|||
gststatistics.h \
|
||||
gstfilesrc.h
|
||||
|
||||
libgstelements_la_CFLAGS = $(GHTTP_CFLAGS) $(GLIB_CFLAGS) $(XML_CFLAGS) $(GST_CFLAGS)
|
||||
libgstelements_la_LIBADD = $(GHTTP_LIBS) $(GLIB_LIBS) $(XML_LIBS)
|
||||
libgstelements_la_LDFLAGS = -version-info $(GST_LIBVERSION)
|
||||
libgstelements_la_CFLAGS = $(GHTTP_CFLAGS) $(GST_CFLAGS)
|
||||
libgstelements_la_LIBADD = $(GHTTP_LIBS) $(GST_LIBS)
|
||||
## left from merging, FIXME or DELETEME libgstelements_la_LDFLAGS = -version-info $(GST_LIBVERSION)
|
||||
|
|
|
@ -4,8 +4,6 @@ filter_LTLIBRARIES = libgsttypes.la
|
|||
|
||||
libgsttypes_la_SOURCES = gsttypes.c
|
||||
|
||||
libgsttypes_la_CFLAGS = $(XML_CFLAGS) $(XML_CFLAGS) $(GLIB_CFLAGS) $(GST_CFLAGS)
|
||||
|
||||
libgsttypes_la_LIBADD = $(XML_LIBS) $(GLIB_LIBS)
|
||||
|
||||
libgsttypes_la_CFLAGS = $(GST_CFLAGS)
|
||||
libgsttypes_la_LIBADD = $(GST_LIBS)
|
||||
libgsttypes_la_LDFLAGS = -version-info $(GST_LIBVERSION)
|
||||
|
|
|
@ -32,9 +32,10 @@ noinst_HEADERS = \
|
|||
gststatusarea.h \
|
||||
callbacks.h
|
||||
|
||||
libgstmediaplay_la_CFLAGS = $(GST_CFLAGS) $(GNOME_CFLAGS) \
|
||||
-DDATADIR=\""$(gladedir)/"\"
|
||||
libgstmediaplay_la_LIBADD = $(GST_LIBS) $(GNOME_LIBS)
|
||||
libgstmediaplay_la_LDFLAGS = -rdynamic
|
||||
libgstmediaplay_la_CFLAGS = $(GNOME_CFLAGS) $(LIBGLADE_GNOME_CFLAGS) $(GST_CFLAGS) -DDATADIR=\""$(gladedir)/"\"
|
||||
|
||||
gstmediaplay_CFLAGS = $(LIBGLADE_GNOME_CFLAGS) $(GST_CFLAGS) -DDATADIR=\""$(gladedir)/"\"
|
||||
gstmediaplay_LDADD = $(GST_LIBS) $(LIBGLADE_GNOME_LIBS) libgstmediaplay.la
|
||||
|
||||
gstmediaplay_CFLAGS = $(GST_CFLAGS) $(LIBGLADE_GNOME_CFLAGS) $(GNOME_CFLAGS)
|
||||
gstmediaplay_LDADD = $(GST_LIBS) $(LIBGLADE_GNOME_LIBS) $(GNOME_LIBS) libgstmediaplay.la
|
||||
|
|
|
@ -428,6 +428,14 @@
|
|||
<icon>stop.xpm</icon>
|
||||
<active>False</active>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkButton</class>
|
||||
<child_name>Toolbar:button</child_name>
|
||||
<name>button1</name>
|
||||
<label>button1</label>
|
||||
<icon>play.xpm</icon>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
|
|
|
@ -7,5 +7,8 @@ libgstaudio_la_SOURCES = gstaudio.c
|
|||
libgstaudioincludedir = $(includedir)/gst/libs/gstaudio
|
||||
libgstaudioinclude_HEADERS = gstaudio.h
|
||||
|
||||
libgstaudio_la_LIBADD = $(GST_LIBS)
|
||||
libgstaudio_la_CFLAGS = $(GST_CFLAGS) -finline-functions -ffast-math
|
||||
# FIXME is this needed?
|
||||
libgstaudio_la_CFLAGS = -O2 $(FOMIT_FRAME_POINTER) -finline-functions -ffast-math $(GLIB_CFLAGS) $(XML_CFLAGS) $(GST_CFLAGS)
|
||||
## from merge, kept for reference
|
||||
## libgstaudio_la_CFLAGS = -O2 $(FOMIT_FRAME_POINTER) -finline-functions -ffast-math $(GLIB_CFLAGS) $(XML_CFLAGS) $(GST_CFLAGS)
|
||||
|
|
|
@ -3,10 +3,13 @@ filterdir = $(libdir)/gst
|
|||
filter_LTLIBRARIES = libgstbytestream.la libgstbstest.la
|
||||
|
||||
libgstbytestream_la_SOURCES = gstbytestream.c
|
||||
libgstbytestream_la_CFLAGS = $(GLIB_CFLAGS) $(XML_CFLAGS) $(GST_CFLAGS)
|
||||
libgstbstest_la_SOURCES = gstbstest.c
|
||||
libgstbstest_la_CFLAGS = $(GLIB_CFLAGS) $(XML_CFLAGS) $(GST_CFLAGS)
|
||||
|
||||
libgstbytestreamincludedir = $(includedir)/gst/libs/bytestream
|
||||
libgstbytestreaminclude_HEADERS = gstbytestream.h
|
||||
|
||||
libgstbytestream_la_LIBADD = $(GST_LIBS)
|
||||
libgstbytestream_la_CFLAGS = $(GST_CFLAGS)
|
||||
|
||||
libgstbstest_la_LIBADD = $(GST_LIBS)
|
||||
libgstbstest_la_CFLAGS = $(GST_CFLAGS)
|
||||
|
|
|
@ -17,5 +17,6 @@ libgstcontrolinclude_HEADERS = \
|
|||
gstdparamcommon.h \
|
||||
gstdplinearinterp.h
|
||||
|
||||
libgstcontrol_la_LIBADD = -lm
|
||||
libgstcontrol_la_CFLAGS = -O2 $(FOMIT_FRAME_POINTER) -finline-functions -ffast-math $(GLIB_CFLAGS) $(XML_CFLAGS) $(GST_CFLAGS)
|
||||
libgstcontrol_la_LIBADD = $(GST_LIBS)
|
||||
libgstcontrol_la_CFLAGS = $(GST_CFLAGS) -finline-functions -ffast-math
|
||||
|
||||
|
|
|
@ -9,8 +9,9 @@ GSTARCH_SRCS =
|
|||
endif
|
||||
|
||||
libgstgetbits_la_SOURCES = gstgetbits.c gstgetbits_inl.h gstgetbits_generic.c $(GSTARCH_SRCS)
|
||||
libgstgetbits_la_LIBADD = $(GST_LIBS)
|
||||
libgstgetbits_la_CFLAGS = $(GST_CFLAGS) -funroll-all-loops -finline-functions -ffast-math
|
||||
EXTRA_libgstgetbits_la_SOURCES = gstgetbits_i386.s
|
||||
libgstgetbits_la_CFLAGS = -O2 $(FOMIT_FRAME_POINTER) -funroll-all-loops -finline-functions -ffast-math $(GLIB_CFLAGS) $(XML_CFLAGS) $(GST_CFLAGS)
|
||||
|
||||
libgstgetbitsincludedir = $(includedir)/gst/libs/gstgetbits
|
||||
libgstgetbitsinclude_HEADERS = gstgetbits.h
|
||||
|
@ -19,7 +20,3 @@ noinst_HEADERS = gstgetbits.h gstgetbits_inl.h
|
|||
|
||||
# check_PROGRAMS = gbtest
|
||||
|
||||
#gbtest_SOURCES = gbtest.c
|
||||
#gbtest_LDADD = libgstgetbits.la $(GST_LIBS)
|
||||
#gbtest_CFLAGS = libgstgetbits.la $(GST_CFLAGS)
|
||||
|
||||
|
|
|
@ -27,4 +27,5 @@ ieeetest_LDFLAGS = $(GNOME_LIBS) $(GST_LIBS)
|
|||
|
||||
noinst_HEADERS = dct.h
|
||||
|
||||
libgstidct_la_CFLAGS = -O2 $(FOMIT_FRAME_POINTER) -finline-functions -ffast-math $(GLIB_CFLAGS) $(XML_CFLAGS) $(GST_CFLAGS)
|
||||
libgstidct_la_LIBADD = $(GST_LIBS)
|
||||
libgstidct_la_CFLAGS = $(GST_CFLAGS) -finline-functions -ffast-math
|
||||
|
|
|
@ -9,4 +9,5 @@ libgstputbitsinclude_HEADERS = gstputbits.h
|
|||
|
||||
noinst_HEADERS = gstputbits.h
|
||||
|
||||
libgstputbits_la_CFLAGS = -O2 $(FOMIT_FRAME_POINTER) -funroll-all-loops -finline-functions -ffast-math
|
||||
libgstputbits_la_LIBADD = $(GST_LIBS)
|
||||
libgstputbits_la_CFLAGS = $(GST_CFLAGS) -funroll-all-loops -finline-functions -ffast-math
|
||||
|
|
|
@ -25,5 +25,5 @@ ARCHCFLAGS =
|
|||
endif
|
||||
endif
|
||||
|
||||
libresample_la_CFLAGS = -O2 -ffast-math $(ARCHCFLAGS) $(GST_CFLAGS)
|
||||
|
||||
libresample_la_LIBADD = $(GST_LIBS)
|
||||
libresample_la_CFLAGS = $(GST_CFLAGS) -ffast-math $(ARCHCFLAGS)
|
||||
|
|
|
@ -7,4 +7,5 @@ libgstriff_la_SOURCES = gstriffparse.c gstriffencode.c gstriffutil.c
|
|||
libgstriffincludedir = $(includedir)/gst/libs/gstriff
|
||||
libgstriffinclude_HEADERS = gstriff.h
|
||||
|
||||
libgstriff_la_CFLAGS = -O2 $(FOMIT_FRAME_POINTER) -funroll-all-loops -finline-functions -ffast-math $(GLIB_CFLAGS) $(XML_CFLAGS) $(GST_CFLAGS)
|
||||
libgstriff_la_LIBADD = $(GST_LIBS)
|
||||
libgstriff_la_CFLAGS = $(GST_CFLAGS) -funroll-all-loops -finline-functions -ffast-math
|
||||
|
|
169
m4/aalib.m4
Normal file
169
m4/aalib.m4
Normal file
|
@ -0,0 +1,169 @@
|
|||
# Configure paths for AALIB
|
||||
# Jan Hubicka 4/22/2001
|
||||
# stolen from Sam Lantinga 9/21/99
|
||||
# stolen from Manish Singh
|
||||
# stolen back from Frank Belew
|
||||
# stolen from Manish Singh
|
||||
# Shamelessly stolen from Owen Taylor
|
||||
|
||||
dnl AM_PATH_AALIB([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
|
||||
dnl Test for AALIB, and define AALIB_CFLAGS and AALIB_LIBS
|
||||
dnl
|
||||
AC_DEFUN(AM_PATH_AALIB,
|
||||
[dnl
|
||||
dnl Get the cflags and libraries from the aalib-config script
|
||||
dnl
|
||||
AC_ARG_WITH(aalib-prefix,[ --with-aalib-prefix=PFX Prefix where AALIB is installed (optional)],
|
||||
aalib_prefix="$withval", aalib_prefix="")
|
||||
AC_ARG_WITH(aalib-exec-prefix,[ --with-aalib-exec-prefix=PFX Exec prefix where AALIB is installed (optional)],
|
||||
aalib_exec_prefix="$withval", aalib_exec_prefix="")
|
||||
AC_ARG_ENABLE(aalibtest, [ --disable-aalibtest Do not try to compile and run a test AALIB program],
|
||||
, enable_aalibtest=yes)
|
||||
|
||||
if test x$aalib_exec_prefix != x ; then
|
||||
aalib_args="$aalib_args --exec-prefix=$aalib_exec_prefix"
|
||||
if test x${AALIB_CONFIG+set} != xset ; then
|
||||
AALIB_CONFIG=$aalib_exec_prefix/bin/aalib-config
|
||||
fi
|
||||
fi
|
||||
if test x$aalib_prefix != x ; then
|
||||
aalib_args="$aalib_args --prefix=$aalib_prefix"
|
||||
if test x${AALIB_CONFIG+set} != xset ; then
|
||||
AALIB_CONFIG=$aalib_prefix/bin/aalib-config
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_PATH_PROG(AALIB_CONFIG, aalib-config, no)
|
||||
min_aalib_version=ifelse([$1], ,0.11.0,$1)
|
||||
AC_MSG_CHECKING(for AALIB - version >= $min_aalib_version)
|
||||
no_aalib=""
|
||||
if test "$AALIB_CONFIG" = "no" ; then
|
||||
no_aalib=yes
|
||||
else
|
||||
AALIB_CFLAGS=`$AALIB_CONFIG $aalibconf_args --cflags`
|
||||
AALIB_LIBS=`$AALIB_CONFIG $aalibconf_args --libs`
|
||||
|
||||
aalib_major_version=`$AALIB_CONFIG $aalib_args --version | \
|
||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
|
||||
aalib_minor_version=`$AALIB_CONFIG $aalib_args --version | \
|
||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
|
||||
aalib_micro_version=`$AALIB_CONFIG $aalib_config_args --version | \
|
||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
|
||||
if test "x$enable_aalibtest" = "xyes" ; then
|
||||
ac_save_CFLAGS="$CFLAGS"
|
||||
ac_save_LIBS="$LIBS"
|
||||
CFLAGS="$CFLAGS $AALIB_CFLAGS"
|
||||
LIBS="$LIBS $AALIB_LIBS"
|
||||
dnl
|
||||
dnl Now check if the installed AALIB is sufficiently new. (Also sanity
|
||||
dnl checks the results of aalib-config to some extent
|
||||
dnl
|
||||
rm -f conf.aalibtest
|
||||
AC_TRY_RUN([
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "aalib.h"
|
||||
|
||||
char*
|
||||
my_strdup (char *str)
|
||||
{
|
||||
char *new_str;
|
||||
|
||||
if (str)
|
||||
{
|
||||
new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
|
||||
strcpy (new_str, str);
|
||||
}
|
||||
else
|
||||
new_str = NULL;
|
||||
|
||||
return new_str;
|
||||
}
|
||||
|
||||
int main (int argc, char *argv[])
|
||||
{
|
||||
int major, minor, micro;
|
||||
char *tmp_version;
|
||||
|
||||
/* This hangs on some systems (?)
|
||||
system ("touch conf.aalibtest");
|
||||
*/
|
||||
{ FILE *fp = fopen("conf.aalibtest", "a"); if ( fp ) fclose(fp); }
|
||||
|
||||
/* HP/UX 9 (%@#!) writes to sscanf strings */
|
||||
tmp_version = my_strdup("$min_aalib_version");
|
||||
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
|
||||
printf("%s, bad version string\n", "$min_aalib_version");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (($aalib_major_version > major) ||
|
||||
(($aalib_major_version == major) && ($aalib_minor_version > minor)) ||
|
||||
(($aalib_major_version == major) && ($aalib_minor_version == minor) && ($aalib_micro_version >= micro)))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("\n*** 'aalib-config --version' returned %d.%d.%d, but the minimum version\n", $aalib_major_version, $aalib_minor_version, $aalib_micro_version);
|
||||
printf("*** of AALIB required is %d.%d.%d. If aalib-config is correct, then it is\n", major, minor, micro);
|
||||
printf("*** best to upgrade to the required version.\n");
|
||||
printf("*** If aalib-config was wrong, set the environment variable AALIB_CONFIG\n");
|
||||
printf("*** to point to the correct copy of aalib-config, and remove the file\n");
|
||||
printf("*** config.cache before re-running configure\n");
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
],, no_aalib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
|
||||
CFLAGS="$ac_save_CFLAGS"
|
||||
LIBS="$ac_save_LIBS"
|
||||
fi
|
||||
fi
|
||||
if test "x$no_aalib" = x ; then
|
||||
AC_MSG_RESULT(yes)
|
||||
ifelse([$2], , :, [$2])
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
if test "$AALIB_CONFIG" = "no" ; then
|
||||
echo "*** The aalib-config script installed by AALIB could not be found"
|
||||
echo "*** If AALIB was installed in PREFIX, make sure PREFIX/bin is in"
|
||||
echo "*** your path, or set the AALIB_CONFIG environment variable to the"
|
||||
echo "*** full path to aalib-config."
|
||||
else
|
||||
if test -f conf.aalibtest ; then
|
||||
:
|
||||
else
|
||||
echo "*** Could not run AALIB test program, checking why..."
|
||||
CFLAGS="$CFLAGS $AALIB_CFLAGS"
|
||||
LIBS="$LIBS $AALIB_LIBS"
|
||||
AC_TRY_LINK([
|
||||
#include <stdio.h>
|
||||
#include "AALIB.h"
|
||||
], [ return 0; ],
|
||||
[ echo "*** The test program compiled, but did not run. This usually means"
|
||||
echo "*** that the run-time linker is not finding AALIB or finding the wrong"
|
||||
echo "*** version of AALIB. If it is not finding AALIB, you'll need to set your"
|
||||
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
|
||||
echo "*** to the installed location Also, make sure you have run ldconfig if that"
|
||||
echo "*** is required on your system"
|
||||
echo "***"
|
||||
echo "*** If you have an old version installed, it is best to remove it, although"
|
||||
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
|
||||
[ echo "*** The test program failed to compile or link. See the file config.log for the"
|
||||
echo "*** exact error that occured. This usually means AALIB was incorrectly installed"
|
||||
echo "*** or that you have moved AALIB since it was installed. In the latter case, you"
|
||||
echo "*** may want to edit the aalib-config script: $AALIB_CONFIG" ])
|
||||
CFLAGS="$ac_save_CFLAGS"
|
||||
LIBS="$ac_save_LIBS"
|
||||
fi
|
||||
fi
|
||||
AALIB_CFLAGS=""
|
||||
AALIB_LIBS=""
|
||||
ifelse([$3], , :, [$3])
|
||||
fi
|
||||
AC_SUBST(AALIB_CFLAGS)
|
||||
AC_SUBST(AALIB_LIBS)
|
||||
rm -f conf.aalibtest
|
||||
])
|
|
@ -1,5 +1,6 @@
|
|||
dnl Perform a check for a feature for GStreamer
|
||||
dnl Richard Boulton <richard-alsa@tartarus.org>
|
||||
dnl Thomas Vander Stichele <thomas@apestaart.org> added useful stuff
|
||||
dnl Last modification: 25/06/2001
|
||||
dnl GST_CHECK_FEATURE(FEATURE-NAME, FEATURE-DESCRIPTION,
|
||||
dnl DEPENDENT-PLUGINS, TEST-FOR-FEATURE,
|
||||
|
@ -12,7 +13,7 @@ dnl
|
|||
dnl The test should define HAVE_<FEATURE-NAME> to "yes" or "no" depending
|
||||
dnl on whether the feature is available.
|
||||
dnl
|
||||
dnl The macro will set USE_<<FEATURE-NAME> to "yes" or "no" depending on
|
||||
dnl The macro will set USE_<FEATURE-NAME> to "yes" or "no" depending on
|
||||
dnl whether the feature is to be used.
|
||||
dnl
|
||||
dnl The macro will call AM_CONDITIONAL(USE_<<FEATURE-NAME>, ...) to allow
|
||||
|
@ -35,6 +36,13 @@ dnl used.
|
|||
dnl ACTION-IF-NOTUSE any extra actions to perform if the feature is not to
|
||||
dnl be used.
|
||||
dnl
|
||||
dnl
|
||||
dnl thomas :
|
||||
dnl we also added a history.
|
||||
dnl GST_PLUGINS_YES will contain all plugins to be built
|
||||
dnl that were checked through GST_CHECK_FEATURE
|
||||
dnl GST_PLUGINS_NO will contain those that won't be built
|
||||
|
||||
AC_DEFUN(GST_CHECK_FEATURE,
|
||||
[dnl
|
||||
builtin(define, [gst_endisable], ifelse($5, [disabled], [enable], [disable]))dnl
|
||||
|
@ -70,10 +78,12 @@ fi
|
|||
dnl *** Warn if it's disabled or not found
|
||||
if test x$USE_[$1] = xyes; then
|
||||
ifelse([$6], , :, [$6])
|
||||
GST_PLUGINS_YES="$GST_PLUGINS_YES \n\t[$3]"
|
||||
else
|
||||
ifelse([$3], , :, [AC_MSG_WARN(
|
||||
***** NOTE: These plugins won't be built: [$3]
|
||||
)])
|
||||
GST_PLUGINS_NO="$GST_PLUGINS_NO \n\t[$3]"
|
||||
ifelse([$7], , :, [$7])
|
||||
fi
|
||||
dnl *** Define the conditional as appropriate
|
||||
|
@ -104,3 +114,31 @@ AC_DEFUN(GST_CHECK_CONFIGPROG,
|
|||
AC_SUBST([$1]_LIBS)
|
||||
AC_SUBST([$1]_CFLAGS)
|
||||
])
|
||||
|
||||
dnl Use AC_CHECK_LIB and AC_CHECK_HEADER to do both tests at once
|
||||
dnl sets HAVE_module if we have it
|
||||
dnl Richard Boulton <richard-alsa@tartarus.org>
|
||||
dnl Last modification: 26/06/2001
|
||||
dnl GST_CHECK_LIBHEADER(FEATURE-NAME, LIB NAME, LIB FUNCTION, EXTRA LD FLAGS,
|
||||
dnl HEADER NAME, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
|
||||
dnl
|
||||
dnl This check was written for GStreamer: it should be renamed and checked
|
||||
dnl for portability if you decide to use it elsewhere.
|
||||
dnl
|
||||
AC_DEFUN(GST_CHECK_LIBHEADER,
|
||||
[
|
||||
AC_CHECK_LIB([$2], [$3], HAVE_[$1]=yes, HAVE_[$1]=no,[$4])
|
||||
if test "x$HAVE_[$1]" = "xyes"; then
|
||||
AC_CHECK_HEADER([$5], :, HAVE_[$1]=no)
|
||||
if test "x$HAVE_[$1]" = "xyes"; then
|
||||
dnl execute what needs to be
|
||||
ifelse([$6], , :, [$6])
|
||||
else
|
||||
ifelse([$7], , :, [$7])
|
||||
fi
|
||||
else
|
||||
AC_MSG_WARN([$1] not found)
|
||||
fi
|
||||
AC_SUBST(HAVE_[$1])
|
||||
]
|
||||
)
|
||||
|
|
207
m4/libmikmod.m4
Normal file
207
m4/libmikmod.m4
Normal file
|
@ -0,0 +1,207 @@
|
|||
# Configure paths for libmikmod
|
||||
#
|
||||
# Derived from glib.m4 (Owen Taylor 97-11-3)
|
||||
# Improved by Chris Butler
|
||||
#
|
||||
|
||||
dnl AM_PATH_LIBMIKMOD([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
|
||||
dnl Test for libmikmod, and define LIBMIKMOD_CFLAGS, LIBMIKMOD_LIBS and
|
||||
dnl LIBMIKMOD_LDADD
|
||||
dnl
|
||||
AC_DEFUN(AM_PATH_LIBMIKMOD,
|
||||
[dnl
|
||||
dnl Get the cflags and libraries from the libmikmod-config script
|
||||
dnl
|
||||
AC_ARG_WITH(libmikmod-prefix,[ --with-libmikmod-prefix=PFX Prefix where libmikmod is installed (optional)],
|
||||
libmikmod_config_prefix="$withval", libmikmod_config_prefix="")
|
||||
AC_ARG_WITH(libmikmod-exec-prefix,[ --with-libmikmod-exec-prefix=PFX Exec prefix where libmikmod is installed (optional)],
|
||||
libmikmod_config_exec_prefix="$withval", libmikmod_config_exec_prefix="")
|
||||
AC_ARG_ENABLE(libmikmodtest, [ --disable-libmikmodtest Do not try to compile and run a test libmikmod program],
|
||||
, enable_libmikmodtest=yes)
|
||||
|
||||
if test x$libmikmod_config_exec_prefix != x ; then
|
||||
libmikmod_config_args="$libmikmod_config_args --exec-prefix=$libmikmod_config_exec_prefix"
|
||||
if test x${LIBMIKMOD_CONFIG+set} != xset ; then
|
||||
LIBMIKMOD_CONFIG=$libmikmod_config_exec_prefix/bin/libmikmod-config
|
||||
fi
|
||||
fi
|
||||
if test x$libmikmod_config_prefix != x ; then
|
||||
libmikmod_config_args="$libmikmod_config_args --prefix=$libmikmod_config_prefix"
|
||||
if test x${LIBMIKMOD_CONFIG+set} != xset ; then
|
||||
LIBMIKMOD_CONFIG=$libmikmod_config_prefix/bin/libmikmod-config
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_PATH_PROG(LIBMIKMOD_CONFIG, libmikmod-config, no)
|
||||
min_libmikmod_version=ifelse([$1], ,3.1.5,$1)
|
||||
AC_MSG_CHECKING(for libmikmod - version >= $min_libmikmod_version)
|
||||
no_libmikmod=""
|
||||
if test "$LIBMIKMOD_CONFIG" = "no" ; then
|
||||
no_libmikmod=yes
|
||||
else
|
||||
LIBMIKMOD_CFLAGS=`$LIBMIKMOD_CONFIG $libmikmod_config_args --cflags`
|
||||
LIBMIKMOD_LIBS=`$LIBMIKMOD_CONFIG $libmikmod_config_args --libs`
|
||||
LIBMIKMOD_LDADD=`$LIBMIKMOD_CONFIG $libmikmod_config_args --ldadd`
|
||||
libmikmod_config_major_version=`$LIBMIKMOD_CONFIG $libmikmod_config_args --version | \
|
||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\).*/\1/'`
|
||||
libmikmod_config_minor_version=`$LIBMIKMOD_CONFIG $libmikmod_config_args --version | \
|
||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\).*/\2/'`
|
||||
libmikmod_config_micro_version=`$LIBMIKMOD_CONFIG $libmikmod_config_args --version | \
|
||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\).*/\3/'`
|
||||
if test "x$enable_libmikmodtest" = "xyes" ; then
|
||||
ac_save_CFLAGS="$CFLAGS"
|
||||
ac_save_LIBS="$LIBS"
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_C
|
||||
CFLAGS="$CFLAGS $LIBMIKMOD_CFLAGS $LIBMIKMOD_LDADD"
|
||||
LIBS="$LIBMIKMOD_LIBS $LIBS"
|
||||
dnl
|
||||
dnl Now check if the installed libmikmod is sufficiently new. (Also sanity
|
||||
dnl checks the results of libmikmod-config to some extent
|
||||
dnl
|
||||
rm -f conf.mikmodtest
|
||||
AC_TRY_RUN([
|
||||
#include <mikmod.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
char* my_strdup (char *str)
|
||||
{
|
||||
char *new_str;
|
||||
|
||||
if (str) {
|
||||
new_str = malloc ((strlen (str) + 1) * sizeof(char));
|
||||
strcpy (new_str, str);
|
||||
} else
|
||||
new_str = NULL;
|
||||
|
||||
return new_str;
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
int major,minor,micro;
|
||||
int libmikmod_major_version,libmikmod_minor_version,libmikmod_micro_version;
|
||||
char *tmp_version;
|
||||
|
||||
system("touch conf.mikmodtest");
|
||||
|
||||
/* HP/UX 9 (%@#!) writes to sscanf strings */
|
||||
tmp_version = my_strdup("$min_libmikmod_version");
|
||||
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
|
||||
printf("%s, bad version string\n", "$min_libmikmod_version");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
libmikmod_major_version=(MikMod_GetVersion() >> 16) & 255;
|
||||
libmikmod_minor_version=(MikMod_GetVersion() >> 8) & 255;
|
||||
libmikmod_micro_version=(MikMod_GetVersion() ) & 255;
|
||||
|
||||
if ((libmikmod_major_version != $libmikmod_config_major_version) ||
|
||||
(libmikmod_minor_version != $libmikmod_config_minor_version) ||
|
||||
(libmikmod_micro_version != $libmikmod_config_micro_version))
|
||||
{
|
||||
printf("\n*** 'libmikmod-config --version' returned %d.%d.%d, but libmikmod (%d.%d.%d)\n",
|
||||
$libmikmod_config_major_version, $libmikmod_config_minor_version, $libmikmod_config_micro_version,
|
||||
libmikmod_major_version, libmikmod_minor_version, libmikmod_micro_version);
|
||||
printf ("*** was found! If libmikmod-config was correct, then it is best\n");
|
||||
printf ("*** to remove the old version of libmikmod. You may also be able to fix the error\n");
|
||||
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
|
||||
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
|
||||
printf("*** required on your system.\n");
|
||||
printf("*** If libmikmod-config was wrong, set the environment variable LIBMIKMOD_CONFIG\n");
|
||||
printf("*** to point to the correct copy of libmikmod-config, and remove the file config.cache\n");
|
||||
printf("*** before re-running configure\n");
|
||||
}
|
||||
else if ((libmikmod_major_version != LIBMIKMOD_VERSION_MAJOR) ||
|
||||
(libmikmod_minor_version != LIBMIKMOD_VERSION_MINOR) ||
|
||||
(libmikmod_micro_version != LIBMIKMOD_REVISION))
|
||||
{
|
||||
printf("*** libmikmod header files (version %d.%d.%d) do not match\n",
|
||||
LIBMIKMOD_VERSION_MAJOR, LIBMIKMOD_VERSION_MINOR, LIBMIKMOD_REVISION);
|
||||
printf("*** library (version %d.%d.%d)\n",
|
||||
libmikmod_major_version, libmikmod_minor_version, libmikmod_micro_version);
|
||||
}
|
||||
else
|
||||
{
|
||||
if ((libmikmod_major_version > major) ||
|
||||
((libmikmod_major_version == major) && (libmikmod_minor_version > minor)) ||
|
||||
((libmikmod_major_version == major) && (libmikmod_minor_version == minor) && (libmikmod_micro_version >= micro)))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("\n*** An old version of libmikmod (%d.%d.%d) was found.\n",
|
||||
libmikmod_major_version, libmikmod_minor_version, libmikmod_micro_version);
|
||||
printf("*** You need a version of libmikmod newer than %d.%d.%d.\n",
|
||||
major, minor, micro);
|
||||
printf("***\n");
|
||||
printf("*** If you have already installed a sufficiently new version, this error\n");
|
||||
printf("*** probably means that the wrong copy of the libmikmod-config shell script is\n");
|
||||
printf("*** being found. The easiest way to fix this is to remove the old version\n");
|
||||
printf("*** of libmikmod, but you can also set the LIBMIKMOD_CONFIG environment to point to the\n");
|
||||
printf("*** correct copy of libmikmod-config. (In this case, you will have to\n");
|
||||
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
|
||||
printf("*** so that the correct libraries are found at run-time))\n");
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
],, no_libmikmod=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
|
||||
CFLAGS="$ac_save_CFLAGS"
|
||||
LIBS="$ac_save_LIBS"
|
||||
AC_LANG_RESTORE
|
||||
fi
|
||||
fi
|
||||
if test "x$no_libmikmod" = x ; then
|
||||
AC_MSG_RESULT([yes, `$LIBMIKMOD_CONFIG --version`])
|
||||
ifelse([$2], , :, [$2])
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
if test "$LIBMIKMOD_CONFIG" = "no" ; then
|
||||
echo "*** The libmikmod-config script installed by libmikmod could not be found"
|
||||
echo "*** If libmikmod was installed in PREFIX, make sure PREFIX/bin is in"
|
||||
echo "*** your path, or set the LIBMIKMOD_CONFIG environment variable to the"
|
||||
echo "*** full path to libmikmod-config."
|
||||
else
|
||||
if test -f conf.mikmodtest ; then
|
||||
:
|
||||
else
|
||||
echo "*** Could not run libmikmod test program, checking why..."
|
||||
CFLAGS="$CFLAGS $LIBMIKMOD_CFLAGS"
|
||||
LIBS="$LIBS $LIBMIKMOD_LIBS"
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_C
|
||||
AC_TRY_LINK([
|
||||
#include <mikmod.h>
|
||||
#include <stdio.h>
|
||||
], [ return (MikMod_GetVersion()!=0); ],
|
||||
[ echo "*** The test program compiled, but did not run. This usually means"
|
||||
echo "*** that the run-time linker is not finding libmikmod or finding the wrong"
|
||||
echo "*** version of libmikmod. If it is not finding libmikmod, you'll need to set your"
|
||||
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
|
||||
echo "*** to the installed location. Also, make sure you have run ldconfig if that"
|
||||
echo "*** is required on your system."
|
||||
echo "***"
|
||||
echo "*** If you have an old version installed, it is best to remove it, although"
|
||||
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
|
||||
[ echo "*** The test program failed to compile or link. See the file config.log for the"
|
||||
echo "*** exact error that occured. This usually means libmikmod was incorrectly installed"
|
||||
echo "*** or that you have moved libmikmod since it was installed. In the latter case, you"
|
||||
echo "*** may want to edit the libmikmod-config script: $LIBMIKMOD_CONFIG" ])
|
||||
CFLAGS="$ac_save_CFLAGS"
|
||||
LIBS="$ac_save_LIBS"
|
||||
AC_LANG_RESTORE
|
||||
fi
|
||||
fi
|
||||
LIBMIKMOD_CFLAGS=""
|
||||
LIBMIKMOD_LIBS=""
|
||||
LIBMIKMOD_LDADD=""
|
||||
ifelse([$3], , :, [$3])
|
||||
fi
|
||||
AC_SUBST(LIBMIKMOD_CFLAGS)
|
||||
AC_SUBST(LIBMIKMOD_LIBS)
|
||||
AC_SUBST(LIBMIKMOD_LDADD)
|
||||
rm -f conf.mikmodtest
|
||||
])
|
100
m4/vorbis.m4
Normal file
100
m4/vorbis.m4
Normal file
|
@ -0,0 +1,100 @@
|
|||
# Configure paths for libvorbis
|
||||
# Jack Moffitt <jack@icecast.org> 10-21-2000
|
||||
# Shamelessly stolen from Owen Taylor and Manish Singh
|
||||
|
||||
dnl AM_PATH_VORBIS([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
|
||||
dnl Test for libvorbis, and define VORBIS_CFLAGS and VORBIS_LIBS
|
||||
dnl
|
||||
AC_DEFUN(AM_PATH_VORBIS,
|
||||
[dnl
|
||||
dnl Get the cflags and libraries
|
||||
dnl
|
||||
AC_ARG_WITH(vorbis-prefix,[ --with-vorbis-prefix=PFX Prefix where libvorbis is installed (optional)], vorbis_prefix="$withval", vorbis_prefix="")
|
||||
AC_ARG_ENABLE(vorbistest, [ --disable-vorbistest Do not try to compile and run a test Vorbis program],, enable_vorbistest=yes)
|
||||
|
||||
if test "x$vorbis_prefix" != "xNONE" ; then
|
||||
vorbis_args="$vorbis_args --prefix=$vorbis_prefix"
|
||||
VORBIS_CFLAGS="-I$vorbis_prefix/include"
|
||||
VORBIS_LIBDIR="-L$vorbis_prefix/lib"
|
||||
elif test "$prefix" != ""; then
|
||||
vorbis_args="$vorbis_args --prefix=$prefix"
|
||||
VORBIS_CFLAGS="-I$prefix/include"
|
||||
VORBIS_LIBDIR="-L$prefix/lib"
|
||||
fi
|
||||
|
||||
VORBIS_LIBS="$VORBIS_LIBDIR -lvorbis -lm"
|
||||
VORBISFILE_LIBS="-lvorbisfile"
|
||||
VORBISENC_LIBS="-lvorbisenc"
|
||||
|
||||
AC_MSG_CHECKING(for Vorbis)
|
||||
no_vorbis=""
|
||||
|
||||
|
||||
if test "x$enable_vorbistest" = "xyes" ; then
|
||||
ac_save_CFLAGS="$CFLAGS"
|
||||
ac_save_LIBS="$LIBS"
|
||||
CFLAGS="$CFLAGS $VORBIS_CFLAGS"
|
||||
LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
|
||||
dnl
|
||||
dnl Now check if the installed Vorbis is sufficiently new.
|
||||
dnl
|
||||
rm -f conf.vorbistest
|
||||
AC_TRY_RUN([
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <vorbis/codec.h>
|
||||
|
||||
int main ()
|
||||
{
|
||||
system("touch conf.vorbistest");
|
||||
return 0;
|
||||
}
|
||||
|
||||
],, no_vorbis=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
|
||||
CFLAGS="$ac_save_CFLAGS"
|
||||
LIBS="$ac_save_LIBS"
|
||||
fi
|
||||
|
||||
if test "x$no_vorbis" = "x" ; then
|
||||
AC_MSG_RESULT(yes)
|
||||
ifelse([$1], , :, [$1])
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
if test -f conf.vorbistest ; then
|
||||
:
|
||||
else
|
||||
echo "*** Could not run Vorbis test program, checking why..."
|
||||
CFLAGS="$CFLAGS $VORBIS_CFLAGS"
|
||||
LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
|
||||
AC_TRY_LINK([
|
||||
#include <stdio.h>
|
||||
#include <vorbis/codec.h>
|
||||
], [ return 0; ],
|
||||
[ echo "*** The test program compiled, but did not run. This usually means"
|
||||
echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
|
||||
echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
|
||||
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
|
||||
echo "*** to the installed location Also, make sure you have run ldconfig if that"
|
||||
echo "*** is required on your system"
|
||||
echo "***"
|
||||
echo "*** If you have an old version installed, it is best to remove it, although"
|
||||
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
|
||||
[ echo "*** The test program failed to compile or link. See the file config.log for the"
|
||||
echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
|
||||
echo "*** or that you have moved Vorbis since it was installed." ])
|
||||
CFLAGS="$ac_save_CFLAGS"
|
||||
LIBS="$ac_save_LIBS"
|
||||
fi
|
||||
VORBIS_CFLAGS=""
|
||||
VORBIS_LIBS=""
|
||||
VORBISFILE_LIBS=""
|
||||
VORBISENC_LIBS=""
|
||||
ifelse([$2], , :, [$2])
|
||||
fi
|
||||
AC_SUBST(VORBIS_CFLAGS)
|
||||
AC_SUBST(VORBIS_LIBS)
|
||||
AC_SUBST(VORBISFILE_LIBS)
|
||||
AC_SUBST(VORBISENC_LIBS)
|
||||
rm -f conf.vorbistest
|
||||
])
|
|
@ -40,6 +40,6 @@ noinst_HEADERS = \
|
|||
gststatistics.h \
|
||||
gstfilesrc.h
|
||||
|
||||
libgstelements_la_CFLAGS = $(GHTTP_CFLAGS) $(GLIB_CFLAGS) $(XML_CFLAGS) $(GST_CFLAGS)
|
||||
libgstelements_la_LIBADD = $(GHTTP_LIBS) $(GLIB_LIBS) $(XML_LIBS)
|
||||
libgstelements_la_LDFLAGS = -version-info $(GST_LIBVERSION)
|
||||
libgstelements_la_CFLAGS = $(GHTTP_CFLAGS) $(GST_CFLAGS)
|
||||
libgstelements_la_LIBADD = $(GHTTP_LIBS) $(GST_LIBS)
|
||||
## left from merging, FIXME or DELETEME libgstelements_la_LDFLAGS = -version-info $(GST_LIBVERSION)
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
# FIXME : tests need fixing
|
||||
testprogs = static # linked loading registry static2 dynamic
|
||||
testprogs = dynamic linked static # loading registry static2
|
||||
filterdir = $(libdir)/gst
|
||||
|
||||
noinst_LTLIBRARIES = libtestplugin.la libtestplugin2.la
|
||||
filter_LTLIBRARIES = libtestplugin.la libtestplugin2.la
|
||||
|
||||
libtestplugin_la_SOURCES = testplugin.c
|
||||
libtestplugin2_la_SOURCES = testplugin2.c
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
# FIXME : tests need fixing
|
||||
testprogs = static # linked loading registry static2 dynamic
|
||||
testprogs = dynamic linked static # loading registry static2
|
||||
filterdir = $(libdir)/gst
|
||||
|
||||
noinst_LTLIBRARIES = libtestplugin.la libtestplugin2.la
|
||||
filter_LTLIBRARIES = libtestplugin.la libtestplugin2.la
|
||||
|
||||
libtestplugin_la_SOURCES = testplugin.c
|
||||
libtestplugin2_la_SOURCES = testplugin2.c
|
||||
|
|
|
@ -21,12 +21,6 @@ gstreamer_guilaunch_LDADD = \
|
|||
else
|
||||
GST_GUI_LAUNCH =
|
||||
endif
|
||||
else
|
||||
GST_GUI_LAUNCH = gstreamer-guilaunch
|
||||
gstreamer_guilaunch_CFLAGS = \
|
||||
$(LIBGLADE_GNOME_CFLAGS) $(CFLAGS)
|
||||
gstreamer_guilaunch_LDADD = \
|
||||
$(LIBGLADE_GNOME_LIBS) $(LDADD)
|
||||
endif
|
||||
|
||||
bin_PROGRAMS = gstreamer-launch \
|
||||
|
@ -37,9 +31,36 @@ bin_PROGRAMS = gstreamer-launch \
|
|||
gstreamer-complete
|
||||
|
||||
man_MANS = gstreamer-launch.1 gstreamer-register.1 gstreamer-inspect.1 \
|
||||
gstreamer-complete.1 gstreamer-compprep.1 gstreamer-guilaunch.1
|
||||
gstreamer-complete.1 gstreamer-compprep.1
|
||||
|
||||
LDADD = $(GST_LIBS)
|
||||
CFLAGS = $(GST_CFLAGS) -DGST_CONFIG_DIR=\"$(GST_CONFIG_DIR)\" $(GLIB_CFLAGS) $(XML_CFLAGS)
|
||||
gstreamer_launch_LDADD = $(GST_LIBS)
|
||||
gstreamer_launch_CFLAGS = $(GST_CFLAGS) -DGST_CONFIG_DIR=\"$(GST_CONFIG_DIR)\"
|
||||
|
||||
if !USE_GLIB2
|
||||
gstreamer_guilaunch_LDADD = $(GST_LIBS)
|
||||
gstreamer_guilaunch_CFLAGS = $(GST_CFLAGS) -DGST_CONFIG_DIR=\"$(GST_CONFIG_DIR)\"
|
||||
endif
|
||||
|
||||
if !GST_DISABLE_REGISTRY
|
||||
gstreamer_register_LDADD = $(GST_LIBS)
|
||||
gstreamer_register_CFLAGS = $(GST_CFLAGS) -DGST_CONFIG_DIR=\"$(GST_CONFIG_DIR)\"
|
||||
endif
|
||||
|
||||
gstreamer_inspect_LDADD = $(GST_LIBS)
|
||||
gstreamer_inspect_CFLAGS = $(GST_CFLAGS) -DGST_CONFIG_DIR=\"$(GST_CONFIG_DIR)\"
|
||||
|
||||
gstreamer_complete_LDADD = $(GST_LIBS)
|
||||
gstreamer_complete_CFLAGS = $(GST_CFLAGS) -DGST_CONFIG_DIR=\"$(GST_CONFIG_DIR)\"
|
||||
|
||||
if !GST_DISABLE_LOADSAVE
|
||||
gstreamer_compprep_LDADD = $(GST_LIBS)
|
||||
gstreamer_compprep_CFLAGS = $(GST_CFLAGS) -DGST_CONFIG_DIR=\"$(GST_CONFIG_DIR)\"
|
||||
endif
|
||||
|
||||
### FIXME DELETEME
|
||||
### these flags are from the original branch
|
||||
### wrobell reckons we don't need them
|
||||
### LDADD = $(GST_LIBS)
|
||||
### CFLAGS = $(GST_CFLAGS) -DGST_CONFIG_DIR=\"$(GST_CONFIG_DIR)\" $(GLIB_CFLAGS) $(XML_CFLAGS)
|
||||
|
||||
EXTRA_DIST = $(man_MANS)
|
||||
|
|
Loading…
Reference in a new issue