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

@@ -27,9 +27,20 @@ AC_PROG_INSTALL
AC_PROG_SED AC_PROG_SED
AM_PROG_CC_C_O AM_PROG_CC_C_O
PKG_PROG_PKG_CONFIG PKG_PROG_PKG_CONFIG
AC_PATH_PROG(HELP2MAN, help2man, false // No help2man //) AC_ARG_VAR([HELP2MAN],
AC_PATH_PROG(GENGETOPT, gengetopt, false // No gengetopt //) [absolute path to help2man used for man page generation of npa-tool])
AC_PATH_PROG(GENGETOPT, doxygen, false // No gengetopt //) AC_PATH_PROG(HELP2MAN, help2man, not found)
if test ! -r src/npa-tool.1 -a "${HELP2MAN}" = "not found"
then
AC_MSG_ERROR([Need help2man to generate man page for npa-tool])
fi
AC_ARG_VAR([GENGETOPT],
[absolute path to gengetopt used for command line parsing of npa-tool])
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 npa-tool])
fi
# If you need to see the details, just run make V=1. # If you need to see the details, just run make V=1.
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
@@ -125,6 +136,10 @@ OPENSSL_LIBS: ${OPENSSL_LIBS}
OPENPACE_CFLAGS: ${OPENPACE_CFLAGS} OPENPACE_CFLAGS: ${OPENPACE_CFLAGS}
OPENPACE_LIBS: ${OPENPACE_LIBS} OPENPACE_LIBS: ${OPENPACE_LIBS}
HELP2MAN: ${HELP2MAN}
GENGETOPT: ${GENGETOPT}
EOF EOF
AC_CONFIG_FILES([ AC_CONFIG_FILES([

View File

@@ -13,8 +13,20 @@ AM_PROG_CC_C_O
AM_PATH_PYTHON AM_PATH_PYTHON
AC_PROG_SED AC_PROG_SED
PKG_PROG_PKG_CONFIG PKG_PROG_PKG_CONFIG
AC_PATH_PROG(HELP2MAN, help2man, false // No help2man //) AC_ARG_VAR([HELP2MAN],
AC_PATH_PROG(GENGETOPT, gengetopt, false // No gengetopt //) [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. # If you need to see the details, just run make V=1.
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
@@ -91,6 +103,10 @@ LIBNFC_LIBS: ${LIBNFC_LIBS}
OpenPICC device: ${piccdev} OpenPICC device: ${piccdev}
HELP2MAN: ${HELP2MAN}
GENGETOPT: ${GENGETOPT}
EOF EOF