[PATCH mesa] Include search for non pkg-config libtalloc.
Trevor Woerner
twoerner at gmail.com
Sun Sep 5 12:07:03 PDT 2010
From: Trevor Woerner <twoerner at gmail.com>
Change search for libtalloc so a build which includes it in a
non pkg-config'ized form will succeed.
Signed-off-by: Trevor Woerner <twoerner at gmail.com>
---
My system includes libtalloc and libtalloc-devel in a way that is not
pkg-config'ized. I'm hoping this or something like this will be accepted
so my build can succeed.
configure.ac | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index d3d74ac..be35e02 100644
--- a/configure.ac
+++ b/configure.ac
@@ -486,7 +486,10 @@ xxlib|xdri|xosmesa)
;;
esac
-PKG_CHECK_MODULES([TALLOC], [talloc])
+AC_SEARCH_LIBS([talloc_version_major], [talloc],
+ [TALLOC_LIBS="-ltalloc"
+ AC_CHECK_HEADERS([talloc.h], [TALLOC_CFLAGS=""])],
+ [PKG_CHECK_MODULES([TALLOC], [talloc])])
AC_SUBST([TALLOC_LIBS])
AC_SUBST([TALLOC_CFLAGS])
--
1.7.1
More information about the xorg-devel
mailing list