Indeed, your config.log says libGL can't be found. I don't know where it's supposed to be found in Mac OS X, although autoconf is supposed to know where to look.
You should try to locate libgl.dylib and gl.h manually and add their directories to CFLAGS and LDFLAGS for configure, like this:
./configure CFLAGS=-I/directory/containing/gl.h/ LDFLAGS=-L/directory/containing/libgl.dylib
Also, your config.log says libarchive isn't installed. You should install it first if you want to use zipped ROMs.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.