mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-14 03:42:34 +00:00
guessing the tex path from some listed paths. Please make sure your path
is there too, there is no --with-texdir yet svn path=/trunk/kdegraphics/kdvi/; revision=64310
This commit is contained in:
parent
b0f44aeed7
commit
d549748114
|
@ -3,7 +3,34 @@ dnl the following is just to fool the toplevel configure.in
|
|||
LTLIBOBJS=
|
||||
AC_SUBST(LTLIBOBJS)
|
||||
|
||||
compile_kdvi=yes
|
||||
for j in $DO_NOT_COMPILE; do
|
||||
if test "kdvi" = $j; then
|
||||
compile_kdvi=no
|
||||
echo "CCCCCC"
|
||||
fi
|
||||
done
|
||||
|
||||
dnl AC_CONFIG_SUBDIRS has to be done before KDE_CREATE_SUBDIRSLIST
|
||||
if test -f kdvi/kpathsea/configure; then
|
||||
AC_CONFIG_SUBDIRS([kdvi/kpathsea])
|
||||
if test "$compile_kdvi" = "yes" && test -f $srcdir/kdvi/kpathsea/configure; then
|
||||
kde_texdirs="/usr/lib /var/lib /usr/share /usr/share/teTeX /opt/local/teTeX/share /opt/teTeX/share /var /usr/local/share"
|
||||
kde_texdir=NO
|
||||
for dir in $kde_texdirs; do
|
||||
if test -f $dir/texmf/web2c/texmf.cnf; then
|
||||
kde_texdir=$dir
|
||||
break 2
|
||||
fi
|
||||
done
|
||||
if test ! "x$kde_texdir" = "xNO"; then
|
||||
ac_configure_args="$ac_configure_args --with-tex-datadir=$kde_texdir"
|
||||
AC_CONFIG_SUBDIRS([kdvi/kpathsea])
|
||||
else
|
||||
echo "ASDSDASD"
|
||||
fi
|
||||
else
|
||||
if test $compile_kdvi = "yes"; then
|
||||
echo "BBBB"
|
||||
DO_NOT_COMPILE="$DO_NOT_COMPILE kdvi"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
@ -30,12 +30,16 @@ AC_CHECK_HEADERS(assert.h float.h limits.h memory.h pwd.h stdlib.h \
|
|||
|
||||
# Unfortunately, kpathsea needs to be told at compile time where
|
||||
# the TeX directory tree resides
|
||||
AC_ARG_WITH(tex-datadir,
|
||||
[ --with-tex-datadir=DIR where the root of texmf/web2c/texmf.cnf is installed ],
|
||||
[ datadir=$withval
|
||||
], datadir=NO)
|
||||
|
||||
echo "checking for $datadir/texmf/web2c/texmf.cnf"
|
||||
if test ! -r $datadir/texmf/web2c/texmf.cnf; then
|
||||
{
|
||||
echo "configure: error. Please use the --datadir option to point to the main" 1>&2
|
||||
echo "directory of your TeX installation, where the file web2c/texmf.cnf" 1>&2
|
||||
echo "configure: error. Please use the --with-tex-datadir option to point to the main" 1>&2
|
||||
echo "directory of your TeX installation, where the file texmf/web2c/texmf.cnf" 1>&2
|
||||
echo "is found." 1>&2
|
||||
exit -1
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue