[vlc-commits] configure: add detection for tvOS

Felix Paul Kühne git at videolan.org
Fri Sep 11 15:29:28 CEST 2015


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Sep 11 12:37:41 2015 +0200| [c690d2459c0997acb848d6ccad34efd95f54e3b3] | committer: Felix Paul Kühne

configure: add detection for tvOS

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c690d2459c0997acb848d6ccad34efd95f54e3b3
---

 configure.ac |   16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index e31edfd..3089154 100644
--- a/configure.ac
+++ b/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>
@@ -289,8 +300,9 @@ AM_CONDITIONAL(HAVE_LINUX,   test "${SYS}" = "linux")
 AM_CONDITIONAL(HAVE_OS2,     test "${SYS}" = "os2")
 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_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



More information about the vlc-commits mailing list