This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Disable host ecossynth ethernet if no if_tun.h
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: eCos Patches <ecos-patches at sources dot redhat dot com>
- Date: Tue, 24 Sep 2002 10:24:02 +0200
- Subject: Disable host ecossynth ethernet if no if_tun.h
Hi Bart
Please try this patch out...
Andrew
Index: devs/eth/synth//ecosynth/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/eth/synth/ecosynth/current/ChangeLog,v
retrieving revision 1.2
diff -u -r1.2 ChangeLog
--- devs/eth/synth//ecosynth/current/ChangeLog 22 Sep 2002 19:20:46 -0000 1.2
+++ devs/eth/synth//ecosynth/current/ChangeLog 24 Sep 2002 08:21:53 -0000
@@ -1,3 +1,8 @@
+2002-09-24 Andrew Lunn <andrew.lunn@ascom.ch>
+
+ * host/configure.in: Disable building the host driver if we
+ are missing kernel support for the TUN interface.
+
2002-09-22 Bart Veer <bartv@ecoscentric.com>
* host/configure.in:
Index: devs/eth/synth//ecosynth/current/host/configure.in
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/eth/synth/ecosynth/current/host/configure.in,v
retrieving revision 1.2
diff -u -r1.2 configure.in
--- devs/eth/synth//ecosynth/current/host/configure.in 22 Sep 2002 19:21:13 -0000 1.2
+++ devs/eth/synth//ecosynth/current/host/configure.in 24 Sep 2002 08:21:54 -0000
@@ -71,6 +71,10 @@
ECOS_PROG_MSVC
ECOS_PROG_STANDARD_COMPILER_FLAGS
ECOS_PACKAGE_DIRS
+ AC_CHECK_HEADERS("linux/if_tun.h",,SUPPORTED="no")
+ if test "${SUPPORTED}" = "no" ; then
+ AC_MSG_WARN([Required Linux kernel functionality does not appear to be available])
+ fi
fi
AM_CONDITIONAL(SUPPORTED, test "${SUPPORTED}" = "yes")