mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
7b80441f9d
Without using AC_INCLUDES_DEFAULT explicitly, certain platforms will complain that the header was found, but not usable by the compiler. This happens for instance on Solaris where certain headers are needed to pull in proper defines. Also upgrade to newer autoconf syntax and use proper quoting. https://bugzilla.gnome.org/show_bug.cgi?id=667293
40 lines
1 KiB
Text
40 lines
1 KiB
Text
dnl Check for things that check needs/wants and that we don't check for already
|
|
dnl AM_GST_CHECK_CHECKS()
|
|
|
|
AC_DEFUN([AG_GST_CHECK_CHECKS],
|
|
[
|
|
AC_MSG_NOTICE([Running check unit test framework checks now...])
|
|
|
|
CHECK_MAJOR_VERSION=0
|
|
CHECK_MINOR_VERSION=9
|
|
CHECK_MICRO_VERSION=8
|
|
CHECK_VERSION=$CHECK_MAJOR_VERSION.$CHECK_MINOR_VERSION.$CHECK_MICRO_VERSION
|
|
|
|
AC_SUBST(CHECK_MAJOR_VERSION)
|
|
AC_SUBST(CHECK_MINOR_VERSION)
|
|
AC_SUBST(CHECK_MICRO_VERSION)
|
|
AC_SUBST(CHECK_VERSION)
|
|
|
|
dnl Checks for header files and declarations
|
|
AC_CHECK_HEADERS([unistd.h sys/wait.h sys/time.h], [], [], [AC_INCLUDES_DEFAULT])
|
|
|
|
AC_CHECK_FUNCS([localtime_r])
|
|
|
|
|
|
dnl Create _stdint.h in the top-level directory
|
|
AX_CREATE_STDINT_H
|
|
|
|
dnl Disable subunit support for the time being
|
|
enable_subunit=false
|
|
|
|
if test xfalse = x"$enable_subunit"; then
|
|
ENABLE_SUBUNIT="0"
|
|
else
|
|
ENABLE_SUBUNIT="1"
|
|
fi
|
|
AC_SUBST(ENABLE_SUBUNIT)
|
|
AC_DEFINE_UNQUOTED(ENABLE_SUBUNIT, $ENABLE_SUBUNIT, [Subunit protocol result output])
|
|
|
|
AM_CONDITIONAL(SUBUNIT, test x"$enable_subunit" != "xfalse")
|
|
|
|
])
|