From afc8ce3fd566c73d395fa214f5179c385c790d5b Mon Sep 17 00:00:00 2001 From: Idar Tollefsen Date: Sun, 1 Jan 2012 20:48:29 +0100 Subject: [PATCH] build: Make sure AC_INCLUDES_DEFAULT is used. 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. https://bugzilla.gnome.org/show_bug.cgi?id=667307 Conflicts: configure.ac --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index cc2f7f7c99..0f2e9e3194 100644 --- a/configure.ac +++ b/configure.ac @@ -186,11 +186,11 @@ AM_CONDITIONAL(HAVE_LIBXML_HTML, test "x$HAVE_LIBXML_HTML" = "xyes") dnl used in gst/tcp AC_CHECK_HEADERS([sys/socket.h], - HAVE_SYS_SOCKET_H="yes", HAVE_SYS_SOCKET_H="no") + [HAVE_SYS_SOCKET_H="yes"], [HAVE_SYS_SOCKET_H="no"], [AC_INCLUDES_DEFAULT]) AM_CONDITIONAL(HAVE_SYS_SOCKET_H, test "x$HAVE_SYS_SOCKET_H" = "xyes") dnl used in gst-libs/gst/pbutils and associated unit test -AC_CHECK_HEADERS([process.h sys/types.h sys/wait.h sys/stat.h]) +AC_CHECK_HEADERS([process.h sys/types.h sys/wait.h sys/stat.h], [], [], [AC_INCLUDES_DEFAULT]) dnl also, Windows does not have long long AX_CREATE_STDINT_H @@ -490,7 +490,7 @@ AG_GST_CHECK_FEATURE(X, [X libraries and plugins], CPPFLAGS="$CPPFLAGS $X_CFLAGS" dnl now try to find the HEADER - AC_CHECK_HEADER(X11/Xlib.h, HAVE_X="yes", HAVE_X="no") + AC_CHECK_HEADER([X11/Xlib.h], [HAVE_X="yes"], [HAVE_X="no"], [AC_INCLUDES_DEFAULT]) if test "x$HAVE_X" = "xno" then