Looks like it might be C++ related:
http://lists.gnu.org/archive/html/libtool/2016-06/msg00007.html
suggestion later in the thread was to use the libtool script from pkgsrc instead of the one built by autoconf.