@@ -3463,9 +3463,6 @@ dnl is set to 'no', we may still want to build some doc targets manually
3463
3463
dnl (so enable the Makefile recipes for those targets if tools are available)
3464
3464
NUT_CHECK_ASCIIDOC
3465
3465
3466
- NUT_REPORT_FEATURE([ requested to build and install documentation] , [ ${nut_with_doc}] , [ ] ,
3467
- [ WITH_ASCIIDOC] , [ Define to enable Asciidoc support] )
3468
-
3469
3466
DOC_INSTALL_DISTED_MANS=no
3470
3467
KNOWN_UNABLE_MANS=no
3471
3468
@@ -3496,6 +3493,9 @@ dnl If user passed --with-doc='' they they want nothing, right?
3496
3493
;;
3497
3494
esac
3498
3495
3496
+ NUT_REPORT_FEATURE([ requested to build and install documentation] , [ '${nut_with_doc}' => '${nut_doc_build_list}'] , [ ] ,
3497
+ [ WITH_ASCIIDOC] , [ Define to enable Asciidoc support] , [ -] )
3498
+
3499
3499
if test -z "${abs_srcdir}" ; then
3500
3500
case "${srcdir}" in
3501
3501
/*) abs_srcdir="${srcdir}";;
@@ -3574,7 +3574,7 @@ dnl not fail if we have no tools to generate it (so add to SKIP list).
3574
3574
AC_MSG_RESULT ( no )
3575
3575
DOC_CANNOTBUILD_LIST="${DOC_CANNOTBUILD_LIST} ${nut_doc_build_target_base}"
3576
3576
if test "${nut_doc_build_target_flag}" = "yes" ; then
3577
- AC_MSG_WARN ( [ Unable to build ${nut_doc_build_target_base} documentation which you requested] )
3577
+ AC_MSG_WARN ( [ Unable to build ${nut_doc_build_target_base} documentation which you requested; will reflect on this below ] )
3578
3578
else
3579
3579
DOC_SKIPBUILD_LIST="${DOC_SKIPBUILD_LIST} ${nut_doc_build_target_base}"
3580
3580
fi
@@ -3597,7 +3597,7 @@ dnl not fail if we have no tools to generate it (so add to SKIP list).
3597
3597
AC_MSG_RESULT ( no )
3598
3598
DOC_CANNOTBUILD_LIST="${DOC_CANNOTBUILD_LIST} ${nut_doc_build_target_base}"
3599
3599
if test "${nut_doc_build_target_flag}" = "yes" ; then
3600
- AC_MSG_WARN ( [ Unable to build ${nut_doc_build_target_base} documentation which you requested] )
3600
+ AC_MSG_WARN ( [ Unable to build ${nut_doc_build_target_base} documentation which you requested; will reflect on this below ] )
3601
3601
else
3602
3602
DOC_SKIPBUILD_LIST="${DOC_SKIPBUILD_LIST} ${nut_doc_build_target_base}"
3603
3603
fi
@@ -3623,7 +3623,7 @@ dnl not fail if we have no tools to generate it (so add to SKIP list).
3623
3623
AC_MSG_RESULT ( no )
3624
3624
DOC_CANNOTBUILD_LIST="${DOC_CANNOTBUILD_LIST} ${nut_doc_build_target_base}"
3625
3625
if test "${nut_doc_build_target_flag}" = "yes" ; then
3626
- AC_MSG_WARN ( [ Unable to build ${nut_doc_build_target_base} documentation which you requested] )
3626
+ AC_MSG_WARN ( [ Unable to build ${nut_doc_build_target_base} documentation which you requested; will reflect on this below ] )
3627
3627
else
3628
3628
DOC_SKIPBUILD_LIST="${DOC_SKIPBUILD_LIST} ${nut_doc_build_target_base}"
3629
3629
fi
@@ -3660,7 +3660,7 @@ dnl not fail if we have no tools to generate it (so add to SKIP list).
3660
3660
DOC_CANNOTBUILD_LIST="${DOC_CANNOTBUILD_LIST} ${nut_doc_build_target_base}"
3661
3661
KNOWN_UNABLE_MANS=yes
3662
3662
if test "${nut_doc_build_target_flag}" = "yes" ; then
3663
- AC_MSG_WARN ( [ Unable to build ${nut_doc_build_target_base} documentation which you requested] )
3663
+ AC_MSG_WARN ( [ Unable to build ${nut_doc_build_target_base} documentation which you requested; will reflect on this below ] )
3664
3664
else
3665
3665
DOC_SKIPBUILD_LIST="${DOC_SKIPBUILD_LIST} ${nut_doc_build_target_base}"
3666
3666
if test "${nut_doc_build_target_flag}" = "auto" || test "${nut_doc_build_target_flag}" = "dist-auto" ; then
@@ -3684,28 +3684,30 @@ done
3684
3684
rm -rf "${DOCTESTDIR}"
3685
3685
3686
3686
AS_IF ( [ test x"${nut_enable_configure_debug}" = xyes] , [
3687
- AC_MSG_NOTICE ( [ (CONFIGURE-DEVEL-DEBUG) DOC_BUILD_LIST: '${DOC_BUILD_LIST}'] )
3688
- AC_MSG_NOTICE ( [ (CONFIGURE-DEVEL-DEBUG) DOC_CANNOTBUILD_LIST: '${DOC_CANNOTBUILD_LIST}'] )
3689
- AC_MSG_NOTICE ( [ (CONFIGURE-DEVEL-DEBUG) DOC_SKIPBUILD_LIST: '${DOC_SKIPBUILD_LIST}'] )
3687
+ AC_MSG_NOTICE ( [ (CONFIGURE-DEVEL-DEBUG) DOC_BUILD_LIST: '${DOC_BUILD_LIST}'] )
3688
+ AC_MSG_NOTICE ( [ (CONFIGURE-DEVEL-DEBUG) DOC_CANNOTBUILD_LIST: '${DOC_CANNOTBUILD_LIST}'] )
3689
+ AC_MSG_NOTICE ( [ (CONFIGURE-DEVEL-DEBUG) DOC_SKIPBUILD_LIST: '${DOC_SKIPBUILD_LIST}'] )
3690
3690
] )
3691
3691
3692
3692
case "${nut_with_doc}" in
3693
3693
auto)
3694
3694
if test -n "${DOC_BUILD_LIST}"; then
3695
+ dnl # We can build at least one format...
3695
3696
nut_with_doc="yes"
3696
3697
else
3698
+ dnl # We can not build any formats...
3697
3699
nut_with_doc="no"
3698
3700
fi
3699
3701
;;
3700
3702
no)
3701
3703
;;
3702
- *)
3704
+ *) dnl # yes, all, skip...
3703
3705
if test -n "${DOC_CANNOTBUILD_LIST}"; then
3704
3706
DOC_CANNOTBUILD_LIST_LINES="`echo "${DOC_CANNOTBUILD_LIST}" | tr ' ' '\n' | grep -vE '^$'`"
3705
- for DOCTYPE in ${DOC_BUILD_LIST } ; do
3706
- if echo "${DOC_CANNOTBUILD_LIST_LINES}" | grep -E "^${DOCTYPE}(|=yes)\$" ; then
3707
+ for DOCTYPE in ${nut_doc_build_list } ; do
3708
+ if echo "${DOC_CANNOTBUILD_LIST_LINES}" | grep -E "^${DOCTYPE}(|=yes)\$" >/dev/null 2>/dev/null ; then
3707
3709
AC_MSG_ERROR ( [ Unable to build${DOC_CANNOTBUILD_LIST} documentation (check for 'no' results above)] )
3708
- else if echo "${DOC_CANNOTBUILD_LIST_LINES}" | grep -E "^${DOCTYPE}=(skip|auto|dist-auto)\$" ; then
3710
+ else if echo "${DOC_CANNOTBUILD_LIST_LINES}" | grep -E "^${DOCTYPE}=(skip|auto|dist-auto)\$" >/dev/null 2>/dev/null ; then
3709
3711
AC_MSG_NOTICE ( [ Unable to build${DOC_CANNOTBUILD_LIST} documentation (check for 'no' results above), skipping] )
3710
3712
fi
3711
3713
fi
@@ -3727,7 +3729,7 @@ esac
3727
3729
AM_CONDITIONAL(WITH_PDF_NONASCII_TITLES, [ test x"$can_build_doc_pdf_nonascii_titles" = xyes] )
3728
3730
3729
3731
NUT_REPORT_FEATURE([ would build specific documentation format ( s ) ] , [ ${nut_with_doc}] , [ ${DOC_BUILD_LIST}] ,
3730
- [ WITH_DOCS] , [ Define to enable overall documentation generation] )
3732
+ [ WITH_DOCS] , [ Define to enable overall documentation generation] , [ - ] )
3731
3733
3732
3734
# To cater for less portable make's, precalculate the target list
3733
3735
# for "make check" in "docs/" here...
0 commit comments