autotools: fail if g++ or clang++ compiler is not found; Fixes #130

This commit is contained in:
Zdenko Podobný 2015-11-04 22:39:24 +01:00
parent 2591396e64
commit 34f34eadb8

View File

@ -7,6 +7,9 @@
# ---------------------------------------- # ----------------------------------------
AC_PREREQ(2.50) AC_PREREQ(2.50)
AC_INIT([tesseract], [3.05.00dev], [https://github.com/tesseract-ocr/tesseract/issues]) AC_INIT([tesseract], [3.05.00dev], [https://github.com/tesseract-ocr/tesseract/issues])
AC_PROG_CXX(g++ clang++)
AC_LANG([C++])
AC_LANG_COMPILER_REQUIRE
CXXFLAGS=${CXXFLAGS:-""} CXXFLAGS=${CXXFLAGS:-""}
AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR(config) AC_CONFIG_AUX_DIR(config)
@ -315,9 +318,6 @@ fi
# be intimately linked... # be intimately linked...
# ---------------------------------------- # ----------------------------------------
# Define order of compilers
AC_PROG_CXX(g++)
AC_PROG_LIBTOOL AC_PROG_LIBTOOL
# ---------------------------------------- # ----------------------------------------