@@ -31,16 +31,29 @@ AC_ARG_VAR([HELP2MAN],
|
|||||||
[absolute path to help2man used for man page generation of npa-tool])
|
[absolute path to help2man used for man page generation of npa-tool])
|
||||||
AC_PATH_PROG(HELP2MAN, help2man, not found)
|
AC_PATH_PROG(HELP2MAN, help2man, not found)
|
||||||
if test ! -r src/npa-tool.1 -a "${HELP2MAN}" = "not found"
|
if test ! -r src/npa-tool.1 -a "${HELP2MAN}" = "not found"
|
||||||
|
then
|
||||||
|
if test "${HELP2MAN}" = "not found"
|
||||||
then
|
then
|
||||||
AC_MSG_ERROR([Need help2man to generate man page for npa-tool])
|
AC_MSG_ERROR([Need help2man to generate man page for npa-tool])
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
# make sure these files are the most recent
|
||||||
|
touch src/npa-tool.1
|
||||||
|
fi
|
||||||
AC_ARG_VAR([GENGETOPT],
|
AC_ARG_VAR([GENGETOPT],
|
||||||
[absolute path to gengetopt used for command line parsing of npa-tool])
|
[absolute path to gengetopt used for command line parsing of npa-tool])
|
||||||
AC_PATH_PROG(GENGETOPT, gengetopt, not found)
|
AC_PATH_PROG(GENGETOPT, gengetopt, not found)
|
||||||
if test ! -r src/cmdline.h -a "${GENGETOPT}" = "not found"
|
if test ! -r src/cmdline.h -o ! -r src/cmdline.c
|
||||||
|
then
|
||||||
|
if "${GENGETOPT}" = "not found"
|
||||||
then
|
then
|
||||||
AC_MSG_ERROR([Need gengetopt for parsing command line of npa-tool])
|
AC_MSG_ERROR([Need gengetopt for parsing command line of npa-tool])
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
# make sure these files are the most recent
|
||||||
|
touch scr/npa-tool.ggo
|
||||||
|
touch src/cmdline.h src/cmdline.h
|
||||||
|
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])])
|
||||||
|
|||||||
@@ -30,16 +30,29 @@ AC_ARG_VAR([HELP2MAN],
|
|||||||
[absolute path to help2man used for man page generation of pcsc-relay])
|
[absolute path to help2man used for man page generation of pcsc-relay])
|
||||||
AC_PATH_PROG(HELP2MAN, help2man, not found)
|
AC_PATH_PROG(HELP2MAN, help2man, not found)
|
||||||
if test ! -r src/pcsc-relay.1 -a "${HELP2MAN}" = "not found"
|
if test ! -r src/pcsc-relay.1 -a "${HELP2MAN}" = "not found"
|
||||||
|
then
|
||||||
|
if test "${HELP2MAN}" = "not found"
|
||||||
then
|
then
|
||||||
AC_MSG_ERROR([Need help2man to generate man page for pcsc-relay])
|
AC_MSG_ERROR([Need help2man to generate man page for pcsc-relay])
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
# make sure these files are the most recent
|
||||||
|
touch src/pcsc-relay.1
|
||||||
|
fi
|
||||||
AC_ARG_VAR([GENGETOPT],
|
AC_ARG_VAR([GENGETOPT],
|
||||||
[absolute path to gengetopt used for command line parsing of pcsc-relay])
|
[absolute path to gengetopt used for command line parsing of pcsc-relay])
|
||||||
AC_PATH_PROG(GENGETOPT, gengetopt, not found)
|
AC_PATH_PROG(GENGETOPT, gengetopt, not found)
|
||||||
if test ! -r src/cmdline.h -a "${GENGETOPT}" = "not found"
|
if test ! -r src/cmdline.h -o ! -r src/cmdline.c
|
||||||
|
then
|
||||||
|
if "${GENGETOPT}" = "not found"
|
||||||
then
|
then
|
||||||
AC_MSG_ERROR([Need gengetopt for parsing command line of pcsc-relay])
|
AC_MSG_ERROR([Need gengetopt for parsing command line of pcsc-relay])
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
# make sure these files are the most recent
|
||||||
|
touch scr/pcsc-relay.ggo
|
||||||
|
touch src/cmdline.h src/cmdline.h
|
||||||
|
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])])
|
||||||
|
|||||||
Reference in New Issue
Block a user