Lines Matching +full:gcc +full:- +full:valgrind
16 # FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
30 AC_CONFIG_AUX_DIR([build-aux])
33 # Require xorg-macros minimum of 1.12 for XORG_WITH_XSLTPROC
35 [m4_fatal([must install xorg-macros 1.12 or later before running autoconf/autogen])])
40 AM_INIT_AUTOMAKE([1.10 foreign dist-bzip2])
59 export CFLAGS="$CFLAGS -Werror"
67 LT_INIT([disable-static])
69 dnl pthread-stubs is mandatory on some BSD platforms, due to the nature of the
72 linux* | cygwin* | darwin* | solaris* | *-gnu* | gnu* | openbsd*)
81 PKG_CHECK_MODULES(PTHREADSTUBS, pthread-stubs >= 0.4)
92 [AS_HELP_STRING([--enable-udev],
97 AS_HELP_STRING([--disable-libkms],
102 AS_HELP_STRING([--disable-intel],
107 AS_HELP_STRING([--disable-radeon],
112 AS_HELP_STRING([--disable-amdgpu],
117 AS_HELP_STRING([--disable-nouveau],
122 AS_HELP_STRING([--disable-vmwgfx],
126 AC_ARG_ENABLE(omap-experimental-api,
127 AS_HELP_STRING([--enable-omap-experimental-api],
131 AC_ARG_ENABLE(exynos-experimental-api,
132 AS_HELP_STRING([--enable-exynos-experimental-api],
137 AS_HELP_STRING([--disable-freedreno],
141 AC_ARG_ENABLE(freedreno-kgsl,
142 AS_HELP_STRING([--enable-freedreno-kgsl],
146 AC_ARG_ENABLE(tegra-experimental-api,
147 AS_HELP_STRING([--enable-tegra-experimental-api],
151 AC_ARG_ENABLE(rockchip-experimental-api,
152 AS_HELP_STRING([--enable-rockchip-experimental-api],
157 AS_HELP_STRING([--disable-vc4],
161 AC_ARG_ENABLE(etnaviv-experimental-api,
162 AS_HELP_STRING([--enable-etnaviv-experimental-api],
166 AC_ARG_ENABLE(install-test-programs,
167 AS_HELP_STRING([--enable-install-test-programs],
193 [AC_CHECK_LIB([rt], [clock_gettime], [CLOCK_LIB=-lrt],
201 dnl Use lots of warning flags with with gcc and compatible compilers
208 MAYBE_WARN="-Wall -Wextra -Werror=undef \
209 -Wsign-compare -Werror-implicit-function-declaration \
210 -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \
211 -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
212 -Wpacked -Wswitch-enum -Wmissing-format-attribute \
213 -Wstrict-aliasing=2 -Winit-self \
214 -Wdeclaration-after-statement -Wold-style-definition \
215 -Wno-unused-parameter \
216 -Wno-attributes -Wno-long-long -Winline -Wshadow \
217 -Wno-missing-field-initializers"
228 # gcc, so test all desired options against the current
235 # options (-Wall and -Wextra) up front and the -Wno options
258 AC_CHECK_HEADER([atomic_ops.h], drm_cv_atomic_primitives="libatomic-ops")
273 if test "x$drm_cv_atomic_primitives" = "xlibatomic-ops"; then
274 AC_DEFINE(HAVE_LIB_ATOMIC_OPS, 1, [Enable if you have libatomic-ops-dev installed])
281 dnl $1 - value to be evaluated. Eg. $INTEL, $NOUVEAU, ...
282 dnl $2 - libdrm shortname. Eg. intel, freedreno, ...
283 dnl $3 - GPU name/brand. Eg. Intel, NVIDIA Tegra, ...
284 dnl $4 - Configure switch. Eg. intel, omap-experimental-api, ...
287 …ling with -march=native, or install the libatomics-op-dev package, or, failing both of those, disa…
288 …e not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-…
306 LIBDRM_ATOMICS_NOT_FOUND_MSG($OMAP, omap, OMAP, omap-experimental-api)
312 LIBDRM_ATOMICS_NOT_FOUND_MSG($TEGRA, tegra, NVIDIA Tegra, tegra-experimental-api)
315 LIBDRM_ATOMICS_NOT_FOUND_MSG($ETNAVIV, etnaviv, Vivante, etnaviv-experimental-api)
363 freebsd* | kfreebsd*-gnu)
426 # If pkg-config does not find cunit, check it using AC_CHECK_LIB. We
427 # do this because Debian (Ubuntu) lacks pkg-config file for cunit.
428 # fixed in 2.1-2.dfsg-3: http://anonscm.debian.org/cgit/collab-maint/cunit.git/commit/?h=debian
432 CUNIT_LIBS="-lcunit"
472 AC_ARG_ENABLE([cairo-tests],
473 [AS_HELP_STRING([--enable-cairo-tests],
496 AS_HELP_STRING([--enable-manpages], [enable manpages @<:@default=auto@:>@]),
498 AM_CONDITIONAL([BUILD_MANPAGES], [test "x$XSLTPROC" != "x" -a "x$MANS" != "xno"])
500 # check for offline man-pages stylesheet
504 … AS_IF([`"$ac_path_XSLTPROC_TMP" --nonet "$MANPAGES_STYLESHEET" > /dev/null 2>&1`],
514 AC_ARG_ENABLE(valgrind, optenable
515 [AS_HELP_STRING([--enable-valgrind],
516 [Build libdrm with valgrind support (default: auto)])],
517 [VALGRIND=$enableval], [VALGRIND=auto])
518 if test "x$VALGRIND" != xno; then
519 PKG_CHECK_MODULES(VALGRIND, [valgrind], [have_valgrind=yes], [have_valgrind=no])
521 AC_MSG_CHECKING([whether to enable Valgrind support])
522 if test "x$VALGRIND" = xauto; then
523 VALGRIND="$have_valgrind"
526 if test "x$VALGRIND" = "xyes"; then
528 AC_MSG_ERROR([Valgrind support required but not present])
530 AC_DEFINE([HAVE_VALGRIND], 1, [Use valgrind intrinsics to suppress false warnings])
535 AC_MSG_RESULT([$VALGRIND])
537 AC_ARG_WITH([kernel-source],
538 [AS_HELP_STRING([--with-kernel-source],
554 CFLAGS="$CFLAGS -include config.h"