configure.ac: Require libpciaccess for int10
authorConnor Behan <connor.behan@gmail.com>
Sat, 16 Nov 2013 01:00:40 +0000 (17:00 -0800)
committerKeith Packard <keithp@keithp.com>
Wed, 27 Nov 2013 05:47:46 +0000 (21:47 -0800)
A --disable-pciaccess build will fail with an int10 module other than
stub.

Signed-off-by: Connor Behan <connor.behan@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
configure.ac

index c7ec947..6197e9b 100644 (file)
@@ -1830,6 +1830,9 @@ if test "x$XORG" = xyes; then
                if test "x$CONFIG_UDEV_KMS" = xyes; then
                        AC_MSG_ERROR([Platform device enumeration requires libpciaccess])
                fi
+               if test "x$INT10" != xstub; then
+                       AC_MSG_ERROR([Cannot build int10 without libpciaccess])
+               fi
        fi
        AC_MSG_RESULT([$PCI])