I've tried to compile curl 7.34.0 with GSS-API support on HP-UX 11.31 and it fails to link against gssapi.so.
The issue is with HP-UX that is comes with HP flavor of MIT Kerberos. This means that there is no krb5-config nor the lis is called gssapi.so.
It looks like this:
-r-xr-xr-x 1 bin bin 290724 Nov 12 2010 /usr/lib/hpux32/libgss.so
lr-xr-xr-x 1 bin bin 23 Nov 20 14:28 /usr/lib/hpux32/libgssapi_krb5.so -> ./gss/libgssapi_krb5.so
I have changed LIBS="-lgss $LIBS" and I was able to link and use the curl binary. We simply need another case for HP-UX in "elif test -z "$GSSAPI_LIB_DIR"; then" and the closing "else" block in configure.ac.
I patch can be tested and approved.