Hoist the KDC_RUN_DIR check

This commit is contained in:
Robbie Harwood 2021-02-15 15:54:54 -05:00
parent 35a4aa7b99
commit d3ac4cf9b0

View File

@ -284,18 +284,22 @@ CPPFLAGS="`echo $DEFINES $INCLUDES`"
--with-prng-alg=os \
--with-lmdb \
|| (cat config.log; exit 1)
# Build fast, but get better errors if we fail
make %{?_smp_mflags} || make -j1
popd
# Sanity check the KDC_RUN_DIR.
configured_dir=`grep KDC_RUN_DIR src/include/osconf.h | awk '{print $NF}'`
pushd include
make osconf.h
popd
configured_dir=`grep KDC_RUN_DIR include/osconf.h | awk '{print $NF}'`
configured_dir=`eval echo $configured_dir`
if test "$configured_dir" != /run/krb5kdc ; then
echo Failed to configure KDC_RUN_DIR.
exit 1
fi
# Build fast, but get better errors if we fail
make %{?_smp_mflags} || make -j1
popd
# Build the docs.
make -C src/doc paths.py version.py
cp src/doc/paths.py doc/