AM_CONDITIONAL(MAINTAINER_MODE,[test "$USE_MAINTAINER_MODE" = "yes"])
+AC_ARG_ENABLE(man-pages,
+ [ --enable-man-pages=no/yes/auto pod2man(1) required for man pages (def.=yes)],,enable_man_pages=yes)
AC_ARG_ENABLE(sbin-mountdir,
[ --enable-sbin-mountdir=DIR mount(8) 'mount.captive' directory (def.=/sbin)],,
[ enable_sbin_mountdir="/sbin" ])
[root-owned directory for captive-sandbox-server])
AC_SUBST(CAPTIVE_SANDBOX_CHROOT)
-
dnl Permit 'if NEVER' for Makefile.am-s; symbol 'FALSE' forbidden by automake
AM_CONDITIONAL(NEVER,false)
fi
AM_CONDITIONAL(HAVE_PERL,test -n "$PERL")
+POD2MAN=
+AC_PATH_PROGS(POD2MAN,pod2man)
+AM_CONDITIONAL(HAVE_POD2MAN,[ test -n "$POD2MAN" ])
+if test x$enable_man_pages = xyes;then
+ if test -z "$POD2MAN";then
+ AC_MSG_ERROR([captive requires pod2man(1) for man pages; try --disable-man-pages.])
+ fi
+ if test -z "$PERL";then
+ AC_MSG_ERROR([captive requires perl(1) for man pages; try --disable-man-pages.])
+ fi
+elif test x$enable_man_pages != xno;then
+ if test -z "$POD2MAN";then
+ AC_MSG_WARN([captive requires pod2man(1) for man pages by --enable-man-pages; mans will not be installed.])
+ fi
+ if test -z "$PERL";then
+ AC_MSG_WARN([captive requires perl(1) for man pages by --enable-man-pages; mans will not be installed.])
+ fi
+fi
+AM_CONDITIONAL(ENABLE_MAN_PAGES,[ test x$enable_man_pages != xno -a -n "$POD2MAN" -a -n "$PERL" ])
+
dnl Separate 'acconfig.h' is no longer recommended by autoconf
AH_TOP([
#ifndef _CAPTIVE_CONFIG_H
else
if test x$enable_bug_replay = xyes;then
AC_MSG_ERROR([captive require libxml2 at least 2.5.9 for --enable-bug-replay feature.])
- elif test x$enable_bug_replay != no;then
+ elif test x$enable_bug_replay != xno;then
AC_MSG_WARN([libxml2 at least 2.5.9 required --enable-bug-replay feature; disabled now.])
fi
fi
dnl FIXME: Why the rule above was written here?
AC_OUTPUT([
captive.spec
-./src/client/gnomevfs/captive.conf
+./src/libcaptive/captive.pod.pl
+./src/libcaptive/client/options.pod.pl
+./src/client/cmdline/captive-cmdline.pod.pl
+./src/client/lufs/lufs-captivefs.pod.pl
+./src/client/lufs/mount.captive.pod.pl
./src/client/lufs/mount.captive
+./src/client/sandbox-server/captive-sandbox-server.pod.pl
+./src/install/fstab/captive-install-fstab.pod.pl
+./src/install/acquire/captive-install-acquire.pod.pl
+./src/client/gnomevfs/captive.conf
./po/Makefile.in
./macros/glade-w.sh
Makefile