diff options
| author | Marc Horowitz <marc@mit.edu> | 1996-07-26 19:15:48 +0000 |
|---|---|---|
| committer | Marc Horowitz <marc@mit.edu> | 1996-07-26 19:15:48 +0000 |
| commit | ef047d839a8f6d2e8109a67d0fe6503135ea7ab5 (patch) | |
| tree | 9302a1401c7af61b58822d0e82a38f9b3308d5e1 /src | |
| parent | b4ddf328d592cf4c4ccc3dbb6f38d9108bd97120 (diff) | |
| download | krb5-ef047d839a8f6d2e8109a67d0fe6503135ea7ab5.tar.gz krb5-ef047d839a8f6d2e8109a67d0fe6503135ea7ab5.tar.xz krb5-ef047d839a8f6d2e8109a67d0fe6503135ea7ab5.zip | |
* aclocal.m4 (LIBS): include -lgen if compile() is present and
-lkrb5 is used.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8839 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/aclocal.m4 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 7877c585d..5c510cf5f 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -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" |
