Gotham Patch to configure.in to fix configure error on Mac OS X with gcc version 4.6 and up



if you use gcc 4.6 and up on Mac OS X, the configure script will fail with error:

checking for library containing iconv_open... no
checking for library containing libiconv_open... no
configure: error: Could not find a required library. Please see the README for your platform.

The cause of this is the pkg_check_modules call on line 1142 of configure.in which passes "-L/opt/local/lib -lcdio -lm -liconv -R/opt/local/lib" to the compile. GCC 4.6 and up no longs accepts -R option and will fail.

The fix is to change line 1142 from

[INCLUDES="$INCLUDES $CDIO_CFLAGS"; LIBS="$LIBS $CDIO_LIBS"],

to

[$CDIO_LIBS2 = echo $CDIO_LIBS | sed 's/-R/-Wl,-rpath=/';SINCLUDES="$INCLUDES $CDIO_CFLAGS"; LIBS="$LIBS $CDIO_LIBS2"],