+++ /dev/null
-/* -*-c-*-
- *
- * $Id: acconfig.h,v 1.2 2004/04/08 01:52:18 mdw Exp $
- *
- * Configuration skeleton
- *
- * (c) 1999 EBI
- */
-
-/*----- Licensing notice --------------------------------------------------*
- *
- * This file is part of sw-tools.
- *
- * sw-tools 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.
- *
- * sw-tools 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 sw-tools; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-#ifndef ACCONFIG_H
-#define ACCONFIG_H
-
-#ifdef __cplusplus
- extern "C" {
-#endif
-
-#define _GNU_SOURCE
-
-/*----- Configuration variables -------------------------------------------*/
-@TOP@
-
-/* The package name. */
-#define PACKAGE "sw-tools"
-
-/* Current version. */
-#define VERSION "1.0.0"
-
-/* The installed name of my program. */
-#define SW "sw"
-
-/* Various handy directories. */
-#define PREFIX "/usr/local"
-#define BINDIR "/usr/local/bin"
-#define DATADIR "/usr/local/share"
-
-/* Derived facts from the above. */
-#define ARCHTAB DATADIR "/archtab"
-#define PATH_SW BINDIR "/" SW
-
-/* My architecture name. */
-#define ARCH "i386-linux"
-
-/* Whether to compile in curses support. */
-#define HAVE_CURSES
-
-/* Whether the `environ' array is already declared somewhere useful. */
-#undef DECL_ENVIRON
-
-/* Command for starting a remote shell. */
-#define RSH "/usr/bin/rsh"
-
-/* Return type from `read' and `write'. */
-#undef ssize_t
-
-/* Define if you have <curses.h>. */
-#undef HAVE_CURSES_H
-
-@BOTTOM@
-
-/*----- That's all, folks -------------------------------------------------*/
-
-#ifdef __cplusplus
- }
-#endif
-
-#endif
dnl --- Boring boilerplate ---
AC_INIT(src/sw.c)
-AM_INIT_AUTOMAKE(sw-tools, 1.0.5mdw1)
+AM_INIT_AUTOMAKE(sw-tools, 1.0.5mdw2)
AM_CONFIG_HEADER(config.h)
dnl --- Work out the architecture name ---
AC_MSG_CHECKING([architecture name])
arch=`$srcdir/sw.in --archname`
AC_MSG_RESULT($arch)
-AC_DEFINE_UNQUOTED(ARCH, "$arch")
+AC_DEFINE_UNQUOTED(ARCH, "$arch", [My architecture name.])
AC_SUBST(arch)
dnl --- Set up the C compiler ---
[ --with-rsh=PROGRAM use PROGRAM to start remote shells],
[RSH=$withval])
AC_PATH_PROGS(RSH, $RSH remsh rsh ssh, rsh)
-AC_DEFINE_UNQUOTED(RSH, "$RSH")
+AC_DEFINE_UNQUOTED(RSH, "$RSH", [Default remote shell program.])
dnl --- Various simple tests ---
dnl --- Write in some useful paths ---
-mdw_prefix=$prefix mdw_exec_prefix=$exec_prefix
-transform=`echo "$program_transform_name"|sed 's,\\\\\\\\,\\\\,g; s,\\$\\$,$,g'`
-test "$prefix" = "NONE" && prefix=$ac_default_prefix
-test "$exec_prefix" = "NONE" && exec_prefix=$prefix
-SW=`echo sw|sed "$transform"`
-AC_SUBST(SW)
-AC_DEFINE_UNQUOTED(PREFIX, "$mdw_prefix")
-AC_DEFINE_UNQUOTED(BINDIR, "`eval echo $bindir`")
-AC_DEFINE_UNQUOTED(DATADIR, "`eval echo $datadir`")
-AC_DEFINE_UNQUOTED(SW, "$SW")
-pkgdatadir="`eval echo $datadir/sw`"
-AC_SUBST(pkgdatadir)
-prefix=$mdw_prefix exec_prefix=$mdw_exec_prefix
+
+mdw_DEFINE_PATHS([
+ mdw_DEFINE_PATH([PREFIX], [$prefix])
+ mdw_DEFINE_PATH([DATADIR], [$datadir])
+ mdw_DEFINE_PATH([ARCHTAB], [$datadir/archtab])
+ mdw_DEFINE_PROG([PATH_SW], [sw])
+ pkgdatadir=mdw_PATH([$datadir/$PACKAGE]) AC_SUBST(pkgdatadir)
+ SW=mdw_PROG(sw) AC_SUBST(SW)
+])
dnl --- Output the configuration ---