1 dnl ----- Licensing notice --------------------------------------------------
3 dnl This file is part of sw-tools.
5 dnl sw-tools is free software; you can redistribute it and/or modify
6 dnl it under the terms of the GNU General Public License as published by
7 dnl the Free Software Foundation; either version 2 of the License, or
8 dnl (at your option) any later version.
10 dnl sw-tools is distributed in the hope that it will be useful,
11 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 dnl GNU General Public License for more details.
15 dnl You should have received a copy of the GNU General Public License
16 dnl along with sw-tools; if not, write to the Free Software Foundation,
17 dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 dnl --- Boring boilerplate ---
22 AM_INIT_AUTOMAKE(sw-tools, 1.0.5mdw2)
23 AM_CONFIG_HEADER(config.h)
25 dnl --- Work out the architecture name ---
27 AC_MSG_CHECKING([architecture name])
28 arch=`$srcdir/sw.in --archname`
30 AC_DEFINE_UNQUOTED(ARCH, "$arch", [My architecture name.])
33 dnl --- Set up the C compiler ---
38 dnl --- Find a Perl ---
43 dnl --- Find an appropriate remote shell program ---
46 [ --with-rsh=PROGRAM use PROGRAM to start remote shells],
48 AC_PATH_PROGS(RSH, $RSH remsh rsh ssh, rsh)
49 AC_DEFINE_UNQUOTED(RSH, "$RSH", [Default remote shell program.])
51 dnl --- Various simple tests ---
53 AC_CHECK_HEADERS(unistd.h)
59 AC_CHECK_FUNCS(strsignal _sys_siglist, break)
62 mdw_CHECK_MANYLIBS(socketpair, socket)
64 dnl --- Write in some useful paths ---
68 mdw_DEFINE_PATH([PREFIX], [$prefix])
69 mdw_DEFINE_PATH([DATADIR], [$datadir])
70 mdw_DEFINE_PATH([ARCHTAB], [$datadir/archtab])
71 mdw_DEFINE_PROG([PATH_SW], [sw])
72 pkgdatadir=mdw_PATH([$datadir/$PACKAGE]) AC_SUBST(pkgdatadir)
73 SW=mdw_PROG(sw) AC_SUBST(SW)
76 dnl --- Output the configuration ---
79 Makefile src/Makefile perl/Makefile dnl
80 perl/SWConfig.pm perl/sw perl/sw-tidy dnl
84 dnl ----- That's all, folks -------------------------------------------------