configure: Clean code for --enable-legacy

* Remove unneeded arguments for AC_ARG_ENABLE
* Fix formatting of help text
* Remove help text for --enable-legacy

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2018-07-19 16:07:35 +02:00
parent e47a9272d7
commit 0ad6e3e77f

View File

@ -160,12 +160,7 @@ fi
AC_MSG_CHECKING([--enable-legacy argument]) AC_MSG_CHECKING([--enable-legacy argument])
AC_ARG_ENABLE([legacy], AC_ARG_ENABLE([legacy],
[ AS_HELP_STRING([--disable-legacy], [disable the legacy OCR engine]))
AS_HELP_STRING([--enable-legacy],[enable the legacy OCR engine])
AS_HELP_STRING([--disable-legacy], [disable the legacy OCR engine])
],
[enable_legacy=$enableval],
[enable_legacy="yes"])
AC_MSG_RESULT([$enable_legacy]) AC_MSG_RESULT([$enable_legacy])
AM_CONDITIONAL([DISABLED_LEGACY_ENGINE], test "$enable_legacy" = "no") AM_CONDITIONAL([DISABLED_LEGACY_ENGINE], test "$enable_legacy" = "no")