diff options
author | Max Kellermann <max@duempel.org> | 2015-05-05 18:45:51 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-05-26 09:59:23 +0200 |
commit | 6280531f30b4c3385b42ffc2573f183db2ed72ee (patch) | |
tree | 9b5420b65958b3f4aee205966404a9d4517eeda4 /configure.ac | |
parent | ced1ec2d623f25abded69755cf3ba5d8ccca1cc1 (diff) |
configure.ac: detect libxrandr with pkg-config
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 8f2319f50e..5dcc3bef2b 100644 --- a/configure.ac +++ b/configure.ac @@ -1405,7 +1405,8 @@ if test "$use_x11" = "yes"; then PKG_CHECK_MODULES([XEXT], [xext], [INCLUDES="$INCLUDES $XEXT_CFLAGS"; LIBS="$LIBS $XEXT_LIBS"], AC_MSG_ERROR($missing_library)) - AC_CHECK_LIB([Xrandr], [main],, + PKG_CHECK_MODULES([XRANDR], [xrandr], + [INCLUDES="$INCLUDES $XRANDR_CFLAGS"; LIBS="$LIBS $XRANDR_LIBS"], AC_MSG_ERROR($missing_library)) PKG_CHECK_MODULES([DRM], [libdrm], [INCLUDES="$INCLUDES $DRM_CFLAGS"; LIBS="$LIBS $DRM_LIBS"], |