mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
configure: Clean code for --enable-debug
* Remove unneeded arguments for AC_ARG_ENABLE (needs renaming of macro) * Use [] instead of () for default in help text Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
11d9d8e59a
commit
11cafd7673
@ -284,12 +284,9 @@ AM_CONDITIONAL([NO_TESSDATA_PREFIX], [test "$tessdata_prefix" = "no"])
|
|||||||
# Check whether to enable debugging
|
# Check whether to enable debugging
|
||||||
AC_MSG_CHECKING([whether to enable debugging])
|
AC_MSG_CHECKING([whether to enable debugging])
|
||||||
AC_ARG_ENABLE([debug],
|
AC_ARG_ENABLE([debug],
|
||||||
[AS_HELP_STRING([--enable-debug],
|
AS_HELP_STRING([--enable-debug], [turn on debugging [default=no]]))
|
||||||
[turn on debugging (default=no)])],
|
AC_MSG_RESULT([$enable_debug])
|
||||||
[debug=$enableval],
|
if test x"$enable_debug" = x"yes"; then
|
||||||
[debug="no"])
|
|
||||||
AC_MSG_RESULT([$debug])
|
|
||||||
if test x"$debug" = x"yes"; then
|
|
||||||
AM_CXXFLAGS="$AM_CXXFLAGS -g -Wall -O0 -DDEBUG"
|
AM_CXXFLAGS="$AM_CXXFLAGS -g -Wall -O0 -DDEBUG"
|
||||||
AM_CPPFLAGS="$AM_CPPFLAGS -g -Wall -DDEBUG"
|
AM_CPPFLAGS="$AM_CPPFLAGS -g -Wall -DDEBUG"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user