0.27 autoconf

Love lha at stacken.kth.se
Sun Aug 29 15:50:53 CEST 1999


Gerald Britton <gbritton at mit.edu> writes:

> the 0.27 autoconf scripts check for "libkrbafs.a" directly instead of
> doing a link check.  This doesn't allow for shared libs to be used, and
> isn't as good of a check as doing the autoconf link check.  Here is the
> quick hack I used to build with shared libs, it ought to be fixed in a
> better way though:

Yes. Could you try the following patch and see if it works for you ?

Love


Index: configure.in
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/configure.in,v
retrieving revision 1.306
diff -u -w -u -w -r1.306 configure.in
--- configure.in	1999/08/27 06:12:16	1.306
+++ configure.in	1999/08/29 13:43:45
@@ -536,15 +536,19 @@
   export RXKAD_LIBS
   MILKO_RXKAD_LIBS=`echo $RXKAD_LIBS | sed s,\.\./,\.\./\.\./,`
   if test "$with_krbafs" != "no"; then
-    if test -f "${with_krbafs}/lib/libkrbafs.a"; then
-      KAFS_LIBS="-L${with_krbafs}/lib -lkrbafs"
-    elif test -f "${with_krbafs}/libkrbafs.a"; then
-      KAFS_LIBS="-L${with_krbafs} -lkrbafs"
+	KAFS_LIBS_PATH="${with_krbafs}/lib"
     else
-      AC_MSG_ERROR(didn't find any libkrbafs.a in ${with_krbafs})
+	KAFS_LIBS_PATH="${KRB_LIB_DIR}"
     fi
-  else
-    KAFS_LIBS="-L${KRB_LIB_DIR} -lkafs"
+  arla_LIBS="$LIBS"
+  LIBS="-L${KAFS_LIBS_PATH} $LIBS"
+  AC_FIND_FUNC_NO_LIBS(k_hasafs,[kafs krbafs],[])
+  LIBS="$arla_LIBS"
+  if test "X$ac_cv_funclib_k_hasafs" = "Xno"; then
+      AC_MSG_ERROR(didn't find any libkafs/libkrbafs)
+  fi
+  if test "X$ac_cv_funclib_k_hasafs" != "Xyes"; then
+  	KAFS_LIBS="-L$KAFS_LIBS_PATH ${ac_cv_funclib_k_hasafs}"
   fi
   RXKAD_MAKEFILE="rxkad/Makefile"
   AC_DEFINE(KERBEROS, 1, [define if you have kerberos])






More information about the Arla-drinkers mailing list