From alsa-devel-owner@alsa.jcu.cz  Tue Feb 16 18:34:30 1999
Received: from umr.edu (hermes.cc.umr.edu [131.151.1.68])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id SAA08899
	for <alsa-devel@alsa.jcu.cz>; Tue, 16 Feb 1999 18:34:05 +0100
Received: from frb.student.umr.edu (frb.student.umr.edu [131.151.147.50]) via ESMTP by hermes.cc.umr.edu (8.8.7/R.4.20) id LAA13318; Tue, 16 Feb 1999 11:25:00 -0600 (CST)
Received: (from frb@localhost)
	by frb.student.umr.edu (8.9.3/8.9.3/Debian/GNU) id LAA19549
	for alsa-devel@alsa.jcu.cz; Tue, 16 Feb 1999 11:24:59 -0600
Date: Tue, 16 Feb 1999 11:24:59 -0600
From: Franklin Belew <frb@umr.edu>
To: alsa-devel@alsa.jcu.cz
Subject: Re: alsa-util: configure version check incorrect? (aclocal?)
Message-ID: <19990216112459.A622@asylum.umr.edu>
References: <Pine.LNX.3.96.990215205603.8823B-100000@entry.jcu.cz> <Pine.OSF.3.96.990216185710.28456A-100000@alpha.hut.fi>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
In-Reply-To: <Pine.OSF.3.96.990216185710.28456A-100000@alpha.hut.fi>; from Tuomas Heino on Tue, Feb 16, 1999 at 07:02:40PM +0200
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

On Tue, Feb 16, 1999 at 07:02:40PM +0200, Tuomas Heino wrote:
> On Mon, 15 Feb 1999, Jaroslav Kysela wrote:
> 
> > On Mon, 15 Feb 1999, Tuomas Heino wrote:
> > 
> > > On Mon, 15 Feb 1999, Jaroslav Kysela wrote:
> > >
> > > > You have probably old m4 macro file in /usr/share/aclocal directory.
> > > > Remove file /usr/share/aclocal/alsa-lib.m4.
> > > > 
> > > Hmm... is this documented somewhere? the next error: (result of aclocal after rm alsa-lib.m4)
> > > aclocal: configure.in: 13: macro `AM_PATH_ALSA' not found in library
> > 
> > There should be alsa.m4 file in /usr/share/aclocal directory (the alsa-lib
> > package should install this file to this location).
> > 
> Thanks... "aclocal -I /usr/local/share/aclocal" did it for me ;)
> [hmm should alsa-lib's configure --prefix=/usr/local do something to this situation?]
configure can't do anything about this, since it isn't created until after aclocal and autoconf are run.
The way gnome has solved this problem is to add an envvar ACLOCAL_FLAGS and an 
autogen.sh file that uses it. 
simple example:

#!/bin/sh
aclocal $ACLOCAL_FLAGS
automake
autoconf
configure "$@"
echo 
echo "Now type 'make' to compile alsa."


This will run aclocal with the flags set, then automake, and any arguments passed to autogen.sh are put on the configure line
so doing something like this would be ideal:
$ export ACLOCAL_FLAGS="-I /usr/local/share/aclocal"
$ ./autogen.sh --prefix=/usr/local


Frank Belew

