improved leptonica detection; thanks to Samuel de fram

git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@581 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
zdenop@gmail.com 2011-03-30 19:40:23 +00:00
parent b140174e84
commit e6b682d110

View File

@ -328,8 +328,14 @@ AC_PATH_LIBTIFF(,
AC_MSG_WARN([TIFF support is disabled]) ])
# Check location of leptonica/liblept headers.
AC_MSG_CHECKING(for leptonica)
AC_ARG_VAR(LIBLEPT_HEADERSDIR,[Leptonica headers directory])
have_lept=no
for incd in /usr/local/include /usr/include
if test "$LIBLEPT_HEADERSDIR" = "" ; then
LIBLEPT_HEADERSDIR="/usr/local/include /usr/include"
fi
for incd in $LIBLEPT_HEADERSDIR
do
for lept in . leptonica liblept
do
@ -340,10 +346,12 @@ do
done
done
if test "$have_lept" = yes ; then
AC_CHECK_LIB(lept,pixCreate)
AC_MSG_RESULT(yes)
AC_CHECK_LIB(lept,pixCreate)
else
AC_MSG_ERROR([leptonica not found])
fi
# ----------------------------------------
# Final Tasks and Output
# ----------------------------------------