[PATCH ocserv] warn if autogen isn't installed
Jason Cooper
jason at lakedaemon.net
Tue Feb 26 15:32:14 EST 2013
Signed-off-by: Jason Cooper <jason at lakedaemon.net>
---
Tested with and without autogen.
configure.ac | 8 ++++++++
doc/Makefile.am | 2 +-
src/Makefile.am | 2 +-
3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 1cb55ac..7460806 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,6 +17,14 @@ if [ test "$GCC" = "yes" ];then
fi
AC_PATH_PROG(CTAGS, ctags, /bin/true)
AC_PATH_PROG(CSCOPE, cscope, /bin/true)
+AC_PATH_PROG(AUTOGEN, autogen, /bin/true)
+
+if test x"$AUTOGEN" = "x/bin/true"; then
+ AC_MSG_WARN([[
+***
+*** autogen not found. We will not build manpages.
+*** ]])
+fi
AC_CHECK_SIZEOF([unsigned long])
AC_C_BIGENDIAN
diff --git a/doc/Makefile.am b/doc/Makefile.am
index faa1f35..596893c 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -4,5 +4,5 @@ dist_man_MANS = ocserv.1
ocserv.1: ../src/ocserv-args.def
-sed 's/@subheading \(.*\)/@*\n at var{\1}\n@*/' $< > "$<".tmp && \
- autogen -DMAN_SECTION=1 -Tagman-cmd.tpl "$<".tmp && \
+ @AUTOGEN@ -DMAN_SECTION=1 -Tagman-cmd.tpl "$<".tmp && \
rm -f "$<".tmp
diff --git a/src/Makefile.am b/src/Makefile.am
index 9806e23..17c11e2 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -28,4 +28,4 @@ ocserv_LDADD += $(LIBGNUTLS_LIBS) $(GDBM_LIBS) $(PAM_LIBS) $(LIBUTIL) \
$(LIBSECCOMP) $(LIBWRAP)
ocserv-args.c ocserv-args.h: $(srcdir)/ocserv-args.def
- -autogen $<
+ - at AUTOGEN@ $<
--
1.7.10.4
More information about the openconnect-devel
mailing list