diff options
author | Russ Allbery <rra@stanford.edu> | 2007-08-03 23:28:32 +0000 |
---|---|---|
committer | Russ Allbery <rra@stanford.edu> | 2007-08-03 23:28:32 +0000 |
commit | 5cb6d4edad2bc0b591157da135766827a65e05c6 (patch) | |
tree | 4bc39a6cd69ebae40543dfadc2bd49f7efb91c20 /configure.ac | |
parent | a7fc07727aeb437ddbe53c33c2dabde0a17db126 (diff) |
Fix the AFS library detection so that kasetkey will build on our ancient
Solaris 8 system.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index ae4e34a..ad20c60 100644 --- a/configure.ac +++ b/configure.ac @@ -26,7 +26,7 @@ AC_ARG_WITH([afs-libs], AC_HELP_STRING([--with-afs-libs=DIR], [Prefix for AFS libraries (for kasetkey)]), [if test x"$withval" != xno ; then - AFS_LDFLAGS="-L${withval}" + AFS_LDFLAGS="-L${withval} -L${withval}/afs" fi]) AC_SUBST([AFS_LDFLAGS]) @@ -59,6 +59,16 @@ AC_SEARCH_LIBS([socket], [socket], , AC_SEARCH_LIBS([res_search], [resolv], , [AC_SEARCH_LIBS([__res_search], [resolv])]) +save_LDFLAGS=$LDFLAGS +LDFLAGS="$AFS_LDFLAGS $LDFLAGS" +AC_CHECK_LIB([afsauthent], [KAM_DeleteUser], + [AFS_LIBS="-lafsauthent -lafsrpc -lpthread"], + [AFS_LIBS="-lkauth.krb -lauth.krb -lubik -lrxkad -lrx -llwp -lsys" + AFS_LIBS="${AFS_LIBS} -lcom_err -lafsutil"], + [-lpthread]) +LDFLAGS="$save_LDFLAGS" +AC_SUBST([AFS_LIBS]) + AC_CONFIG_HEADER([config.h]) AC_CONFIG_FILES([Makefile perl/Makefile.PL]) AC_CONFIG_FILES([tests/client/basic-t], [chmod +x tests/client/basic-t]) |