dnl -*-m4-*-
dnl
-dnl $Id: configure.in,v 1.22 2004/04/17 10:46:08 mdw Exp $
+dnl $Id$
dnl
dnl Source for auto configuration for `become'
dnl
;;
esac],
[style="l_preserve"])
-AC_DEFINE_UNQUOTED(DEFAULT_LOGIN_STYLE, $style)
+AC_DEFINE_UNQUOTED([DEFAULT_LOGIN_STYLE], [$style],
+ [Default login style: l_preserve, l_setuser or l_login.])
dnl --- Choose networking options ---
AC_ARG_ENABLE([network],
[ --disable-network disable the client-server bits of the program],
[if test "$enableval" = "no"; then
- AC_DEFINE(NONETWORK)
+ AC_DEFINE([NONETWORK], [1], [Define to disable network support.])
fi])
dnl --- Set configuration directory ---
[htmldir="$withval"], [htmldir='${prefix}/html/become'])
AC_SUBST(htmldir)
+AH_TEMPLATE([ETCDIR], [Where Become should look for its configuration.])
+AH_TEMPLATE([file_PID], [Where Become should write its process-id.])
mdw_DEFINE_PATHS([
mdw_DEFINE_PATH([ETCDIR], [$etcdir])
mdw_DEFINE_PATH([file_PID], [$pidfile])
mdw_CATACOMB(2.1.0)
mdw_CHECK_MANYLIBS(socket, socket,,
- [AC_MSG_ERROR([Socket library not found])])
+ [AC_MSG_ERROR([Socket library not found.])])
mdw_CHECK_MANYLIBS(gethostbyname, resolv nsl,,
- [AC_MSG_ERROR([Resolver library not found])])
+ [AC_MSG_ERROR([Resolver library not found.])])
-mdw_CHECK_MANYLIBS(yp_all, nsl, AC_DEFINE(HAVE_YP))
+mdw_CHECK_MANYLIBS([yp_all], [nsl],
+ [AC_DEFINE([HAVE_YP], [1],
+ [Define if you have (and want to use) the Yellow Peril.])])
dnl --- Other functions ---
-AC_CHECK_FUNCS(sigprocmask)
+AC_CHECK_FUNCS([sigprocmask])
dnl --- Types ---
dnl --- Set the path separator ---
-AC_DEFINE(PATHSEP, '/')
+AC_DEFINE([PATHSEP], ['/'], [Your operating system's path separator.])
dnl --- Check for some useful functions ---