]>
Commit | Line | Data |
---|---|---|
48ab9d62 AM |
1 | --- openjdk/common/autoconf/libraries.m4~ 2017-01-29 09:15:15.000000000 +0100 |
2 | +++ openjdk/common/autoconf/libraries.m4 2017-01-29 09:24:41.628850960 +0100 | |
3 | @@ -938,17 +938,12 @@ AC_DEFUN_ONCE([LIB_SETUP_MISC_LIBS], | |
0ba407a4 JK |
4 | AC_MSG_RESULT([$system_krb5]) |
5 | ||
6 | if test "x${system_krb5}" = "xyes"; then | |
7 | - PKG_CHECK_MODULES(KRB5, krb5, [KRB5_FOUND=yes], [KRB5_FOUND=no]) | |
8 | - if test "x${KRB5_FOUND}" = "xyes"; then | |
9 | - USE_EXTERNAL_KRB5=true | |
10 | - else | |
48ab9d62 AM |
11 | - AC_MSG_NOTICE([Could not find Kerberos using pkg-config; trying via krb5.h and krb5 library]) |
12 | - AC_CHECK_LIB([krb5], [krb5_cc_default], | |
13 | - , [AC_MSG_ERROR([Could not find Kerberos library; install Kerberos or build with --disable-system-kerberos to use the default cache location.])]) | |
14 | - AC_CHECK_HEADER([krb5.h], | |
15 | - , [AC_MSG_ERROR([Could not find Kerberos header; install Kerberos or build with --disable-system-kerberos to use the default cache location.])]) | |
16 | - KRB5_LIBS="-lkrb5" | |
0ba407a4 JK |
17 | - fi |
18 | + KRB5_LIBS=`krb5-config --libs` | |
19 | + KRB5_CFLAGS=`krb5-config --cflags` | |
20 | + AC_SUBST(KRB5_LIBS) | |
21 | + AC_SUBST(KRB5_CFLAGS) | |
22 | + KRB5_FOUND=yes | |
23 | + USE_EXTERNAL_KRB5=true | |
24 | else | |
25 | USE_EXTERNAL_KRB5=false | |
26 | fi |