... checking ldap.h usability... yes checking ldap.h presence... yes checking for ldap.h... yes checking for ldap_initialize in -lldap... yes checking for libgnutls-config... no 'libgnutls-config' and 'libgnutls-extra-config' scripts have been removed in >=net-libs/gnutls-2.7.1, so 'pkg-config gnutls' / 'pkg-config gnutls-extra' should be used.
reported upstream - please copy patch from there.
upstream did their own (better) patch http://www.cups.org/strfiles/3178/str3178.patch
Thanks for the fix and taking it upstream, patch is in >=net-print/cups-1.3.10-r2.