diff --git a/src/packaging/RedHat/openafs.spec.in b/src/packaging/RedHat/openafs.spec.in index d64eba1a1e..d25f34439d 100644 --- a/src/packaging/RedHat/openafs.spec.in +++ b/src/packaging/RedHat/openafs.spec.in @@ -99,12 +99,6 @@ # to distribute aklog and asetkey %define krb5support %{?_without_krb5:0}%{!?_without_krb5:1} -%if %{krb5support} -%if %{?krb5config:0}%{!?krb5config:1} -%define krb5config /usr/kerberos/bin/krb5-config -%endif -%endif - # Set 'bootkernelsupport' to 1 if you want to build the # kernel module for Red Hat BOOT Kernels on x86. %define bootkernelsupport %{?_with_bootkernel:1}%{!?_with_bootkernel:0} @@ -853,9 +847,11 @@ fi CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS %if %{krb5support} +%if %{?krb5config:1}%{!?krb5config:0} KRB5_CONFIG="%{krb5config}" export KRB5_CONFIG %endif +%endif ./configure --with-afs-sysname=${sysname} \ --prefix=%{_prefix} \