When configuring a build on Mac OS X and Darwin, the generated makefile.in doesn't define a value for the RPATH makefile variable. As a result, the path to the library directory isn't embedded into the build. In turn, this leads to failures running the generated executables in dynamic builds.
A placeholder workaround is to define DYLD_LIBRARY_PATH.
The correct resolution is to determine the correct value for the RPATH variable.