aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Jackson2017-05-04 11:25:01 -0500
committerAdam Jackson2017-05-04 13:36:55 -0500
commit7040fea0280bad527ed4b3d5eee7d7bfbf303efc (patch)
tree4deb4eb3a75454a4366663e0470275df680f53a1 /configure.ac
parent7c27cd7c5da0b87cea0dacd454307e2613d3b415 (diff)
downloadexternal-libdrm-7040fea0280bad527ed4b3d5eee7d7bfbf303efc.tar.gz
external-libdrm-7040fea0280bad527ed4b3d5eee7d7bfbf303efc.tar.xz
external-libdrm-7040fea0280bad527ed4b3d5eee7d7bfbf303efc.zip
configure: Fix the <sys/sysmacros.h> check
AC_HEADER_MAJOR only defines MAJOR_IN_SYSMACROS if major() is _not_ defined by <sys/types.h> alone. It is, but it warns, and that's ugly. To fix this, push -Werror into CFLAGS when invoking AC_HEADER_MAJOR so the warning makes the compilation test fail. Reviewed-by: Emil Velikov <emil.velilkov@collabora.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e5158b7d..43fcf68f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,7 +54,11 @@ AC_USE_SYSTEM_EXTENSIONS
54AC_SYS_LARGEFILE 54AC_SYS_LARGEFILE
55AC_FUNC_ALLOCA 55AC_FUNC_ALLOCA
56 56
57save_CFLAGS="$CFLAGS"
58export CFLAGS="$CFLAGS -Werror"
57AC_HEADER_MAJOR 59AC_HEADER_MAJOR
60CFLAGS="$save_CFLAGS"
61
58AC_CHECK_HEADERS([sys/sysctl.h sys/select.h]) 62AC_CHECK_HEADERS([sys/sysctl.h sys/select.h])
59 63
60# Initialize libtool 64# Initialize libtool