diff options
author | Dave Airlie <airlied@redhat.com> | 2008-03-10 16:22:57 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-03-10 16:22:57 +1000 |
commit | 2b7d32a60ffa6c87fa7a89eb206ed8916a682d93 (patch) | |
tree | fa7090ddb3d066ddcd959f000e10f369bfbf8b93 /configure.ac | |
parent | 1e763626aaefa1ae0cf4d4896c0b7192955e5993 (diff) |
amd: initial pciaccess conversion
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index c219e06..b13576f 100644 --- a/configure.ac +++ b/configure.ac @@ -86,10 +86,21 @@ PKG_CHECK_MODULES(XORG, [xorg-server xproto fontsproto $REQUIRED_MODULES]) sdkdir=$(pkg-config --variable=sdkdir xorg-server) # Checks for libraries. +SAVE_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" +AC_CHECK_DECL(XSERVER_LIBPCIACCESS, + [XSERVER_LIBPCIACCESS=yes],[XSERVER_LIBPCIACCESS=no], + [#include "xorg-server.h"]) +CPPFLAGS="$SAVE_CPPFLAGS" # Checks for header files. AC_HEADER_STDC +if test "x$XSERVER_LIBPCIACCESS" = xyes; then + PKG_CHECK_MODULES([PCIACCESS], [pciaccess >= 0.8.0]) + XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" +fi + AC_SUBST([XORG_CFLAGS]) AC_SUBST([moduledir]) AC_SUBST([AMD_CFLAGS]) |