forked from len0rd/rockbox
check for/use sys/soundcard.h instead (since it works for cygwin too)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7162 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
51700bf75e
commit
741a7158e2
2 changed files with 14 additions and 8 deletions
20
tools/configure
vendored
20
tools/configure
vendored
|
|
@ -52,6 +52,16 @@ crosswincc () {
|
|||
endian="little" # windows is little endian
|
||||
}
|
||||
|
||||
checksoundcard () {
|
||||
if test -n "$codecs"; then
|
||||
if test -f "/usr/include/sys/soundcard.h"; then
|
||||
# We have a header file so we can build the sound code
|
||||
use_simsound="#define ROCKBOX_HAS_SIMSOUND 1"
|
||||
fi # header file present
|
||||
fi # has codecs
|
||||
}
|
||||
|
||||
|
||||
simcc () {
|
||||
|
||||
# default tool setup for native building
|
||||
|
|
@ -73,6 +83,7 @@ simcc () {
|
|||
# x11 version
|
||||
GCCOPTS="$GCCOPTS"
|
||||
LDOPTS='-L/usr/X11R6/lib -lSM -lICE -lXt -lX11 -lXmu -lSM -lICE -lX11 -lpthread'
|
||||
checksoundcard
|
||||
fi
|
||||
output="rockboxui.exe" # use this as output binary name
|
||||
;;
|
||||
|
|
@ -82,14 +93,9 @@ simcc () {
|
|||
GCCOPTS="$GCCOPTS"
|
||||
LDOPTS='-L/usr/X11R6/lib -lX11 -lm -lXt -lXmu -lnsl -ldl -lpthread'
|
||||
if [ "$simver" = "win32" ]; then
|
||||
crosswincc # setup cross-compiler
|
||||
crosswincc # setup cross-compiler
|
||||
else
|
||||
if test -n "$codecs"; then
|
||||
if test -f "/usr/include/linux/soundcard.h"; then
|
||||
# We have a header file so we can build the sound code
|
||||
use_simsound="#define ROCKBOX_HAS_SIMSOUND 1"
|
||||
fi # header file present
|
||||
fi # has codecs
|
||||
checksoundcard
|
||||
fi # not a cross-compiler
|
||||
;;
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <linux/soundcard.h>
|
||||
#include <sys/soundcard.h>
|
||||
|
||||
#include "sound.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue