Skip to content

Commit

Permalink
Add --disable-documentation option
Browse files Browse the repository at this point in the history
This option allows the user to disable man pages which can be useful if
podman is not available

Signed-off-by: Fabrice Fontaine <[email protected]>
  • Loading branch information
ffontaine authored and LudovicRousseau committed May 17, 2019
1 parent efc5697 commit 5345cf5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@ esac
AC_DEFINE_UNQUOTED(PCSC_ARCH, "$PCSC_ARCH", [PC/SC target architecture])
PCSCLITE_FEATURES="${PCSCLITE_FEATURES} $PCSC_ARCH $host"

# --disable-documentation
AC_ARG_ENABLE(documentation,
AS_HELP_STRING([--disable-documentation],[do not build documentation]),
[ enable_doc="${enableval}" ], [ enable_doc="yes" ] )
AM_CONDITIONAL(ENABLE_DOC, test "$enable_doc" != "no")

# See if socket() is found from libsocket
AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"])

Expand Down Expand Up @@ -446,6 +452,7 @@ use libsystemd: ${use_libsystemd}
systemd unit directory: ${with_systemdsystemunitdir}
serial config dir.: ${confdir_exp}
filter: ${use_filter}
documentation: ${enable_doc}

PCSCLITE_FEATURES: ${PCSCLITE_FEATURES}

Expand Down
2 changes: 2 additions & 0 deletions src/spy/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ dist_bin_SCRIPTS = pcsc-spy
libpcscspy_la_SOURCES = \
libpcscspy.c

if ENABLE_DOC
man_MANS = pcsc-spy.1

pcsc-spy.1: pcsc-spy.pod
pod2man \
--center="PC/SC lite" \
--release="$(PACKAGE_NAME) $(PACKAGE_VERSION)" \
$(srcdir)/pcsc-spy.pod > $@
endif

EXTRA_DIST = install_spy.sh uninstall_spy.sh pcsc-spy.pod
CLEANFILES = pcsc-spy.1
Expand Down

0 comments on commit 5345cf5

Please sign in to comment.