Build: fail if wxWidgets lib can not be found but is required

Currently the build system will silently disable the Manager build when wxWidgets is missing or not a recent enough version.

Fix #1714
This commit is contained in:
Christian Beer 2017-10-25 10:09:47 +02:00
parent 0a02ac343e
commit d23e7736dd
1 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,9 @@ AC_DEFUN([BOINC_OPTIONS_WXWIDGETS],[
[])
AM_OPTIONS_WXCONFIG
AM_PATH_WXCONFIG($1, [_ac_cv_have_wxwidgets=yes], [_ac_cv_have_wxwidgets=no])
AM_PATH_WXCONFIG([$1],
[_ac_cv_have_wxwidgets=yes],
[AC_MSG_ERROR([No suitable wxWidgets library found.])])
AC_CACHE_CHECK([if wxWidgets works],[ac_cv_have_wxwidgets],
[ac_cv_have_wxwidgets="${_ac_cv_have_wxwidgets}"])
AC_CACHE_SAVE