I ran into trouble building cpuminer in Linux Mint 15 (64 bit) Cinnamon. Everything was fine until I got to configuring CPFLAGS. It wouldnt take and it was annoying because that is the last step. Here is my solution. This can be done whether your are currently stuck on this step or you are about to do the entire build.
sudo apt-get install make automake build-essential git
sudo apt-get install libcurl4-openssl-dev
git clone git://github.com/pooler/cpuminer.git
cd cpuminer
./autogen.sh
./configure CPPFLAGS=''
make
Then of course just point your miner at your pool of choice: