Re: [AD] Autoconf hacking... |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On June 12, 2003 10:47 pm, Eric Botcazou wrote:
> > I have no real idea what Im doing in m4 half the time ::) What I want to
> > do is grab ALSA's version and use it to determine some stuff... What I'm
> > doing now is compiling a program (AC_TRY_RUN) and grabing the stuff it
> > "echo"ed to a file.. Kinda dirty.
>
> AC_TRY_RUN appears to be the standard way to determine ALSA's version (see
> the existing test in aclocal.m4). But echoing to a file is not very
> elegant. What do you want to do exactly?
>
what I'm doing exactly is AC_TRY_RUNing a small program that outputs one part
of ALSA's version at a time, and then loading it back into an M4/sh variable.
It works as it is, and detects either main version of alsa fine.
My 0.9 pcm driver is almost done, I just need to do some testing and tweeking,
but as it is, Its in with the 0.5 driver. Not messy really, but If you really
want me to take out the 0.5 code I can.
--
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx
http://strangesoft.net