From e127e2d8a3129365ef45582f1c37e2037de80c5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org> Date: Mon, 17 Nov 2014 15:29:14 -0500 Subject: [PATCH] build system: add conditional variables to differentiate between iOS and OS X Refs #57972 (cherry-picked from vlc commit 8a605bab67b8fd21650269031b57a78c712e8031) Change-Id: I9e20f8a506b490cb86469038373f3950a17f8f0e --- daemon/configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/daemon/configure.ac b/daemon/configure.ac index 35f99f604e..10d863d98d 100644 --- a/daemon/configure.ac +++ b/daemon/configure.ac @@ -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 -- GitLab