diff options
author | Jaroslav Kysela <perex@perex.cz> | 2001-04-19 10:40:27 +0000 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2001-04-19 10:40:27 +0000 |
commit | 199d3e4277a6b5104cd5182b46ff42625f82639f (patch) | |
tree | fff6900470e0d600f80383b54811ae15df68001f /utils | |
parent | ad9f4cd3a64df4392742d53734a9f21da75c6467 (diff) | |
download | alsa-lib-199d3e4277a6b5104cd5182b46ff42625f82639f.tar.gz |
Working replacement
Diffstat (limited to 'utils')
-rw-r--r-- | utils/alsa.m4 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/utils/alsa.m4 b/utils/alsa.m4 index c4d85cd7..3384b01a 100644 --- a/utils/alsa.m4 +++ b/utils/alsa.m4 @@ -53,9 +53,9 @@ fi dnl add the alsa library ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl" -LIBS=patsubst("$LIBS", "-lm") -LIBS=patsubst("$LIBS", "-ldl") -LIBS=patsubst("$LIBS", " ") +LIBS=`echo $LIBS | sed 's/-lm//'` +LIBS=`echo $LIBS | sed 's/-ldl//'` +LIBS=`echo $LIBS | sed 's/ //'` LIBS="$ALSA_LIBS $LIBS" AC_MSG_RESULT($ALSA_LIBS) @@ -125,6 +125,8 @@ AC_CHECK_LIB([asound], [snd_defaults_card],, if test "x$alsa_found" = "xyes" ; then ifelse([$2], , :, [$2]) + LIBS=`echo $LIBS | sed 's/^-lasound //'` + LIBS=`echo $LIBS | sed 's/ //'` fi if test "x$alsa_found" = "xno" ; then ifelse([$3], , :, [$3]) |