Changed configure to compile on Debian with the latest RTAI patch installed (removed rtdm library in compiler flags)
Commented out the MSG_WAR section for RTAI because this only runs in an RTAI Kernelspace program
--- a/configure Thu Sep 06 16:49:11 2012 +0200
+++ b/configure Mon Oct 01 16:58:35 2012 +0200
@@ -489,7 +489,7 @@
if [ "$SUB_TIMERS_DRIVER" = "rtai" ]; then
RT_LIB_DIR=`$RTAI_CONFIG --library-dir`\ -Wl,-rpath\ `$RTAI_CONFIG --library-dir`
- SUB_EXE_CFLAGS=$SUB_EXE_CFLAGS\ `$RTAI_CONFIG --lxrt-ldflags`\ -L$RT_LIB_DIR\ -llxrt\ -lrtdm
+ SUB_EXE_CFLAGS=$SUB_EXE_CFLAGS\ `$RTAI_CONFIG --lxrt-ldflags`\ -L$RT_LIB_DIR\ -llxrt
SUB_PROG_CFLAGS=$SUB_PROG_CFLAGS\ -DUSE_RTAI\ `$RTAI_CONFIG --lxrt-cflags`
RTCAN_SOCKET=1
fi
--- a/include/unix/applicfg.h Thu Sep 06 16:49:11 2012 +0200
+++ b/include/unix/applicfg.h Mon Oct 01 16:58:35 2012 +0200
@@ -78,8 +78,8 @@
/* -------------------------------------- */
#ifdef __KERNEL__
# define MSG(...) printk (__VA_ARGS__)
-#elif defined USE_RTAI
-# define MSG(...) /*rt_printk (__VA_ARGS__)*/
+//#elif defined USE_RTAI
+//# define MSG(...) rt_printk (__VA_ARGS__)
#elif defined USE_XENO
# define MSG(...)
#else