Commit e8566831 authored by Thomas Guillem's avatar Thomas Guillem

configure: add HAVE_TIZEN_SDK define

And simplify Tizen detection: don't use TIZEN_SDK_MAJOR/MINOR that are only
defined from the Tizen port build script.
parent 146ad882
......@@ -339,15 +339,12 @@ AM_CONDITIONAL(HAVE_ANDROID, test "${HAVE_ANDROID}" = "1")
dnl Tizen (minimum SDK version: 2.3)
AS_IF([test "$SYS" = linux],[
AC_MSG_CHECKING([for Tizen])
AC_TRY_COMPILE([#include <tizen.h>
#if !defined(TIZEN_SDK_MAJOR) && !defined(TIZEN_SDK_MINOR)
# error Not Tizen
#endif
#if TIZEN_SDK_MAJOR < 2 || (TIZEN_SDK_MAJOR == 2 && TIZEN_SDK_MINOR < 3)
# error Tizen SDK too old
#endif
],[],[
AC_PREPROC_IFELSE([AC_LANG_PROGRAM(
[[#include <tizen.h>
]],[[;]])
],[
HAVE_TIZEN="1"
AC_DEFINE([HAVE_TIZEN_SDK], [1], [Define to 1 if vlc is built against Tizen SDK])
AC_MSG_RESULT([yes])
],[
AC_MSG_RESULT([no])
......
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