Having a similar case and I couldn't use StackAttacks solution as he's referring to SDL2 which is for the legacy code I'm using too new.
Fortunately our friends from askUbuntu had something similar:
tar xvf SDL-1.2.tar.gz
cd SDL-1.2
./configure
make
sudo make install