mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
configure: Use new AG_GST_PLATFORM macro
This commit is contained in:
parent
a7301aeef0
commit
59d68619f4
1 changed files with 1 additions and 37 deletions
38
configure.ac
38
configure.ac
|
@ -197,43 +197,7 @@ fi
|
|||
AC_SUBST(GST_HAVE_UNALIGNED_ACCESS_DEFINE)
|
||||
|
||||
dnl check for platform specific settings
|
||||
case $host_os in
|
||||
rhapsody*)
|
||||
AC_DEFINE_UNQUOTED(GST_EXTRA_MODULE_SUFFIX, [".dylib"], [Extra platform specific plugin suffix])
|
||||
;;
|
||||
darwin*)
|
||||
AC_DEFINE_UNQUOTED(GST_EXTRA_MODULE_SUFFIX, [".dylib"], [Extra platform specific plugin suffix])
|
||||
AC_DEFINE_UNQUOTED(HAVE_OSX, 1, [Defined if compiling for OSX])
|
||||
;;
|
||||
cygwin*)
|
||||
AC_DEFINE_UNQUOTED(GST_HAVE_UNSAFE_FORK, 1, [Defined when registry scanning through fork is unsafe])
|
||||
;;
|
||||
mingw* | msvc* | mks*)
|
||||
dnl HAVE_WIN32 currently means "disable POSIXisms".
|
||||
AC_DEFINE_UNQUOTED(HAVE_WIN32, 1, [Defined if compiling for Windows])
|
||||
|
||||
dnl define __MSVCRT_VERSION__ version if not set already by the
|
||||
dnl compiler (ie. mostly for mingw). This is needed for things like
|
||||
dnl __stat64 to be available. If set by the compiler, ensure it's
|
||||
dnl new enough - we need at least WinXP SP2.
|
||||
AC_TRY_COMPILE([ ], [ return __MSVCRT_VERSION__; ], [
|
||||
AC_TRY_COMPILE([ ], [
|
||||
#if __MSVCRT_VERSION__ < 0x0601
|
||||
#error "MSVCRT too old"
|
||||
#endif
|
||||
], [
|
||||
AC_MSG_NOTICE([MSVCRT version looks ok])
|
||||
], [
|
||||
AC_MSG_ERROR([MSVCRT version too old, need at least WinXP SP2])
|
||||
])
|
||||
], [
|
||||
AC_MSG_NOTICE([Setting MSVCRT version to 0x0601])
|
||||
AC_DEFINE_UNQUOTED(__MSVCRT_VERSION__, 0x0601, [We need at least WinXP SP2 for __stat64])
|
||||
])
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
AG_GST_PLATFORM
|
||||
|
||||
dnl * software *
|
||||
|
||||
|
|
Loading…
Reference in a new issue