* aclocal.m4 (LIBS): include -lgen if compile() is present and
authorMarc Horowitz <marc@mit.edu>
Fri, 26 Jul 1996 19:15:48 +0000 (19:15 +0000)
committerMarc Horowitz <marc@mit.edu>
Fri, 26 Jul 1996 19:15:48 +0000 (19:15 +0000)
  -lkrb5 is used.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8839 dc483132-0cff-0310-8789-dd5450dbe970

src/aclocal.m4

index 7877c585d2bc171eded86b7a645950e040680fa4..5c510cf5f1ffe86e01e4d5256a41a74f1c1009da 100644 (file)
@@ -777,6 +777,18 @@ dnl
 dnl This rule generates library lists for programs.
 dnl
 define(KRB5_LIBRARIES,[
+dnl
+dnl under solaris, if we use compile() and step(), we need -lgen
+save_LIBS="$LIBS"
+LIBS=-lgen
+dnl this will fail if there's no compile/step in -lgen, or if there's
+dnl no -lgen.  This is fine.
+AC_CHECK_FUNCS(compile step)
+[if test "$ac_cv_func_compile" = yes ; then
+       LIBS="$save_LIBS -lgen"
+else
+       LIBS="$save_LIBS"
+fi]
 dnl this is ugly, but it wouldn't be necessary if krb5 didn't abuse
 dnl configure so badly
 SRVDEPLIBS="\[$](DEPLOCAL_LIBRARIES) $kadmsrv_deplib $gssrpc_deplib $gssapi_deplib $kdb5_deplib $kutil_deplib \[$](TOPLIBD)/libkrb5.a $kdb4_deplib $krb4_deplib \[$](TOPLIBD)/libcrypto.a $ss_deplib $dyn_deplib $db_deplib \[$](TOPLIBD)/libcom_err.a"