comprehensive checking for help2man and gengetopt

This commit is contained in:
Frank Morgner
2012-10-26 22:04:24 +02:00
parent 38f2f363bf
commit cc3095a2f0
2 changed files with 36 additions and 5 deletions

View File

@@ -13,8 +13,20 @@ AM_PROG_CC_C_O
AM_PATH_PYTHON
AC_PROG_SED
PKG_PROG_PKG_CONFIG
AC_PATH_PROG(HELP2MAN, help2man, false // No help2man //)
AC_PATH_PROG(GENGETOPT, gengetopt, false // No gengetopt //)
AC_ARG_VAR([HELP2MAN],
[absolute path to help2man used for man page generation of pcsc-relay])
AC_PATH_PROG(HELP2MAN, help2man, not found)
if test ! -r src/pcsc-relay.1 -a "${HELP2MAN}" = "not found"
then
AC_MSG_ERROR([Need help2man to generate man page for pcsc-relay])
fi
AC_ARG_VAR([GENGETOPT],
[absolute path to gengetopt used for command line parsing of pcsc-relay])
AC_PATH_PROG(GENGETOPT, gengetopt, not found)
if test ! -r src/cmdline.h -a "${GENGETOPT}" = "not found"
then
AC_MSG_ERROR([Need gengetopt for parsing command line of pcsc-relay])
fi
# If you need to see the details, just run make V=1.
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
@@ -91,6 +103,10 @@ LIBNFC_LIBS: ${LIBNFC_LIBS}
OpenPICC device: ${piccdev}
HELP2MAN: ${HELP2MAN}
GENGETOPT: ${GENGETOPT}
EOF