Libgdiplus on mac

Hello,
During compilation on Snow Leopard, I got this error.

libtool: link: gcc -no-cpp-precomp -g -O2 -pthread -flat_namespace -undefined suppress -o .libs/testreversepath testreversepath.o  ../src/.libs/libgdiplus.0.0.0.dylib -L/usr/local/Cellar/glib/2.40.0_1/lib -L/usr/local/opt/gettext/lib -L/usr/X11/lib -L/lib -lglib-2.0 -lintl -lcairo -ljpeg -ltiff -lgif -lpng12 -pthread

ld: warning: directory '/lib' following -L not found
make[2]: Nothing to be done for `all-am'.

Does it come from configure file ? I noticed the concerned lines would be 2235 and more. Perhaps we can fix by adding a condition. However, I don't program in Shell...

Thanks everyone.