chiark / gitweb /
Another error fix.
[tripe] / configure.in
index 700f36dc75fa3c3d8c0a1f73a4c05e6db572b1b1..cf55a2d3f1cdcbc9bab6ec66b79fdadb806ab616 100644 (file)
@@ -1,6 +1,6 @@
 dnl -*-fundamental-*-
 dnl
-dnl $Id: configure.in,v 1.5 2001/03/03 12:30:39 mdw Exp $
+dnl $Id: configure.in,v 1.9 2003/04/06 10:33:31 mdw Exp $
 dnl
 dnl Configuration script for TrIPE
 dnl
@@ -28,6 +28,18 @@ dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 dnl ----- Revision history --------------------------------------------------
 dnl
 dnl $Log: configure.in,v $
+dnl Revision 1.9  2003/04/06 10:33:31  mdw
+dnl And again.  (Sigh.)
+dnl
+dnl Revision 1.8  2003/04/06 10:31:13  mdw
+dnl Fix stupid bug.
+dnl
+dnl Revision 1.7  2003/04/06 10:25:17  mdw
+dnl Support Linux TUN/TAP device.  Fix some bugs.
+dnl
+dnl Revision 1.6  2001/06/19 22:13:57  mdw
+dnl Version bump.
+dnl
 dnl Revision 1.5  2001/03/03 12:30:39  mdw
 dnl Make this a pre-release.
 dnl
@@ -45,18 +57,34 @@ dnl Initial checkin.
 dnl
 
 AC_INIT(tripe.c)
-AM_INIT_AUTOMAKE(tripe, 1.0.0pre1)
+AM_INIT_AUTOMAKE(tripe, 1.0.0pre3)
 AM_CONFIG_HEADER(config.h)
 AC_CANONICAL_HOST
 
 AC_PROG_CC
-mdw_GCC_FLAGS
+mdw_GCC_FLAGS([-Wall])
 mdw_OPT_TRACE
 
+AC_ARG_WITH([linux-includes],
+[  --with-linux-includes=DIR
+                          search for Linux kernel includes in DIR],
+[CFLAGS="$CFLAGS -I$withval"],
+[:])
+
 case $host_os in
   linux*)
-    tun=unet
-    AC_DEFINE([TUN_TYPE], [TUN_UNET])
+    case `uname -r` in
+changequote(,)dnl
+      2.[4-9].* | 2.[1-9][0-9]*.* | [3-9].* | [1-9][0-9]*.*)
+changequote([,])dnl
+       tun=linux
+       AC_DEFINE([TUN_TYPE], [TUN_LINUX])
+       ;;
+      *)
+       tun=unet
+       AC_DEFINE([TUN_TYPE], [TUN_UNET])
+       ;;
+    esac
     ;;
   *bsd*)
     tun=bsd