configure: make --disable-docs imply --disable-manual

Because when the docs is not built, the necesary curl.txt file is not
present so then the manual cannot get built.

Reported-by: Harry Sintonen
Closes #13191
This commit is contained in:
Daniel Stenberg 2024-03-26 17:14:56 +01:00
parent 4b42cda3df
commit 978790298c
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -998,28 +998,6 @@ AS_HELP_STRING([--disable-mqtt],[Disable MQTT support]),
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
) )
dnl **********************************************************************
dnl Check whether to build documentation
dnl **********************************************************************
AC_MSG_CHECKING([whether to build documentation])
AC_ARG_ENABLE(docs,
AS_HELP_STRING([--enable-docs],[Enable documentation])
AS_HELP_STRING([--disable-docs],[Disable documentation]),
[ case "$enableval" in
no)
AC_MSG_RESULT(no)
BUILD_DOCS=0
curl_docs_msg="no"
;;
*) AC_MSG_RESULT(yes)
BUILD_DOCS=1
;;
esac ],
AC_MSG_RESULT(yes)
BUILD_DOCS=1
)
dnl ********************************************************************** dnl **********************************************************************
dnl Check for built-in manual dnl Check for built-in manual
dnl ********************************************************************** dnl **********************************************************************
@ -1042,6 +1020,31 @@ AS_HELP_STRING([--disable-manual],[Disable built-in manual]),
dnl The actual use of the USE_MANUAL variable is done much later in this dnl The actual use of the USE_MANUAL variable is done much later in this
dnl script to allow other actions to disable it as well. dnl script to allow other actions to disable it as well.
dnl **********************************************************************
dnl Check whether to build documentation
dnl **********************************************************************
AC_MSG_CHECKING([whether to build documentation])
AC_ARG_ENABLE(docs,
AS_HELP_STRING([--enable-docs],[Enable documentation])
AS_HELP_STRING([--disable-docs],[Disable documentation]),
[ case "$enableval" in
no)
AC_MSG_RESULT(no)
BUILD_DOCS=0
dnl disable manual too because it needs built documentation
USE_MANUAL=0
curl_docs_msg="no"
;;
*) AC_MSG_RESULT(yes)
BUILD_DOCS=1
;;
esac ],
AC_MSG_RESULT(yes)
BUILD_DOCS=1
)
dnl ************************************************************ dnl ************************************************************
dnl disable C code generation support dnl disable C code generation support
dnl dnl