Edit configure:
% diff configure.orig configure
3783c3783
< archive_cmds='$CC $(test .$module = .yes && echo -bundle
|| echo
-dynamiclib) $allow_undefined_flag -o $lib $libobjs
$deplibs$linkopts
-install_name $rpath/$soname $(test -n "$verstring" -a
x$verstring !=
x0.0 && echo $verstring)'
---
> archive_cmds='$CC $(test .$module = .yes && echo -bundle
|| echo
-dynamiclib) $allow_undefined_flag -flat_namespace -o $lib
$libobjs
$deplibs$linkopts -install_name $rpath/$soname $(test -n
"$verstring" -a
x$verstring != x0.0 && echo $verstring)'
Basically, you make that line look like the second line. Then
compiling works fine.