From 20c6677d1b5f8d77325dd878ffa3df1d0fb01864 Mon Sep 17 00:00:00 2001 From: Ben Byer Date: Wed, 5 Sep 2007 14:31:01 -0700 Subject: [PATCH] configure.ac: exclude pci-access dependency from XDarwin XDarwin doesn't need any of this pci stuff since it doesn't talk directly to hardware, so it doesn't make sense to require it when building on OSX/Darwin. --- configure.ac | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index fab5cf34d..cba9d315d 100644 --- a/configure.ac +++ b/configure.ac @@ -1297,8 +1297,6 @@ if test "x$XORG" = xyes -o "x$XGL" = xyes; then dnl Check to see if dlopen is in default libraries (like Solaris, which dnl has it in libc), or if libdl is needed to get it. - PKG_CHECK_MODULES([PCIACCESS], [pciaccess >= 0.8.0]) - XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $DLOPEN_LIBS $GLX_SYS_LIBS" XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" case $host_os in @@ -1496,6 +1494,12 @@ return 0;} ;; esac + if ! test "$XORG_OS" = "Darwin" ; then + PKG_CHECK_MODULES([PCIACCESS], [pciaccess >= 0.8.0]) + XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS" + XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" + fi + if test "x$XORG_OS_PCI" = x ; then XORG_OS_PCI=$XORG_OS fi