3 dnl $Id: configure.in,v 1.7 1999/07/30 18:45:36 mdw Exp $
5 dnl Configuration for sw-tools
10 dnl ----- Licensing notice --------------------------------------------------
12 dnl This file is part of sw-tools.
14 dnl sw-tools is free software; you can redistribute it and/or modify
15 dnl it under the terms of the GNU General Public License as published by
16 dnl the Free Software Foundation; either version 2 of the License, or
17 dnl (at your option) any later version.
19 dnl sw-tools is distributed in the hope that it will be useful,
20 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
21 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 dnl GNU General Public License for more details.
24 dnl You should have received a copy of the GNU General Public License
25 dnl along with sw-tools; if not, write to the Free Software Foundation,
26 dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
28 dnl ----- Revision history --------------------------------------------------
30 dnl $Log: configure.in,v $
31 dnl Revision 1.7 1999/07/30 18:45:36 mdw
32 dnl Configure the Perl bits.
34 dnl Revision 1.6 1999/07/28 09:31:49 mdw
35 dnl Small amounts of tidying.
37 dnl Revision 1.5 1999/07/16 12:46:04 mdw
38 dnl First proper release version.
40 dnl Revision 1.4 1999/06/24 15:53:11 mdw
41 dnl Bump the version number again.
43 dnl Revision 1.3 1999/06/18 18:59:39 mdw
44 dnl Preliminary work for Perl scripts.
46 dnl Revision 1.2 1999/06/04 13:56:36 mdw
49 dnl Revision 1.1.1.1 1999/06/02 16:53:33 mdw
53 dnl --- Boring boilerplate ---
56 AM_INIT_AUTOMAKE(sw-tools, 1.0.0)
57 AM_CONFIG_HEADER(config.h)
59 dnl --- Work out the architecture name ---
61 AC_MSG_CHECKING([architecture name])
62 arch=`$srcdir/sw.in --archname`
64 AC_DEFINE_UNQUOTED(ARCH, "$arch")
67 dnl --- Set up the C compiler ---
72 dnl --- Find a Perl ---
77 dnl --- Find an appropriate remote shell program ---
80 [ --with-rsh=PROGRAM use PROGRAM to start remote shells],
82 AC_PATH_PROGS(RSH, $RSH remsh rsh ssh, rsh)
83 AC_DEFINE_UNQUOTED(RSH, "$RSH")
85 dnl --- Various simple tests ---
87 AC_CHECK_HEADERS(unistd.h)
93 AC_CHECK_FUNCS(strsignal _sys_siglist, break)
95 mdw_CHECK_MANYLIBS(socketpair, socket)
97 dnl --- Write in some useful paths ---
99 mdw_prefix=$prefix mdw_exec_prefix=$exec_prefix
100 transform=`echo "$program_transform_name"|sed 's,\\\\\\\\,\\\\,g; s,\\$\\$,$,g'`
101 test "$prefix" = "NONE" && prefix=$ac_default_prefix
102 test "$exec_prefix" = "NONE" && exec_prefix=$prefix
103 SW=`echo sw|sed "$transform"`
105 AC_DEFINE_UNQUOTED(PREFIX, "$mdw_prefix")
106 AC_DEFINE_UNQUOTED(BINDIR, "`eval echo $bindir`")
107 AC_DEFINE_UNQUOTED(DATADIR, "`eval echo $datadir`")
108 AC_DEFINE_UNQUOTED(SW, "$SW")
109 pkgdatadir="`eval echo $datadir/sw`"
111 prefix=$mdw_prefix exec_prefix=$mdw_exec_prefix
113 dnl --- Output the configuration ---
115 AC_CONFIG_SUBDIRS(mLib)
117 Makefile src/Makefile perl/Makefile dnl
118 perl/SWConfig.pm perl/sw perl/sw-tidy dnl
122 dnl ----- That's all, folks -------------------------------------------------