Use linux-any instead of a hardcoded list of negated architectures
[fmit.git] / cmake / FindOSS.cmake
1 # - Find Oss
2 # Find Oss headers and libraries.
3 #
4 #  OSS_INCLUDE_DIR  -  where to find soundcard.h, etc.
5 #  OSS_FOUND        - True if Oss found.
6
7
8 FIND_PATH(LINUX_OSS_INCLUDE_DIR "linux/soundcard.h"
9   "/usr/include" "/usr/local/include"
10 )
11
12 FIND_PATH(SYS_OSS_INCLUDE_DIR "sys/soundcard.h"
13   "/usr/include" "/usr/local/include"
14 )
15
16 FIND_PATH(MACHINE_OSS_INCLUDE_DIR "machine/soundcard.h"
17   "/usr/include" "/usr/local/include"
18 )
19
20 SET(OSS_FOUND FALSE)
21
22 IF(LINUX_OSS_INCLUDE_DIR)
23         SET(OSS_FOUND TRUE)
24         SET(OSS_INCLUDE_DIR ${LINUX_OSS_INCLUDE_DIR})
25         SET(HAVE_LINUX_SOUNDCARD_H 1)
26 ENDIF()
27
28 IF(SYS_OSS_INCLUDE_DIR)
29         SET(OSS_FOUND TRUE)
30         SET(OSS_INCLUDE_DIR ${SYS_OSS_INCLUDE_DIR})
31         SET(HAVE_SYS_SOUNDCARD_H 1)
32 ENDIF()
33
34 IF(MACHINE_OSS_INCLUDE_DIR)
35         SET(OSS_FOUND TRUE)
36         SET(OSS_INCLUDE_DIR ${MACHINE_OSS_INCLUDE_DIR})
37         SET(HAVE_MACHINE_SOUNDCARD_H 1)
38 ENDIF()
39
40 MARK_AS_ADVANCED (
41         OSS_FOUND
42         OSS_INCLUDE_DIR
43         LINUX_OSS_INCLUDE_DIR
44         SYS_OSS_INCLUDE_DIR
45         MACHINE_OSS_INCLUDE_DIR
46