Commit e127e2d8 authored by Felix Paul Kühne's avatar Felix Paul Kühne Committed by Tristan Matthews

build system: add conditional variables to differentiate between iOS and OS X

Refs #57972

(cherry-picked from vlc commit 8a605bab67b8fd21650269031b57a78c712e8031)

Change-Id: I9e20f8a506b490cb86469038373f3950a17f8f0e
parent 6e1abee4
......@@ -33,6 +33,7 @@ dnl
dnl Check the operating system
dnl
HAVE_WIN64="0"
HAVE_IOS="0"
HAVE_OSX="0"
case "${host_os}" in
......@@ -46,6 +47,14 @@ case "${host_os}" in
;;
darwin*)
SYS=darwin
AC_EGREP_CPP(yes,
[#import <TargetConditionals.h>
#if TARGET_OS_IPHONE
yes
#endif],
[HAVE_IOS="1"],
[HAVE_OSX="1"])
;;
mingw32*)
SYS=mingw32
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment