configure: Fix --with-linux when environment contains KSRC.
authorBen Pfaff <blp@nicira.com>
Wed, 22 Jun 2011 22:09:35 +0000 (15:09 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 22 Jun 2011 22:09:59 +0000 (15:09 -0700)
When "configure"'s environment contains KSRC, "configure" would use it in
preference to the value specified on --with-linux.  This caused a problem
for module-assistant builds in particular.

acinclude.m4

index 59c0c74530d1aa44d103d093420391b2555c4bc1..e89e0e9f6c5f6253d24b4ce8b872efd9fe9d7e54 100644 (file)
@@ -57,6 +57,8 @@ AC_DEFUN([OVS_CHECK_LINUX], [
     elif test X"$with_l26_source" != X; then
       KSRC=$with_l26_source
       AC_MSG_WARN([--with-l26-source is deprecated, please use --with-linux-source instead])
+    else
+      KSRC=
     fi
   elif test X"$with_linux_source" != X || test X"$with_l26_source" != X; then
     AC_MSG_ERROR([Linux source directory may not be specified without Linux build directory])