On Fri, Nov 09, 2001 at 11:52:00AM -0700, Stuart Macdonald wrote: > Further, given the above, how would I/others deal with cases where 2.4.7 has > a function that is not found in RedHat's own 2.4.7-10 but is found in 2.4.8 > and then goes away in 2.4.9 and above? I've rapidly discovered that this checking on kernel version thing will not work. I don't know why people still recommend it for external modules. Instead, you must check for completion.h and add a define if it exists, then work off that. Using autoconf, I do : AC_MSG_CHECKING("whether completion.h exists") if test -f $KINC/linux/completion.h; then BKCFLAGS="$BKCFLAGS -DCOMPLETION_H" AC_MSG_RESULT("yes") else AC_MSG_RESULT("no") fi regards john -- "I know I believe in nothing but it is my nothing" - Manic Street Preachers -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/