Re: [ecasound] Autoconf stuff for ecasound utilities?

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [ecasound] Autoconf stuff for ecasound utilities?
From: Kai Vehmanen (k_AT_eca.cx)
Date: Sun Mar 10 2002 - 21:35:33 EET


On Sat, 9 Mar 2002, Dan J Lyons wrote:

> Anyone got a quick easy m4 thing or whatever
> to throw in an ecasound utility for autoconf/automake?

Ecawave and ecamegapedal both have a check for libecasound. The macro they
use is AC_CHECK_LIBECASOUND. You'll find it in the file
ecamegapedal/acinclude.m4. The latest version of the macro is 8 and can be
found from ecawave's and ecamegapedal's CVS-tree.

To use it, just add the macro to your project's acinclude.m4, and then add
"AC_CHECK_LIBECASOUND(8)" to configure.in (and replace 8 with the
interface version you need; ecasound 2.0 => 7, ecasound 2.1/2 => 8, etc).

If you are not linking against libecasound, but just use the ecasound
executable, you could also use something like:

AC_PATH_PROG(ECASOUND,ecasound,none)
if test x$ECASOUND = xnone; then
 AC_MSG_ERROR([** ecasound not installed! **])
fi

... in your configure.in.

PS A good resource for autotool information is
   http://sources.redhat.com/autobook/autobook/autobook_toc.html

-- 
 http://www.eca.cx
 Audio software for Linux!

-- To unsubscribe send message 'unsubscribe' in the body of the message to <ecasound-list-request_AT_wakkanet.fi>.


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Sun Mar 10 2002 - 21:26:18 EET