Skip to content

Commit

Permalink
configure: improved man gen
Browse files Browse the repository at this point in the history
- added switch to enable/disable

- write status to summary
  • Loading branch information
MartinPulec committed Nov 14, 2023
1 parent 65bf070 commit 7350c5d
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,23 @@ AC_SUBST(DYLIBBUNDLER)
AC_PATH_PROGS(A2X, [asciidoctor a2x], [:])
AC_SUBST(A2X)
AC_SUBST(MANPAGES)
man=no

if test "$A2X" != :; then
MANPAGES=uv.1
AC_ARG_ENABLE(man, AS_HELP_STRING([--enable-man], [build (default is auto)]
[requires: AsciiDoc/Asciidoctor]),
[req_man=$enableval],
[req_man=$build_default])

if test "$req_man" != no; then
if test "$A2X" != :; then
man=yes
MANPAGES=uv.1
fi
fi

if test "$req_man" = yes && test "$A2X" = :; then
AC_MSG_ERROR([Manual pages generate required, but]
[AsciiDoc/Asciidoctor was not found!])
fi

# -------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -3288,7 +3302,7 @@ AC_ARG_ENABLE(reflector,
[reflector_req=$build_default])
if test "$reflector_req" != no; then
REFLECTOR_REQ=yes
if test -n "$MANPAGES"; then
if test "$man" = yes; then
MANPAGES="$MANPAGES hd-rum-transcode.1"
fi
fi
Expand Down Expand Up @@ -3429,6 +3443,7 @@ RESULT=`add_column "$RESULT" "Debug output" $debug_output $?`
RESULT=`add_column "$RESULT" "iHDTV support" $ihdtv $?`
RESULT=`add_column "$RESULT" "IPv6 support" $ipv6 $?`
RESULT=`add_column "$RESULT" "Library live555" $livemedia $?`
RESULT=`add_column "$RESULT" "Manual pages" $man $?`
RESULT=`add_column "$RESULT" "OpenCV" $opencv $?`
RESULT=`add_column "$RESULT" "Profiling support" $profile $?`
RESULT=`add_column "$RESULT" "Qt GUI" $qt_gui $?`
Expand Down

0 comments on commit 7350c5d

Please sign in to comment.