cmus: fix configure checks against host files

cmuses configure checks an absolute path for the existence of a kernel
header. This results in a check against the hosts version of
/usr/include/sys/soundcard.h, which potentially does not exists (at
least on my system).

This patch supersedes http://patchwork.openwrt.org/patch/2713/.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@39417 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2014-01-29 12:58:17 +00:00
parent e69dca813c
commit 6469bc1c61

View File

@ -0,0 +1,11 @@
--- a/configure 2011-04-23 22:35:36.000000000 +0200
+++ b/configure 2014-01-23 15:50:42.139304856 +0100
@@ -247,7 +247,7 @@
OSS_CFLAGS=""
OSS_LIBS=""
msg_checking "for header <sys/soundcard.h>"
- if test -f /usr/include/sys/soundcard.h
+ if check_header sys/soundcard.h
then
msg_result "yes"
makefile_vars OSS_CFLAGS OSS_LIBS