The LT_INIT autoconf macro checks if the system can build shared libraries, which couch needs:
The AC_DISABLE/ENABLE_* requests that the system builds shared libraries and not static libraries, but does not enforce it. It should.
An example of a failure mode is the observed configure output on a Synology (linux-based) system:
In this case, gcc returns a broken path to ld, but configure succeeds even though no shared libraries will/can be built. 'make' does fail later, but not in a way that makes the source of the failure obvious:
which arises because the so files are not built. In this case, configuration and make succeed when the correct path to ld is given (e.g. ./configure LD=/path/to/ld). However, generally, configure should die with an appropriate error if the system can not build shared libraries.
Change of the above lines in configure.ac:
And regeneration of configure. I'm happy to produce a pull request for this.