Commit f8053920 authored by Linus Nordberg's avatar Linus Nordberg

* configure.ac: Check for docbook2x-man.

* Makefile.am: Build radsecproxy.conf.5 only if docbook2x-man exists.
parent 5739cce0
...@@ -44,10 +44,14 @@ radsecproxy_LDADD = @SSL_LIBS@ ...@@ -44,10 +44,14 @@ radsecproxy_LDADD = @SSL_LIBS@
catgconf_CFLAGS = -g -Wall -fno-strict-aliasing @TARGET_CFLAGS@ catgconf_CFLAGS = -g -Wall -fno-strict-aliasing @TARGET_CFLAGS@
catgconf_LDFLAGS = @TARGET_LDFLAGS@ catgconf_LDFLAGS = @TARGET_LDFLAGS@
dist_man_MANS = radsecproxy.1 radsecproxy.conf.5 dist_man_MANS = radsecproxy.1 $(GENMANPAGES)
EXTRA_DIST = LICENSE radsecproxy.conf-example radsecproxy.conf.5.xml \ EXTRA_DIST = LICENSE radsecproxy.conf-example radsecproxy.conf.5.xml \
tools/naptr-eduroam.sh tools/radsec-dynsrv.sh tools/README tools/naptr-eduroam.sh tools/radsec-dynsrv.sh tools/README
if HAVE_DOCBOOK2X_MAN
GENMANPAGES = radsecproxy.conf.5
endif
radsecproxy.conf.5: $(srcdir)/radsecproxy.conf.5.xml radsecproxy.conf.5: $(srcdir)/radsecproxy.conf.5.xml
docbook2x-man $< docbook2x-man $<
......
...@@ -81,6 +81,10 @@ if test "x$dtls" = "xyes" ; then ...@@ -81,6 +81,10 @@ if test "x$dtls" = "xyes" ; then
TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_DTLS" TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_DTLS"
fi fi
AC_ARG_VAR([DOCBOOK2X_MAN], [docbook2x-man])
AC_CHECK_PROG([DOCBOOK2X_MAN], [docbook2x-man], [yes])
AM_CONDITIONAL(HAVE_DOCBOOK2X_MAN, test "$DOCBOOK2X_MAN" = "yes")
AC_SUBST(TARGET_CFLAGS) AC_SUBST(TARGET_CFLAGS)
AC_SUBST(TARGET_LDFLAGS) AC_SUBST(TARGET_LDFLAGS)
AX_CHECK_SSL AX_CHECK_SSL
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment