check if DOCDIR has not already injected from the command line.
This commit is contained in:
parent
63db43519c
commit
9dd3340f78
11
configure.ac
11
configure.ac
@ -1212,11 +1212,16 @@ else
|
|||||||
INSTALLDIR="${prefix}"
|
INSTALLDIR="${prefix}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -d "${INSTALLDIR}/doc"
|
dnl only define DOCDIR if not already present. This allows
|
||||||
then
|
dnl to feed DOCDIR on the configure level which is useful when
|
||||||
|
dnl for instance building a rpm.
|
||||||
|
if test "x${DOCDIR}" = "x"
|
||||||
|
if test -d "${INSTALLDIR}/doc"
|
||||||
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user