1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-08 22:08:02 +00:00

build: move error check to after summary in configure.ac.

Otherwise, if OpenCL is not found, the rest of the summary is not
printed.
This commit is contained in:
Noel Maersk 2014-03-29 18:53:34 +02:00
parent bafc71345c
commit 952c033ef2

View File

@ -363,14 +363,11 @@ AC_CONFIG_FILES([
AC_OUTPUT
echo
echo
echo
echo "------------------------------------------------------------------------"
echo "$PACKAGE $VERSION"
echo "------------------------------------------------------------------------"
echo
echo
echo "Configuration Options Summary:"
echo
@ -388,7 +385,6 @@ if test $found_opencl = 1; then
echo " OpenCL...............: FOUND. GPU mining support enabled"
else
echo " OpenCL...............: NOT FOUND. GPU mining support DISABLED"
AC_MSG_ERROR([OpenCL not found])
fi
if test "x$adl" != xno; then
@ -415,3 +411,8 @@ echo
echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
echo " prefix...............: $prefix"
echo
# Error out here, so the entire summary can be printed first
if test $found_opencl != 1; then
AC_MSG_ERROR([OpenCL not found])
fi