summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-03-28 13:03:42 +1000
committerDamien Miller <djm@mindrot.org>2001-03-28 13:03:42 +1000
commitc79bc0d75bca9367947020dd3ec806d33fa19b1b (patch)
tree3f145c037d32d536e7d7bc63235c05929f493199
parentf9e93009478075ec04f0ee407e8f83ab2558a892 (diff)
- (djm) Reorder tests and library inclusion for Krb4/AFS to try to
resolve linking conflicts with libcrypto. Report and suggested fix from Holger Trapp <Holger.Trapp@Informatik.TU-Chemnitz.DE>
-rw-r--r--ChangeLog7
-rw-r--r--configure.in138
2 files changed, 74 insertions, 71 deletions
diff --git a/ChangeLog b/ChangeLog
index f26478a16..8c3daff67 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
120010328
2 - (djm) Reorder tests and library inclusion for Krb4/AFS to try to
3 resolve linking conflicts with libcrypto. Report and suggested fix
4 from Holger Trapp <Holger.Trapp@Informatik.TU-Chemnitz.DE>
5
120010327 620010327
2 - Attempt sync with sshlogin.c w/ OpenBSD (mainly CVS ID) 7 - Attempt sync with sshlogin.c w/ OpenBSD (mainly CVS ID)
3 - Fix pointer issues in waitpid() and wait() replaces. Patch by Lutz 8 - Fix pointer issues in waitpid() and wait() replaces. Patch by Lutz
@@ -4725,4 +4730,4 @@
4725 - Wrote replacements for strlcpy and mkdtemp 4730 - Wrote replacements for strlcpy and mkdtemp
4726 - Released 1.0pre1 4731 - Released 1.0pre1
4727 4732
4728$Id: ChangeLog,v 1.1021 2001/03/27 06:12:24 djm Exp $ 4733$Id: ChangeLog,v 1.1022 2001/03/28 03:03:42 djm Exp $
diff --git a/configure.in b/configure.in
index 61d1e06a4..638877edd 100644
--- a/configure.in
+++ b/configure.in
@@ -1,4 +1,4 @@
1# $Id: configure.in,v 1.267 2001/03/18 23:09:28 djm Exp $ 1# $Id: configure.in,v 1.268 2001/03/28 03:03:42 djm Exp $
2 2
3AC_INIT(ssh.c) 3AC_INIT(ssh.c)
4 4
@@ -404,75 +404,6 @@ AC_EGREP_CPP(FOUNDIT,
404 ] 404 ]
405) 405)
406 406
407
408
409# Check whether user wants Kerberos support
410KRB4_MSG="no"
411AC_ARG_WITH(kerberos4,
412 [ --with-kerberos4=PATH Enable Kerberos 4 support],
413 [
414 if test "x$withval" != "xno" ; then
415
416 if test "x$withval" != "xyes" ; then
417 CPPFLAGS="$CPPFLAGS -I${withval}/include"
418 LDFLAGS="$LDFLAGS -L${withval}/lib"
419 if test ! -z "$need_dash_r" ; then
420 LDFLAGS="$LDFLAGS -R${withval}/lib"
421 fi
422 if test ! -z "$blibpath" ; then
423 blibpath="$blibpath:${withval}/lib"
424 fi
425 else
426 if test -d /usr/include/kerberosIV ; then
427 CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV"
428 fi
429 fi
430
431 AC_CHECK_HEADERS(krb.h)
432 AC_CHECK_LIB(krb, main)
433 if test "$ac_cv_header_krb_h" != yes; then
434 AC_MSG_WARN([Cannot find krb.h, build may fail])
435 fi
436 if test "$ac_cv_lib_krb_main" != yes; then
437 AC_MSG_WARN([Cannot find libkrb, build may fail])
438 fi
439
440 KLIBS="-lkrb -ldes"
441 AC_CHECK_LIB(resolv, dn_expand, , )
442 KRB4=yes
443 KRB4_MSG="yes"
444 AC_DEFINE(KRB4)
445 fi
446 ]
447)
448
449# Check whether user wants AFS support
450AFS_MSG="no"
451AC_ARG_WITH(afs,
452 [ --with-afs=PATH Enable AFS support],
453 [
454 if test "x$withval" != "xno" ; then
455
456 if test "x$withval" != "xyes" ; then
457 CPPFLAGS="$CPPFLAGS -I${withval}/include"
458 LDFLAGS="$LDFLAGS -L${withval}/lib"
459 fi
460
461 if test -z "$KRB4" ; then
462 AC_MSG_WARN([AFS requires Kerberos IV support, build may fail])
463 fi
464
465 LIBS="$LIBS -lkafs"
466 if test ! -z "$AFS_LIBS" ; then
467 LIBS="$LIBS $AFS_LIBS"
468 fi
469 AC_DEFINE(AFS)
470 AFS_MSG="yes"
471 fi
472 ]
473)
474LIBS="$LIBS $KLIBS"
475
476# Check whether user wants S/Key support 407# Check whether user wants S/Key support
477SKEY_MSG="no" 408SKEY_MSG="no"
478AC_ARG_WITH(skey, 409AC_ARG_WITH(skey,
@@ -1247,6 +1178,73 @@ if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
1247fi 1178fi
1248 1179
1249 1180
1181# Check whether user wants Kerberos support
1182KRB4_MSG="no"
1183AC_ARG_WITH(kerberos4,
1184 [ --with-kerberos4=PATH Enable Kerberos 4 support],
1185 [
1186 if test "x$withval" != "xno" ; then
1187
1188 if test "x$withval" != "xyes" ; then
1189 CPPFLAGS="$CPPFLAGS -I${withval}/include"
1190 LDFLAGS="$LDFLAGS -L${withval}/lib"
1191 if test ! -z "$need_dash_r" ; then
1192 LDFLAGS="$LDFLAGS -R${withval}/lib"
1193 fi
1194 if test ! -z "$blibpath" ; then
1195 blibpath="$blibpath:${withval}/lib"
1196 fi
1197 else
1198 if test -d /usr/include/kerberosIV ; then
1199 CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV"
1200 fi
1201 fi
1202
1203 AC_CHECK_HEADERS(krb.h)
1204 AC_CHECK_LIB(krb, main)
1205 if test "$ac_cv_header_krb_h" != yes; then
1206 AC_MSG_WARN([Cannot find krb.h, build may fail])
1207 fi
1208 if test "$ac_cv_lib_krb_main" != yes; then
1209 AC_MSG_WARN([Cannot find libkrb, build may fail])
1210 fi
1211
1212 KLIBS="-lkrb -ldes"
1213 AC_CHECK_LIB(resolv, dn_expand, , )
1214 KRB4=yes
1215 KRB4_MSG="yes"
1216 AC_DEFINE(KRB4)
1217 fi
1218 ]
1219)
1220
1221# Check whether user wants AFS support
1222AFS_MSG="no"
1223AC_ARG_WITH(afs,
1224 [ --with-afs=PATH Enable AFS support],
1225 [
1226 if test "x$withval" != "xno" ; then
1227
1228 if test "x$withval" != "xyes" ; then
1229 CPPFLAGS="$CPPFLAGS -I${withval}/include"
1230 LDFLAGS="$LDFLAGS -L${withval}/lib"
1231 fi
1232
1233 if test -z "$KRB4" ; then
1234 AC_MSG_WARN([AFS requires Kerberos IV support, build may fail])
1235 fi
1236
1237 LIBS="-lkafs $LIBS"
1238 if test ! -z "$AFS_LIBS" ; then
1239 LIBS="$LIBS $AFS_LIBS"
1240 fi
1241 AC_DEFINE(AFS)
1242 AFS_MSG="yes"
1243 fi
1244 ]
1245)
1246LIBS="$LIBS $KLIBS"
1247
1250# Looking for programs, paths and files 1248# Looking for programs, paths and files
1251AC_ARG_WITH(rsh, 1249AC_ARG_WITH(rsh,
1252 [ --with-rsh=PATH Specify path to remote shell program ], 1250 [ --with-rsh=PATH Specify path to remote shell program ],