This page describes how to build mesa with llvm support.

First build llvm from svn with clang support:

svn co llvm
cd llvm
./configure --enable-pic
make install
cd tools
svn co clang
cd clang
make install

Next build mesa with llvm support:

git clone git+ssh://
cd mesa
git checkout --track -b gallium-0.2 origin/gallium-0.2
make linux-llvm

Mesa-7.9 [still unreleased as of 17-09-2010, but already branched from master] has configure switch for autoconf-based build system: