Install Autoconf, Automake trying to install pcre
You can use the work-around published here to solve the problem:

https://github.com/iriscouch/build-couchdb/issues/77

The work-around consists of disabling the generation of the info pages (manual).

It seems this error is there because you have an older, incompatible version of TeX. Perhaps you're using an old version of OS X.