gstreamer/m4/gst-artsc.m4
Andy Wingo 981cf4d212 this patch fixes arts and artsd compilation problems. this is necessary for make dist to work. i know plugins are bei...
Original commit message from CVS:
this patch fixes arts and artsd compilation problems. this is necessary for make
dist to work. i know plugins are being moved, though, this needs to be ported to
the -plugins module.

* experimental and broken selection now use GST_CHECK_FEATURE, for what it's worth
* crucial fixes to arts m4's that need backporting to autostars and -plugins
* make gst-feature less frantic in reporting missing plugins
* cleanups and misc arts fixes
2001-12-20 20:41:28 +00:00

29 lines
969 B
Text

dnl Perform a check for existence of ARTSC
dnl Richard Boulton <richard-alsa@tartarus.org>
dnl Last modification: 26/06/2001
dnl GST_CHECK_FEATURE(FEATURE-NAME, FEATURE-DESCRIPTION,
dnl DEPENDENT-PLUGINS, TEST-FOR-FEATURE)
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_ARTSC,
[
AC_PATH_PROG(ARTSC_CONFIG, artsc-config, no)
if test "x$ARTSC_CONFIG" = "xno"; then
AC_MSG_WARN([Couldn't find artsc-config])
HAVE_ARTSC=no
ARTSC_LIBS=
ARTSC_CFLAGS=
else
ARTSC_LIBS=`artsc-config --libs`
ARTSC_CFLAGS=`artsc-config --cflags`
dnl AC_CHECK_HEADER uses CPPFLAGS, but not CFLAGS.
dnl FIXME: Ensure only suitable flags result from artsc-config --cflags
CPPFLAGS="$CPPFLAGS $ARTSC_CFLAGS"
AC_CHECK_HEADER(artsc.h, HAVE_ARTSC=yes, HAVE_ARTSC=no)
fi
AC_SUBST(ARTSC_LIBS)
AC_SUBST(ARTSC_CFLAGS)
])