Thomas Vander Stichele | 74d9b17 | 2001-12-17 19:04:24 +0000 | [diff] [blame] | 1 | dnl Perform a check for existence of ARTSC |
| 2 | dnl Richard Boulton <richard-alsa@tartarus.org> |
| 3 | dnl Last modification: 26/06/2001 |
Wrobell | a7465f6 | 2002-01-18 01:06:37 +0000 | [diff] [blame] | 4 | dnl GST_CHECK_ARTSC() |
Thomas Vander Stichele | 74d9b17 | 2001-12-17 19:04:24 +0000 | [diff] [blame] | 5 | dnl |
| 6 | dnl This check was written for GStreamer: it should be renamed and checked |
| 7 | dnl for portability if you decide to use it elsewhere. |
| 8 | dnl |
Thomas Vander Stichele | 99e15a3 | 2004-02-11 16:44:05 +0000 | [diff] [blame] | 9 | AC_DEFUN([GST_CHECK_ARTSC], |
Thomas Vander Stichele | 74d9b17 | 2001-12-17 19:04:24 +0000 | [diff] [blame] | 10 | [ |
| 11 | AC_PATH_PROG(ARTSC_CONFIG, artsc-config, no) |
Thomas Vander Stichele | cd0d1e2 | 2001-12-20 21:27:27 +0000 | [diff] [blame] | 12 | if test "x$ARTSC_CONFIG" = "xno"; then |
Thomas Vander Stichele | 74d9b17 | 2001-12-17 19:04:24 +0000 | [diff] [blame] | 13 | AC_MSG_WARN([Couldn't find artsc-config]) |
| 14 | HAVE_ARTSC=no |
| 15 | ARTSC_LIBS= |
| 16 | ARTSC_CFLAGS= |
| 17 | else |
| 18 | ARTSC_LIBS=`artsc-config --libs` |
| 19 | ARTSC_CFLAGS=`artsc-config --cflags` |
| 20 | dnl AC_CHECK_HEADER uses CPPFLAGS, but not CFLAGS. |
| 21 | dnl FIXME: Ensure only suitable flags result from artsc-config --cflags |
| 22 | CPPFLAGS="$CPPFLAGS $ARTSC_CFLAGS" |
| 23 | AC_CHECK_HEADER(artsc.h, HAVE_ARTSC=yes, HAVE_ARTSC=no) |
| 24 | fi |
| 25 | AC_SUBST(ARTSC_LIBS) |
| 26 | AC_SUBST(ARTSC_CFLAGS) |
| 27 | ]) |
| 28 | |