From: Rob Herring Date: Wed, 4 May 2016 02:02:46 +0000 (-0500) Subject: configure.ac: add pthreadstubs support X-Git-Tag: upstream/17.1.0~9551 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f4869a2089c6172feff382e177d74ac68c241a7;p=platform%2Fupstream%2Fmesa.git configure.ac: add pthreadstubs support Add pthreadstubs to avoid pulling in full pthreads library. GBM will be the first user. Signed-off-by: Rob Herring Reviewed-by: Emil Velikov Reviewed-by: Eric Anholt --- diff --git a/configure.ac b/configure.ac index de62e8b..3499e99 100644 --- a/configure.ac +++ b/configure.ac @@ -800,6 +800,10 @@ dnl to -pthread, which causes problems if we need -lpthread to appear in dnl pkgconfig files. test -z "$PTHREAD_LIBS" && PTHREAD_LIBS="-lpthread" +PKG_CHECK_MODULES(PTHREADSTUBS, pthread-stubs) +AC_SUBST(PTHREADSTUBS_CFLAGS) +AC_SUBST(PTHREADSTUBS_LIBS) + dnl SELinux awareness. AC_ARG_ENABLE([selinux], [AS_HELP_STRING([--enable-selinux],