summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>1996-11-02 01:42:37 +0000
committerTom Yu <tlyu@mit.edu>1996-11-02 01:42:37 +0000
commit3e5fece1fcecbb46dc47aead8f5eef742e7e2e30 (patch)
tree1f77eea9f5be94406ff4af8f0a131d079067cc54
parent62729396f28e72465831ef4456b349b916de6258 (diff)
downloadkrb5-3e5fece1fcecbb46dc47aead8f5eef742e7e2e30.tar.gz
krb5-3e5fece1fcecbb46dc47aead8f5eef742e7e2e30.tar.xz
krb5-3e5fece1fcecbb46dc47aead8f5eef742e7e2e30.zip
* aclocal.m4 (AC_KRB5_TCL): Check for -ldl when checking for -ltcl
or -ltcl7.5 in case the TCL library needs it. [krb5-admin/141] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9279 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/ChangeLog5
-rw-r--r--src/aclocal.m410
2 files changed, 10 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 22b4f7357..ced4dc981 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+Fri Nov 1 20:41:07 1996 Tom Yu <tlyu@mit.edu>
+
+ * aclocal.m4 (AC_KRB5_TCL): Check for -ldl when checking for -ltcl
+ or -ltcl7.5 in case the TCL library needs it. [krb5-admin/141]
+
Thu Oct 31 10:57:29 1996 Ezra Peisach <epeisach@trane.rose.brandeis.edu>
* aclocal.m4 (db_lib): Use relative path to libdb.a file.
diff --git a/src/aclocal.m4 b/src/aclocal.m4
index 55fbd38b2..9fbeb5911 100644
--- a/src/aclocal.m4
+++ b/src/aclocal.m4
@@ -1096,7 +1096,7 @@ AC_ARG_WITH(tcl,
TCL_INC=-I$withval/include
TCL_LIB=-L$withval/lib
fi)
-
+AC_CHECK_LIB(dl, dlopen, DL_LIB=-ldl)
if test "$TCL_WITH" != no ; then
hold_cflags=$CPPFLAGS
hold_ldflags=$LDFLAGS
@@ -1104,12 +1104,12 @@ if test "$TCL_WITH" != no ; then
LDFLAGS="$CPPFLAGS $TCL_LIB"
AC_CHECK_HEADER(tcl.h,dnl
AC_CHECK_LIB(tcl7.5, Tcl_CreateCommand,
- TCL_LIB="$TCL_LIB -ltcl7.5",
+ TCL_LIB="$TCL_LIB -ltcl7.5 $DL_LIB",
AC_CHECK_LIB(tcl, Tcl_CreateCommand,
- TCL_LIB="$TCL_LIB -ltcl",
+ TCL_LIB="$TCL_LIB -ltcl $DL_LIB",
AC_MSG_WARN("tcl.h found but not library"),
- -lm),
- -lm)
+ -lm $DL_LIB),
+ -lm $DL_LIB)
,dnl If tcl.h not found
AC_MSG_WARN(Could not find Tcl which is needed for the kadm5 tests)
TCL_LIB=