mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
increase min autoconf version (2.59). Fixes #598.
This commit is contained in:
parent
8b3c6ac057
commit
54611c1cc8
18
configure.ac
18
configure.ac
@ -5,7 +5,7 @@
|
|||||||
# ----------------------------------------
|
# ----------------------------------------
|
||||||
# Initialization
|
# Initialization
|
||||||
# ----------------------------------------
|
# ----------------------------------------
|
||||||
AC_PREREQ([2.50])
|
AC_PREREQ([2.59])
|
||||||
AC_INIT([tesseract], [4.00.00dev], [https://github.com/tesseract-ocr/tesseract/issues])
|
AC_INIT([tesseract], [4.00.00dev], [https://github.com/tesseract-ocr/tesseract/issues])
|
||||||
AC_PROG_CXX([g++ clang++])
|
AC_PROG_CXX([g++ clang++])
|
||||||
AC_LANG([C++])
|
AC_LANG([C++])
|
||||||
@ -118,7 +118,7 @@ esac
|
|||||||
includedir="${includedir}/tesseract"
|
includedir="${includedir}/tesseract"
|
||||||
|
|
||||||
AC_ARG_WITH([extra-includes],
|
AC_ARG_WITH([extra-includes],
|
||||||
[AC_HELP_STRING([--with-extra-includes=DIR],
|
[AS_HELP_STRING([--with-extra-includes=DIR],
|
||||||
[Define an additional directory for include files])],
|
[Define an additional directory for include files])],
|
||||||
[if test -d "$withval" ; then
|
[if test -d "$withval" ; then
|
||||||
CFLAGS="$CFLAGS -I$withval"
|
CFLAGS="$CFLAGS -I$withval"
|
||||||
@ -127,7 +127,7 @@ AC_ARG_WITH([extra-includes],
|
|||||||
fi])
|
fi])
|
||||||
|
|
||||||
AC_ARG_WITH([extra-libraries],
|
AC_ARG_WITH([extra-libraries],
|
||||||
[AC_HELP_STRING([--with-extra-libraries=DIR],
|
[AS_HELP_STRING([--with-extra-libraries=DIR],
|
||||||
[Define an additional directory for library files])],
|
[Define an additional directory for library files])],
|
||||||
[if test -d "$withval" ; then
|
[if test -d "$withval" ; then
|
||||||
LDFLAGS="$LDFLAGS -L$withval"
|
LDFLAGS="$LDFLAGS -L$withval"
|
||||||
@ -137,8 +137,8 @@ AC_ARG_WITH([extra-libraries],
|
|||||||
|
|
||||||
AC_MSG_CHECKING([--enable-graphics argument])
|
AC_MSG_CHECKING([--enable-graphics argument])
|
||||||
AC_ARG_ENABLE([graphics],
|
AC_ARG_ENABLE([graphics],
|
||||||
[AC_HELP_STRING([--enable-graphics],[enable graphics (ScrollView) (default)])
|
[AS_HELP_STRING([--enable-graphics],[enable graphics (ScrollView) (default)])
|
||||||
AC_HELP_STRING([--disable-graphics],[disable graphics (ScrollView)])],
|
AS_HELP_STRING([--disable-graphics],[disable graphics (ScrollView)])],
|
||||||
[enable_graphics=$enableval],
|
[enable_graphics=$enableval],
|
||||||
[enable_graphics="yes"])
|
[enable_graphics="yes"])
|
||||||
AC_MSG_RESULT([$enable_graphics])
|
AC_MSG_RESULT([$enable_graphics])
|
||||||
@ -244,7 +244,7 @@ AC_SUBST([OPENCL_LDFLAGS])
|
|||||||
# http://groups.google.com/group/tesseract-dev/browse_thread/thread/976645ae98189127
|
# http://groups.google.com/group/tesseract-dev/browse_thread/thread/976645ae98189127
|
||||||
AC_MSG_CHECKING([--enable-visibility argument])
|
AC_MSG_CHECKING([--enable-visibility argument])
|
||||||
AC_ARG_ENABLE([visibility],
|
AC_ARG_ENABLE([visibility],
|
||||||
[AC_HELP_STRING([--enable-visibility],[enable experimental build with fvisibility (default=no)])],
|
[AS_HELP_STRING([--enable-visibility],[enable experimental build with fvisibility (default=no)])],
|
||||||
[enable_visibility=$enableval],
|
[enable_visibility=$enableval],
|
||||||
[enable_visibility="no"])
|
[enable_visibility="no"])
|
||||||
AC_MSG_RESULT([$enable_visibility])
|
AC_MSG_RESULT([$enable_visibility])
|
||||||
@ -253,7 +253,7 @@ AM_CONDITIONAL([VISIBILITY], [test "$enable_visibility" = "yes"])
|
|||||||
# check whether to build multiple libraries
|
# check whether to build multiple libraries
|
||||||
AC_MSG_CHECKING([--enable-multiple-libraries argument])
|
AC_MSG_CHECKING([--enable-multiple-libraries argument])
|
||||||
AC_ARG_ENABLE([multiple-libraries],
|
AC_ARG_ENABLE([multiple-libraries],
|
||||||
[AC_HELP_STRING([--enable-multiple-libraries],[enable multiple libraries (default=no)])],
|
[AS_HELP_STRING([--enable-multiple-libraries],[enable multiple libraries (default=no)])],
|
||||||
[enable_mlibs=$enableval],
|
[enable_mlibs=$enableval],
|
||||||
[enable_mlibs="no"])
|
[enable_mlibs="no"])
|
||||||
AC_MSG_RESULT([$enable_mlibs])
|
AC_MSG_RESULT([$enable_mlibs])
|
||||||
@ -262,7 +262,7 @@ AM_CONDITIONAL([USING_MULTIPLELIBS], [test "$enable_mlibs" = "yes"])
|
|||||||
# Check if tessdata-prefix is disabled
|
# Check if tessdata-prefix is disabled
|
||||||
AC_MSG_CHECKING([whether to use tessdata-prefix])
|
AC_MSG_CHECKING([whether to use tessdata-prefix])
|
||||||
AC_ARG_ENABLE([tessdata-prefix],
|
AC_ARG_ENABLE([tessdata-prefix],
|
||||||
[AC_HELP_STRING([--disable-tessdata-prefix],
|
[AS_HELP_STRING([--disable-tessdata-prefix],
|
||||||
[don't set TESSDATA-PREFIX during compile])],
|
[don't set TESSDATA-PREFIX during compile])],
|
||||||
[tessdata_prefix="no"], [tessdata_prefix="yes"])
|
[tessdata_prefix="no"], [tessdata_prefix="yes"])
|
||||||
AC_MSG_RESULT([$tessdata_prefix])
|
AC_MSG_RESULT([$tessdata_prefix])
|
||||||
@ -271,7 +271,7 @@ AM_CONDITIONAL([NO_TESSDATA_PREFIX], [test "$tessdata_prefix" = "no"])
|
|||||||
# Check whether enable debuging
|
# Check whether enable debuging
|
||||||
AC_MSG_CHECKING([whether to enable debugging])
|
AC_MSG_CHECKING([whether to enable debugging])
|
||||||
AC_ARG_ENABLE([debug],
|
AC_ARG_ENABLE([debug],
|
||||||
[AC_HELP_STRING([--enable-debug],
|
[AS_HELP_STRING([--enable-debug],
|
||||||
[turn on debugging (default=no)])],
|
[turn on debugging (default=no)])],
|
||||||
[debug=$enableval],
|
[debug=$enableval],
|
||||||
[debug="no"])
|
[debug="no"])
|
||||||
|
Loading…
Reference in New Issue
Block a user