From 0ad6e3e77fbcabe75ca8ca0755a6623ff34d1ac6 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 19 Jul 2018 16:07:35 +0200 Subject: [PATCH] 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 --- configure.ac | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 1bf690e4..e1df50e8 100644 --- a/configure.ac +++ b/configure.ac @@ -160,12 +160,7 @@ fi AC_MSG_CHECKING([--enable-legacy argument]) AC_ARG_ENABLE([legacy], - [ - 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"]) + AS_HELP_STRING([--disable-legacy], [disable the legacy OCR engine])) AC_MSG_RESULT([$enable_legacy]) AM_CONDITIONAL([DISABLED_LEGACY_ENGINE], test "$enable_legacy" = "no")