diff options
| author | Richard M. Stallman | 1997-08-24 02:18:34 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-08-24 02:18:34 +0000 |
| commit | af9ec10ee913da92d1eda975c733ad039c4e4002 (patch) | |
| tree | eea592f9455b42c1f314995194adcb0b4d6a4f34 | |
| parent | 66d736a953bccfba53acebf6065835f1577febd0 (diff) | |
| download | emacs-af9ec10ee913da92d1eda975c733ad039c4e4002.tar.gz emacs-af9ec10ee913da92d1eda975c733ad039c4e4002.zip | |
Support auto-configuration of both Kerberos V4 and
Kerberos V5 for movemail, including detection of V4 and V5 header
files and libraries.
| -rw-r--r-- | configure.in | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 78f67190e9e..768d48d8e16 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -42,6 +42,15 @@ AC_ARG_WITH(pop, | |||
| 42 | AC_ARG_WITH(kerberos, | 42 | AC_ARG_WITH(kerberos, |
| 43 | [ --with-kerberos support Kerberos-authenticated POP], | 43 | [ --with-kerberos support Kerberos-authenticated POP], |
| 44 | [AC_DEFINE(KERBEROS)]) | 44 | [AC_DEFINE(KERBEROS)]) |
| 45 | AC_ARG_WITH(kerberos5, | ||
| 46 | [ --with-kerberos5 support Kerberos version 5 authenticated POP], | ||
| 47 | [if test "${with_kerberos5+set}" = set; then | ||
| 48 | if test "${with_kerberos+set}" != set; then | ||
| 49 | with_kerberos=yes | ||
| 50 | AC_DEFINE(KERBEROS) | ||
| 51 | fi | ||
| 52 | fi | ||
| 53 | AC_DEFINE(KERBEROS5)]) | ||
| 45 | AC_ARG_WITH(hesiod, | 54 | AC_ARG_WITH(hesiod, |
| 46 | [ --with-hesiod support Hesiod to get the POP server host], | 55 | [ --with-hesiod support Hesiod to get the POP server host], |
| 47 | [AC_DEFINE(HESIOD)]) | 56 | [AC_DEFINE(HESIOD)]) |
| @@ -1564,9 +1573,27 @@ AC_CHECK_LIB(ncurses, tparm) | |||
| 1564 | 1573 | ||
| 1565 | # These tell us which Kerberos-related libraries to use. | 1574 | # These tell us which Kerberos-related libraries to use. |
| 1566 | if test "${with_kerberos+set}" = set; then | 1575 | if test "${with_kerberos+set}" = set; then |
| 1567 | AC_CHECK_LIB(krb, krb_get_cred) | 1576 | if test "${with_kerberos5+set}" != set; then |
| 1568 | AC_CHECK_LIB(des, des_cbc_encrypt) | 1577 | AC_CHECK_LIB(krb, krb_get_cred,, |
| 1578 | AC_CHECK_LIB(krb4, krb_get_cred)) | ||
| 1579 | AC_CHECK_LIB(des, des_cbc_encrypt,, | ||
| 1580 | AC_CHECK_LIB(des425, des_cbc_encrypt)) | ||
| 1581 | fi | ||
| 1582 | AC_CHECK_LIB(krb5, krb5_init_context) | ||
| 1583 | AC_CHECK_LIB(crypto, mit_des_cbc_encrypt) | ||
| 1569 | AC_CHECK_LIB(com_err, com_err) | 1584 | AC_CHECK_LIB(com_err, com_err) |
| 1585 | |||
| 1586 | if test "${with_kerberos5+set}" = set; then | ||
| 1587 | AC_CHECK_HEADERS(krb5.h) | ||
| 1588 | else | ||
| 1589 | AC_CHECK_HEADERS(des.h,, | ||
| 1590 | AC_CHECK_HEADERS(kerberosIV/des.h,, | ||
| 1591 | AC_CHECK_HEADERS(kerberos/des.h))) | ||
| 1592 | AC_CHECK_HEADERS(krb.h,, | ||
| 1593 | AC_CHECK_HEADERS(kerberosIV/krb.h,, | ||
| 1594 | AC_CHECK_HEADERS(kerberos/krb.h))) | ||
| 1595 | fi | ||
| 1596 | AC_CHECK_HEADERS(com_err.h) | ||
| 1570 | fi | 1597 | fi |
| 1571 | 1598 | ||
| 1572 | AC_MSG_CHECKING(whether localtime caches TZ) | 1599 | AC_MSG_CHECKING(whether localtime caches TZ) |