mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-20 06:16:13 +00:00
configure.ac: Fix spacing
Almost all based on vim's config file type. It got it wrong in a few places which were fixed by hand. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
parent
b8e5965e8f
commit
90f0b3dcf3
94
configure.ac
94
configure.ac
@ -22,9 +22,9 @@
|
|||||||
|
|
||||||
AC_PREREQ([2.60])
|
AC_PREREQ([2.60])
|
||||||
AC_INIT([intel-gpu-tools],
|
AC_INIT([intel-gpu-tools],
|
||||||
[1.3],
|
[1.3],
|
||||||
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
|
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
|
||||||
[intel-gpu-tools])
|
[intel-gpu-tools])
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR([Makefile.am])
|
AC_CONFIG_SRCDIR([Makefile.am])
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
@ -41,8 +41,8 @@ AM_MAINTAINER_MODE
|
|||||||
# Checks for functions, headers, structures, etc.
|
# Checks for functions, headers, structures, etc.
|
||||||
AC_CHECK_HEADERS([termios.h])
|
AC_CHECK_HEADERS([termios.h])
|
||||||
AC_CHECK_MEMBERS([struct sysinfo.totalram],[],[],[AC_INCLUDES_DEFAULT
|
AC_CHECK_MEMBERS([struct sysinfo.totalram],[],[],[AC_INCLUDES_DEFAULT
|
||||||
#include <sys/sysinfo.h>
|
#include <sys/sysinfo.h>
|
||||||
])
|
])
|
||||||
AC_CHECK_FUNCS([swapctl])
|
AC_CHECK_FUNCS([swapctl])
|
||||||
AC_CHECK_FUNCS([asprintf])
|
AC_CHECK_FUNCS([asprintf])
|
||||||
|
|
||||||
@ -60,17 +60,15 @@ PKG_CHECK_MODULES(DRM, [libdrm_intel >= 2.4.38 libdrm])
|
|||||||
PKG_CHECK_MODULES(PCIACCESS, [pciaccess >= 0.10])
|
PKG_CHECK_MODULES(PCIACCESS, [pciaccess >= 0.10])
|
||||||
|
|
||||||
# for dma-buf tests
|
# for dma-buf tests
|
||||||
AC_ARG_ENABLE(nouveau,
|
AC_ARG_ENABLE(nouveau, AS_HELP_STRING([--disable-nouveau],
|
||||||
AS_HELP_STRING([--disable-nouveau],
|
[Enable use of nouveau API for prime tests (default: enabled)]),
|
||||||
[Enable use of nouveau API for prime tests (default: enabled)]),
|
[NOUVEAU=$enableval], [NOUVEAU=yes])
|
||||||
[NOUVEAU=$enableval], [NOUVEAU=yes])
|
|
||||||
if test "x$NOUVEAU" = xyes; then
|
if test "x$NOUVEAU" = xyes; then
|
||||||
PKG_CHECK_MODULES(DRM_NOUVEAU, [libdrm_nouveau >= 2.4.33])
|
PKG_CHECK_MODULES(DRM_NOUVEAU, [libdrm_nouveau >= 2.4.33])
|
||||||
AC_DEFINE(HAVE_NOUVEAU, 1, [Have nouveau support])
|
AC_DEFINE(HAVE_NOUVEAU, 1, [Have nouveau support])
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(HAVE_NOUVEAU, [test "x$NOUVEAU" = xyes])
|
AM_CONDITIONAL(HAVE_NOUVEAU, [test "x$NOUVEAU" = xyes])
|
||||||
|
|
||||||
|
|
||||||
# for testdisplay
|
# for testdisplay
|
||||||
PKG_CHECK_MODULES(CAIRO, cairo)
|
PKG_CHECK_MODULES(CAIRO, cairo)
|
||||||
PKG_CHECK_MODULES(LIBUDEV, [libudev], [udev=yes], [udev=no])
|
PKG_CHECK_MODULES(LIBUDEV, [libudev], [udev=yes], [udev=no])
|
||||||
@ -84,37 +82,37 @@ PKG_CHECK_MODULES(GLIB, glib-2.0)
|
|||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Define a configure option for the shadder debugger
|
# Define a configure option for the shadder debugger
|
||||||
AC_ARG_ENABLE(shader-debugger, AS_HELP_STRING([--enable-shader-debugger],
|
AC_ARG_ENABLE(shader-debugger, AS_HELP_STRING([--enable-shader-debugger],
|
||||||
[Enable shader debugging support [autodetected]]),
|
[Enable shader debugging support [autodetected]]),
|
||||||
[BUILD_SHADER_DEBUGGER="$enableval"], [BUILD_SHADER_DEBUGGER=auto])
|
[BUILD_SHADER_DEBUGGER="$enableval"], [BUILD_SHADER_DEBUGGER=auto])
|
||||||
|
|
||||||
# Shadder debugger depends on python3, intel-genasm and objcopy
|
# Shadder debugger depends on python3, intel-genasm and objcopy
|
||||||
if test "x$BUILD_SHADER_DEBUGGER" != xno; then
|
if test "x$BUILD_SHADER_DEBUGGER" != xno; then
|
||||||
# Check Python 3 is installed
|
# Check Python 3 is installed
|
||||||
if test "$PYTHON" = ":" ; then
|
if test "$PYTHON" = ":" ; then
|
||||||
if test "x$BUILD_SHADER_DEBUGGER" = xyes; then
|
if test "x$BUILD_SHADER_DEBUGGER" = xyes; then
|
||||||
AC_MSG_ERROR([Shader debugger requested, python version 3 not found.])
|
AC_MSG_ERROR([Shader debugger requested, python version 3 not found.])
|
||||||
else
|
else
|
||||||
BUILD_SHADER_DEBUGGER=no
|
BUILD_SHADER_DEBUGGER=no
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
# Check for the Intel Chipset assembler compiler
|
||||||
# Check for the Intel Chipset assembler compiler
|
AC_PATH_PROGS([GEN4ASM], intel-gen4asm)
|
||||||
AC_PATH_PROGS([GEN4ASM], intel-gen4asm)
|
if test -z "$GEN4ASM" ; then
|
||||||
if test -z "$GEN4ASM" ; then
|
if test "x$BUILD_SHADER_DEBUGGER" = xyes; then
|
||||||
if test "x$BUILD_SHADER_DEBUGGER" = xyes; then
|
AC_MSG_ERROR([Shader debugger requested, but intel-gen4asm not found.])
|
||||||
AC_MSG_ERROR([Shader debugger requested, but intel-gen4asm not found.])
|
else
|
||||||
else
|
BUILD_SHADER_DEBUGGER=no
|
||||||
BUILD_SHADER_DEBUGGER=no
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
# Check for the objcopy GNU binary utiliy command
|
||||||
# Check for the objcopy GNU binary utiliy command
|
AC_PATH_PROGS([OBJCOPY], objcopy)
|
||||||
AC_PATH_PROGS([OBJCOPY], objcopy)
|
if test -z "$OBJCOPY" ; then
|
||||||
if test -z "$OBJCOPY" ; then
|
if test "x$BUILD_SHADER_DEBUGGER" = xyes; then
|
||||||
if test "x$BUILD_SHADER_DEBUGGER" = xyes; then
|
AC_MSG_ERROR([Shader debugger requested, but objcopy command not found.])
|
||||||
AC_MSG_ERROR([Shader debugger requested, but objcopy command not found.])
|
else
|
||||||
else
|
BUILD_SHADER_DEBUGGER=no
|
||||||
BUILD_SHADER_DEBUGGER=no
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AM_CONDITIONAL(BUILD_SHADER_DEBUGGER, [test "x$BUILD_SHADER_DEBUGGER" != xno])
|
AM_CONDITIONAL(BUILD_SHADER_DEBUGGER, [test "x$BUILD_SHADER_DEBUGGER" != xno])
|
||||||
@ -125,15 +123,15 @@ XORG_TESTSET_CFLAG([THREAD_CFLAGS], [-pthread], [-mt])
|
|||||||
AC_SUBST([THREAD_CFLAGS])
|
AC_SUBST([THREAD_CFLAGS])
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
Makefile
|
Makefile
|
||||||
benchmarks/Makefile
|
benchmarks/Makefile
|
||||||
demos/Makefile
|
demos/Makefile
|
||||||
lib/Makefile
|
lib/Makefile
|
||||||
man/Makefile
|
man/Makefile
|
||||||
scripts/Makefile
|
scripts/Makefile
|
||||||
tests/Makefile
|
tests/Makefile
|
||||||
tools/Makefile
|
tools/Makefile
|
||||||
debugger/Makefile
|
debugger/Makefile
|
||||||
debugger/system_routine/Makefile
|
debugger/system_routine/Makefile
|
||||||
])
|
])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user