mirror of
https://code.videolan.org/videolan/vlc
synced 2024-08-27 04:21:53 +02:00
configure: add detection for tvOS
This commit is contained in:
parent
44e1ebf001
commit
c690d2459c
12
configure.ac
12
configure.ac
@ -100,6 +100,7 @@ dnl
|
||||
HAVE_WIN64="0"
|
||||
HAVE_IOS="0"
|
||||
HAVE_OSX="0"
|
||||
HAVE_TVOS="0"
|
||||
|
||||
case "${host_os}" in
|
||||
"")
|
||||
@ -170,6 +171,16 @@ case "${host_os}" in
|
||||
[HAVE_IOS="1"],
|
||||
[HAVE_OSX="1"])
|
||||
|
||||
AC_EGREP_CPP(yes,
|
||||
[#import <TargetConditionals.h>
|
||||
#if TARGET_OS_TV
|
||||
yes
|
||||
#endif],
|
||||
[HAVE_TVOS="1"
|
||||
HAVE_IOS="0"
|
||||
HAVE_OSX="0"
|
||||
],)
|
||||
|
||||
dnl Allow binaries created on Lion to run on earlier releases
|
||||
AC_EGREP_CPP(yes,
|
||||
[#import <Cocoa/Cocoa.h>
|
||||
@ -291,6 +302,7 @@ AM_CONDITIONAL(HAVE_WIN32, test "${SYS}" = "mingw32")
|
||||
AM_CONDITIONAL(HAVE_WIN64, test "${HAVE_WIN64}" = "1")
|
||||
AM_CONDITIONAL(HAVE_IOS, test "${HAVE_IOS}" = "1")
|
||||
AM_CONDITIONAL(HAVE_OSX, test "${HAVE_OSX}" = "1")
|
||||
AM_CONDITIONAL(HAVE_TVOS, test "${HAVE_TVOS}" = "1")
|
||||
|
||||
dnl
|
||||
dnl Sadly autoconf does not think about testing foo.exe when ask to test
|
||||
|
Loading…
Reference in New Issue
Block a user