summaryrefslogtreecommitdiff
path: root/mail/fetchmail/patches/patch-configure
blob: ab3b7d348170e23ece2004b28ce7ac665bfa8ee2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-configure,v 1.5 2022/10/16 20:34:30 triaxx Exp $

krb5-config errors out unless you give it a library to look for

--- configure.orig	2022-08-27 07:08:20.000000000 +0000
+++ configure
@@ -12677,7 +12677,7 @@ printf "%s\n" "#define KERBEROS_V5 1" >>
 
   CFLAGS="$CFLAGS -I/usr/include/kerberosV"
   LIBS="$LIBS -lasn1 -lkrb5 -lcom_err -lkafs"
-elif krb5-config 2> /dev/null >/dev/null ; then
+elif krb5-config krb5 2> /dev/null >/dev/null ; then
   krb5_prefix=`krb5-config --prefix krb5`
   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: krb5-config points to kerberosV under $krb5_prefix" >&5
 printf "%s\n" "krb5-config points to kerberosV under $krb5_prefix" >&6; }
@@ -13022,7 +13022,7 @@ printf "%s\n" "krb4-config points to ker
   CFLAGS="$CFLAGS `krb4-config --cflags`"
   LIBS="$LIBS `krb4-config --libs`"
   KERBEROS_V4=1
-elif krb5-config 2> /dev/null >/dev/null ; then
+elif krb5-config krb4 2> /dev/null >/dev/null ; then
   krb4_prefix=`krb5-config --prefix krb4`
   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: krb5-config points to kerberosIV under $krb4_prefix" >&5
 printf "%s\n" "krb5-config points to kerberosIV under $krb4_prefix" >&6; }