[PATCH libdrm] Don't require pciaccess if Intel is disabled

Eric Anholt eric at anholt.net
Fri Mar 2 11:11:03 PST 2012


On Thu,  1 Mar 2012 12:21:17 -0500, Matt Turner <mattst88 at gmail.com> wrote:
> Signed-off-by: Matt Turner <mattst88 at gmail.com>
> ---
>  configure.ac |   10 ++++++----
>  1 files changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 97bbcb7..71a596c 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -51,10 +51,6 @@ PKG_CHECK_MODULES(PTHREADSTUBS, pthread-stubs)
>  AC_SUBST(PTHREADSTUBS_CFLAGS)
>  AC_SUBST(PTHREADSTUBS_LIBS)
>  
> -PKG_CHECK_MODULES(PCIACCESS, [pciaccess >= 0.10])
> -AC_SUBST(PCIACCESS_CFLAGS)
> -AC_SUBST(PCIACCESS_LIBS)
> -
>  pkgconfigdir=${libdir}/pkgconfig
>  AC_SUBST(pkgconfigdir)
>  AC_ARG_ENABLE([udev],
> @@ -261,6 +257,12 @@ if test "x$INTEL" != "xno" -o "x$RADEON" != "xno"; then
>      fi
>  fi
>  
> +if test "x$INTEL" != "xno"; then
> +	PKG_CHECK_MODULES(PCIACCESS, [pciaccess >= 0.10])
> +fi
> +AC_SUBST(PCIACCESS_CFLAGS)
> +AC_SUBST(PCIACCESS_LIBS)

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20120302/a689973a/attachment.pgp>


More information about the dri-devel mailing list