./configure: line 6102: syntax error near unexpected token `,'
./configure: line 6102: `LIBCURL_CHECK_CONFIG(, 7.15.2, ,'
I have seen this message scores of times during my compilation attempts under Windows using MSYS/Mingw compiler. Eventually I became convinced that it is a bug in the configure script generated by autogen when run under MSYS/Mingw. Bypassing the libcurl check routine in the configure script allowed the build to proceed to completion. I later discovered by accident that if I ran the autogen under the Cygwin compiler it created a configure script which worked perfectly with MSYS/Mingw (facepalm).
Installing curl into the compiler is fairly easy and did not give me any problems at all. Download the source code http://curl.haxx.se/download.html then build the configure script with ./buildconf. I found with Windows that I got better performance from the miner by installing curl as a static library thus:-
./configure --enable-static --disable-shared
make
make install
However I have no idea if this makes any difference under Mac, but would be interested to find out