diff options
Diffstat (limited to 'meta-networking/recipes-daemons/autofs/autofs-5.1.0/using-pkg-config-to-detect-libxml-2.0-and-krb5.patch')
-rw-r--r-- | meta-networking/recipes-daemons/autofs/autofs-5.1.0/using-pkg-config-to-detect-libxml-2.0-and-krb5.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/autofs/autofs-5.1.0/using-pkg-config-to-detect-libxml-2.0-and-krb5.patch b/meta-networking/recipes-daemons/autofs/autofs-5.1.0/using-pkg-config-to-detect-libxml-2.0-and-krb5.patch new file mode 100644 index 000000000..93b76bd66 --- /dev/null +++ b/meta-networking/recipes-daemons/autofs/autofs-5.1.0/using-pkg-config-to-detect-libxml-2.0-and-krb5.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | using pkg-config to detect libxml-2.0 and krb5 | ||
2 | |||
3 | Upstream-status: Pending | ||
4 | |||
5 | Signed-off-by: Roy Li <rongqing.li@windriver.com> | ||
6 | --- | ||
7 | configure.in | 16 ++++++++++++++-- | ||
8 | 2 files changed, 14 insertions(+), 2 deletions(-) | ||
9 | |||
10 | diff --git a/configure.in b/configure.in | ||
11 | index 392d122..a3028aa 100644 | ||
12 | --- a/configure.in | ||
13 | +++ b/configure.in | ||
14 | @@ -162,8 +162,20 @@ if test x$enable_sloppy_mount = xyes; then | ||
15 | fi | ||
16 | |||
17 | # LDAP SASL auth needs libxml and Kerberos | ||
18 | -AF_CHECK_LIBXML() | ||
19 | -AF_CHECK_KRB5() | ||
20 | +PKG_CHECK_MODULES(XML, [libxml-2.0],HAVE_LIBXML=1,HAVE_LIBXML=0) | ||
21 | +AC_SUBST([HAVE_LIBXML]) | ||
22 | +XML_FLAGS=$XML_CFLAGS | ||
23 | + | ||
24 | +PKG_CHECK_MODULES(KRB5, [krb5],HAVE_KRB5=1,HAVE_KRB5=0) | ||
25 | +AC_SUBST([HAVE_KRB5]) | ||
26 | +if test "x$HAVE_KRB5" = "x1"; then | ||
27 | + SAVE_CFLAGS=$CFLAGS | ||
28 | + SAVE_LIBS=$LIBS | ||
29 | + CFLAGS="$CFLAGS $KRB5_FLAGS" | ||
30 | + LIBS="$LIBS $KRB5_LIBS" | ||
31 | + | ||
32 | + AC_CHECK_FUNCS([krb5_principal_get_realm]) | ||
33 | +fi | ||
34 | |||
35 | AC_SEARCH_LIBS([versionsort],[]) | ||
36 | if test "$ac_cv_search_versionsort" = "no"; then | ||
37 | -- | ||
38 | 1.7.10.4 | ||
39 | |||