chiark / gitweb /
Much documentation progress.
[tripe] / configure.in
CommitLineData
410c8acf 1dnl -*-fundamental-*-
2dnl
0fa31a96 3dnl $Id: configure.in,v 1.11 2003/05/17 11:04:38 mdw Exp $
410c8acf 4dnl
5dnl Configuration script for TrIPE
6dnl
7dnl (c) 2001 Straylight/Edgeware
8dnl
9
10dnl ----- Licensing notice --------------------------------------------------
11dnl
12dnl This file is part of Trivial IP Encryption (TrIPE).
13dnl
14dnl TrIPE is free software; you can redistribute it and/or modify
15dnl it under the terms of the GNU General Public License as published by
16dnl the Free Software Foundation; either version 2 of the License, or
17dnl (at your option) any later version.
18dnl
19dnl TrIPE is distributed in the hope that it will be useful,
20dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
21dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22dnl GNU General Public License for more details.
23dnl
24dnl You should have received a copy of the GNU General Public License
25dnl along with TrIPE; if not, write to the Free Software Foundation,
26dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27
28dnl ----- Revision history --------------------------------------------------
29dnl
30dnl $Log: configure.in,v $
0fa31a96 31dnl Revision 1.11 2003/05/17 11:04:38 mdw
32dnl Ship new configuration and startup kit.
33dnl
cc1668bb 34dnl Revision 1.10 2003/05/16 10:00:59 mdw
35dnl Version bump.
36dnl
7dd8b2bb 37dnl Revision 1.9 2003/04/06 10:33:31 mdw
38dnl And again. (Sigh.)
39dnl
3e1bf5a8 40dnl Revision 1.8 2003/04/06 10:31:13 mdw
41dnl Fix stupid bug.
42dnl
37075862 43dnl Revision 1.7 2003/04/06 10:25:17 mdw
44dnl Support Linux TUN/TAP device. Fix some bugs.
45dnl
21c78c92 46dnl Revision 1.6 2001/06/19 22:13:57 mdw
47dnl Version bump.
48dnl
1f531e36 49dnl Revision 1.5 2001/03/03 12:30:39 mdw
50dnl Make this a pre-release.
51dnl
9bb1a373 52dnl Revision 1.4 2001/02/22 09:07:28 mdw
53dnl Build documents now.
54dnl
aa7f0bd9 55dnl Revision 1.3 2001/02/16 21:24:12 mdw
56dnl Don't link the client against Catacomb.
57dnl
73189848 58dnl Revision 1.2 2001/02/04 01:17:54 mdw
59dnl Create a configuration header file to tidy up command lines.
60dnl
410c8acf 61dnl Revision 1.1 2001/02/03 20:26:37 mdw
62dnl Initial checkin.
63dnl
64
65AC_INIT(tripe.c)
cc1668bb 66AM_INIT_AUTOMAKE(tripe, 1.0.0pre4)
73189848 67AM_CONFIG_HEADER(config.h)
410c8acf 68AC_CANONICAL_HOST
69
70AC_PROG_CC
37075862 71mdw_GCC_FLAGS([-Wall])
73189848 72mdw_OPT_TRACE
410c8acf 73
37075862 74AC_ARG_WITH([linux-includes],
75[ --with-linux-includes=DIR
76 search for Linux kernel includes in DIR],
77[CFLAGS="$CFLAGS -I$withval"],
78[:])
79
410c8acf 80case $host_os in
81 linux*)
37075862 82 case `uname -r` in
7dd8b2bb 83changequote(,)dnl
3e1bf5a8 84 2.[4-9].* | 2.[1-9][0-9]*.* | [3-9].* | [1-9][0-9]*.*)
7dd8b2bb 85changequote([,])dnl
37075862 86 tun=linux
87 AC_DEFINE([TUN_TYPE], [TUN_LINUX])
88 ;;
89 *)
90 tun=unet
91 AC_DEFINE([TUN_TYPE], [TUN_UNET])
92 ;;
93 esac
410c8acf 94 ;;
95 *bsd*)
96 tun=bsd
97 AC_DEFINE([TUN_TYPE], [TUN_BSD])
98 ;;
99 *)
100 AC_MSG_ERROR([Unsupported OS: no tunnel interface available])
101 ;;
102esac
103AC_SUBST(tun)
104
cc1668bb 105mdw_MLIB(2.0.0)
106mdw_CATACOMB(2.0.0, [CFLAGS="$CFLAGS $CATACOMB_CFLAGS"])
410c8acf 107
0fa31a96 108AC_OUTPUT(Makefile doc/Makefile tripe-init)
410c8acf 109
110dnl ----- That's all, folks -------------------------------------------------