COPYING
-install-sh
manual/gpl.texi
-manual/texinfo.tex
manual/texinice.tex
-missing
-mkinstalldirs
+++ /dev/null
-/* -*-c-*-
- *
- * $Id: acconfig.h,v 1.12 2004/04/08 01:36:20 mdw Exp $
- *
- * Default settings for `become' config.h
- *
- * (c) 1998 Mark Wooding
- */
-
-/*----- Licensing notice --------------------------------------------------*
- *
- * This file is part of `become'
- *
- * `Become' is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * `Become' is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with `become'; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-#ifndef CONFIG_H
-#define CONFIG_H
-
-/*----- Variables set up by the configuration script ----------------------*/
-@TOP@
-
-/* My package name. */
-#define PACKAGE "become"
-
-/* My version number. */
-#define VERSION "1.2-pre"
-
-/* The `etcdir' contains configuration and state information. */
-#define ETCDIR "/etc/become"
-
-/* The `pidfile' is where Become puts its process id if it runs as a
- * daemon. */
-#define file_PID "/etc/become/become.pid"
-
-/* Default login style can be `l_preserve', `l_setuser' or `l_login'. */
-#define DEFAULT_LOGIN_STYLE l_preserve
-
-/* This is replaced by `/' by `configure' -- leave alone for DOSness. */
-#define PATHSEP '\\'
-
-/* Define to turn off networking support. */
-#undef NONETWORK
-
-/* Debugging options. */
-#undef NTRACE
-
-#ifndef TEST_RIG
-#undef NDEBUG
-#endif
-
-/* Define if we have YP support. */
-#undef HAVE_YP
-
-/* Define to `int' if nothing defines. */
-#undef ssize_t
-
-@BOTTOM@
-
-/*----- Some light processing on the configuration variables --------------*/
-
-/* --- Important filenames based on the @ETCDIR@ --- */
-
-#define file_KEY ETCDIR "/become.key"
-#define file_PUBKEY ETCDIR "/become.pubkey"
-#define file_RULES ETCDIR "/become.conf"
-#define file_SERVER ETCDIR "/become.server"
-
-/* --- Debugging macros --- */
-
-#ifdef NDEBUG
-# define D(x) /* empty */
-#else
-# define D(x) x
-#endif
-
-/*----- That's all, folks -------------------------------------------------*/
-
-#endif
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 ---
mkaclocal
autoheader
autoconf
-automake
-mkdir build
+automake -a
+mkdir -p build
## Process this file with `automake' to generate `Makefile.in'
## -*-makefile-*-
##
-## $Id: Makefile.am,v 1.17 2004/04/08 01:36:20 mdw Exp $
+## $Id$
##
## Makefile for `become'
##
## --- Yaccing and lexing ---
-YFLAGS = -d -v
+AM_YFLAGS = -d -v
dist-hook:
for i in $(BUILT_SOURCES); do \
# include "config.h"
#endif
+/*----- Other configuration -----------------------------------------------*/
+
+#define file_KEY ETCDIR "/become.key"
+#define file_PUBKEY ETCDIR "/become.pubkey"
+#define file_RULES ETCDIR "/become.conf"
+#define file_SERVER ETCDIR "/become.server"
+
+#ifdef NDEBUG
+# define D(x) /* empty */
+#else
+# define D(x) x
+#endif
+
/*----- Tracing levels ----------------------------------------------------*/
#define TRACE_SILENT 0u
/* -*-c-*-
*
- * $Id: parser.y,v 1.9 2004/04/08 01:36:20 mdw Exp $
+ * $Id$
*
* Parser for `become.conf' files
*
#include "rule.h"
#include "userdb.h"
+#define YYDEBUG 1
+#define YYERROR_VERBOSE
+
%}
/*----- Stack type --------------------------------------------------------*/
/*----- Error reporting ---------------------------------------------------*/
%{
-#define YYDEBUG 1
-#define YYERROR_VERBOSE
-
/* --- @yyprint@ --- *
*
* Arguments: @FILE *fp@ = pointer to stream to write on