configure.ac: Error out when doc is requested but Doxygen is missing.

Previously, documentation would be automatically disabled when Doxygen
was found missing.

* configure.ac: Change AC_MSG_WARN into AC_MSG_ERROR and adjust error
message.
This commit is contained in:
Maxim Cournoyer authored and Adrien Béraud committed 2025-07-21 08:24:03 -04:00
1 parent e8cf9dd25f
commit ee4c8a19d6
1 file changed
+2 -1
+2 -1
View File
@@ -56,7 +56,8 @@ dnl Check for Doxygen
AC_ARG_ENABLE([doc], AS_HELP_STRING([--enable-doc], [Enable documentation generation (doxygen)]))
AS_IF([test "x$enable_doc" = "xyes"], [
AC_CHECK_PROGS([DOXYGEN], [doxygen])
AS_IF([test -z "$DOXYGEN"], [AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])])
AS_IF([test -z "$DOXYGEN"],
[AC_MSG_ERROR([Doxygen is required to generate the documentation.])])
])
AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"])