-AC_DEFUN([OVS_CHECK_LINUX], [
- AC_ARG_WITH([$1],
- [AC_HELP_STRING([--with-$1=/path/to/linux-$2],
- [Specify the linux $2 kernel sources])],
- [path="$withval"], [path=])dnl
- if test -n "$path"; then
- path=`eval echo "$path"`
-
- AC_MSG_CHECKING([for $path directory])
- if test -d "$path"; then
- AC_MSG_RESULT([yes])
- $3=$path
- AC_SUBST($3)
+AC_DEFUN([OVS_CHECK_LINUX26], [
+ AC_ARG_WITH([l26],
+ [AC_HELP_STRING([--with-l26=/path/to/linux-2.6],
+ [Specify the linux 2.6 kernel sources])],
+ [KBUILD26="$withval"], [KBUILD26=])dnl
+ if test -n "$KBUILD26"; then
+ KBUILD26=`eval echo "$KBUILD26"`
+
+ # The build directory is what the user provided.
+ # Make sure that it exists.
+ AC_MSG_CHECKING([for Linux 2.6 build directory])
+ if test -d "$KBUILD26"; then
+ AC_MSG_RESULT([$KBUILD26])
+ AC_SUBST(KBUILD26)