Don't want to use LCMS

I downloaded, built and installed libraw (Mac version). The command line samples work. Tried to build a simple application in Xcode (basically a copy of dcraw_half). I get errors like: Undefined symbol: _cmsCloseProfile. I don't want to include lcms. What file(s) do I change to not require lcms ? Or in other words, where do I set --disable-lcms ? I am not a frequent user of configure files, so pardon if this is a noobi question.
Also in the realm of nits: I get 5 warnings like:
This function declaration is not a prototype
DllDef const char *libraw_version();
I think the compiler wants it to be:
DllDef const char *libraw_version(void);

Thanks.

Forums: 

If you use ./configure script

If you use ./configure script to build libraw, use --disable-lcms to disable lcms auto-detection.

Alternatively you can use make -f Makefile.dist, LCMS section is disabled (commented out) by default.

-- Alex Tutubalin @LibRaw LLC

Don't want to use LCMS

Ok, I found the problem. It didn't really involve lcms.
I had removed pkgconfig from /usr/local/lib. However pkgconfig is required for static libraries (specifically libraw_r.a which I was trying to use). I restored pkgconfig and compiled and ran my code.
Thanks for your help.