Just to make this more clear for anyone else who may run into this and google this thread.
If, after setting up a build folder, and running …/configure within the build folder, you get a single error when running make saying:
SDL_image: cannot find autogen-1.13 blah blah
Be sure to get the automake and autoconf packages (sudo atp-get install automake autoconf)
Then you need to go back to the root directory and run ./autogen.sh
You should be all set!
best of luck