check if DOCDIR has not already injected from the command line.

This commit is contained in:
suter_a 2017-10-24 09:06:50 +02:00
parent 66fd54b8fa
commit a2d142e73d

View File

@ -1373,12 +1373,18 @@ else
INSTALLDIR="${prefix}" INSTALLDIR="${prefix}"
fi fi
dnl only define DOCDIR if not already present. This allows
dnl to feed DOCDIR on the configure level which is useful when
dnl for instance building a rpm.
if test "x${DOCDIR}" = "x"
then
if test -d "${INSTALLDIR}/doc" if test -d "${INSTALLDIR}/doc"
then then
DOCDIR="${INSTALLDIR}/doc/musrfit" DOCDIR="${INSTALLDIR}/doc/musrfit"
else else
DOCDIR="${INSTALLDIR}/share/doc/musrfit" DOCDIR="${INSTALLDIR}/share/doc/musrfit"
fi fi
fi
AC_SUBST(DOCDIR) AC_SUBST(DOCDIR)