diff options
author | Paul Park <pjpark@mit.edu> | 1995-06-16 15:28:24 +0000 |
---|---|---|
committer | Paul Park <pjpark@mit.edu> | 1995-06-16 15:28:24 +0000 |
commit | eec2b809e21403bec6b09fecab52adc6d394a47b (patch) | |
tree | 8d860459950d62f16953b833181f207668a3aad0 /src/aclocal.m4 | |
parent | 2d57e57bcd848e94da518c8fa4b542ec0b4b7685 (diff) | |
download | krb5-eec2b809e21403bec6b09fecab52adc6d394a47b.tar.gz krb5-eec2b809e21403bec6b09fecab52adc6d394a47b.tar.xz krb5-eec2b809e21403bec6b09fecab52adc6d394a47b.zip |
Explicitly handle default cases when neither --enable-shared or
--with-shared is specified.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6078 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/aclocal.m4')
-rw-r--r-- | src/aclocal.m4 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/aclocal.m4 b/src/aclocal.m4 index c8dcf5465c..54942e252e 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -785,7 +785,8 @@ AC_ARG_WITH([shared], , withval=yes )dnl -if test "$withval" = yes; then +if test "$krb5_cv_shlibs_enabled" = yes ; then + if test "$withval" = yes; then AC_MSG_RESULT(Using shared libraries) LDARGS="$krb5_cv_shlibs_ldflag -L[$](TOPLIBD) $LDARGS" if test "$krb5_cv_exe_need_dirs" = yes; then @@ -793,9 +794,12 @@ if test "$withval" = yes; then fi SHLIB_TAIL_COMP=$krb5_cv_shlibs_tail_comp AC_SUBST(SHLIB_TAIL_COMP) -else + else AC_MSG_RESULT(Using archive libraries) LDARGS="$krb5_cv_noshlibs_ldflag -L[$](TOPLIBD) $LDARGS" + fi +else + LDARGS="-L[$](TOPLIBD) $LDARGS" fi AC_SUBST(LDARGS) ])dnl |