--- configure.orig	2021-10-05 04:06:00 +0000
+++ configure	2021-10-05 04:48:25 +0000
@@ -23555,7 +23555,7 @@
 fi
 
 
-LDAPLIBNAME=""
+LDAPLIBNAME="/opt/freeware/lib/libldap.a"
 
 # Check whether --with-ldap-lib was given.
 if test ${with_ldap_lib+y}
@@ -23564,7 +23564,7 @@
 fi
 
 
-LBERLIBNAME=""
+LBERLIBNAME="/opt/freeware/lib/liblber.a"
 
 # Check whether --with-lber-lib was given.
 if test ${with_lber_lib+y}
@@ -23911,7 +23911,7 @@
   printf %s "(cached) " >&6
 else $as_nop
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-l"$LDAPLIBNAME"  $LIBS"
+LIBS="$LDAPLIBNAME $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -23946,7 +23946,7 @@
 #define `printf "%s\n" "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
 _ACEOF
 
-  LIBS="-l"$LDAPLIBNAME" $LIBS"
+  LIBS="$LDAPLIBNAME $LIBS"
 
 else $as_nop
 
@@ -24104,7 +24104,7 @@
   printf %s "(cached) " >&6
 else $as_nop
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-l"$LBERLIBNAME"  $LIBS"
+LIBS="$LBERLIBNAME  $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -24139,7 +24139,7 @@
 #define `printf "%s\n" "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
 _ACEOF
 
-  LIBS="-l"$LBERLIBNAME" $LIBS"
+  LIBS="$LBERLIBNAME $LIBS"
 
 else $as_nop
 
@@ -24378,7 +24378,7 @@
 
 
 
-GSSAPI_ROOT="/usr"
+GSSAPI_ROOT="/opt/freeware"
 
 # Check whether --with-gssapi-includes was given.
 if test ${with_gssapi_includes+y}
@@ -25219,13 +25219,13 @@
         fi
         if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
                                  gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
-           LIBS="$gss_libs $LIBS"
+           LIBS="/opt/freeware/lib/libgssapi_krb5.a /opt/freeware/lib/libkrb5.a /opt/freeware/lib/libk5crypto.a /opt/freeware/lib/libcom_err.a $LIBS"
         elif test "$PKGCONFIG" != "no" ; then
            gss_libs=`$PKGCONFIG --libs mit-krb5-gssapi`
-           LIBS="$gss_libs $LIBS"
+           LIBS="/opt/freeware/lib/libgssapi_krb5.a /opt/freeware/lib/libkrb5.a /opt/freeware/lib/libk5crypto.a /opt/freeware/lib/libcom_err.a $LIBS"
         elif test -f "$KRB5CONFIG"; then
                                  gss_libs=`$KRB5CONFIG --libs gssapi`
-           LIBS="$gss_libs $LIBS"
+           LIBS="/opt/freeware/lib/libgssapi_krb5.a /opt/freeware/lib/libkrb5.a /opt/freeware/lib/libk5crypto.a /opt/freeware/lib/libcom_err.a $LIBS"
         else
            case $host in
            *-hp-hpux*)

