[alsa-devel] [PATCH] [alsa-utils] Fix build with library options disabled
smcnam at gmail.com
Fri Jun 27 23:57:26 CEST 2008
It's been a perennial problem with alsa-utils that there is no
configure option to disable the seq and amidi apps. These apps depend
on how you configured alsa-lib: If you pass --disable-seq
--disable-instr to the alsa-lib configure, there does not currently
exist a configure-time option to allow alsa-utils to build against
this particular alsa-lib.
Of course, you could hack makefiles and stuff so it doesn't build seq
and amidi, but I thought it would be nice to commit changes to the
configure.in and Makefile.am to upstream, so that we can disable seq
and amidi the "right" way.
The attached patches are diffed against the latest revision of
alsa-utils. With this change, you can:
1. Disable building amidi by passing --disable-midi to the configure
2. Disable building seq by passing --disable-seq to the configure in alsa-utils.
With this change, we can get a "good" build of alsa-utils (albeit,
missing two of the utilities, which is intended) in the following
1. seq and instr are DISABLED in alsa-lib; seq and midi are DISABLED
2. seq and instr are ENABLED in alsa-lib; seq and midi are ENABLED in
alsa-utils (the default).
3. seq and instr are ENABLED in alsa-lib; seq and midi are DISABLED in
Of course, it does not build cleanly if seq and instr are DISABLED in
alsa-lib, but seq and midi are ENABLED in alsa-utils.
Patches are attached -- please let me know if there any issues, and if
not, could one of the committers please commit them.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 917 bytes
Desc: not available
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20080627/d227db3b/attachment.bin
More information about the Alsa-devel