gst-artsc.m4 877 Bytes
Newer Older
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
1
2
3
dnl Perform a check for existence of ARTSC
dnl Richard Boulton <richard-alsa@tartarus.org>
dnl Last modification: 26/06/2001
Wrobell's avatar
Wrobell committed
4
dnl GST_CHECK_ARTSC()
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
5
6
7
8
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
9
AC_DEFUN([GST_CHECK_ARTSC],
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
10
11
[ 
  AC_PATH_PROG(ARTSC_CONFIG, artsc-config, no)
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
12
  if test "x$ARTSC_CONFIG" = "xno"; then
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
    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) 
])