Setting up a fresh Ubuntu install to build and compile sources fetched via git, I found I needed to do the following:
First, you need pixman too. It is also fetched with a git command:
git clone git://anongit.freedesktop.org/git/pixman
In order to be able to run autogen.sh in either pixman or cairo directory, you will need to install the following packages:
To get a "standard" library built for use under X11, should install the following packages:
When you use autogen.sh, you don't need to run ./configure as instructed in the README file.