[ovs-dev] [PATCH] configure: Convert --with-l26=<dir> argument to absolute path.

Ben Pfaff blp at nicira.com
Tue Apr 13 22:08:39 UTC 2010


If the argument to --with-l26 is given as a relative pathname, then if
configuration succeeds, the build will fail, because the current directory
during the kernel build is different from that at configuration time.
Avoid the problem by converting the argument to an absolute path if
necessary.
---
 acinclude.m4 |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/acinclude.m4 b/acinclude.m4
index abbc57e..81e9948 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -24,6 +24,10 @@ AC_DEFUN([OVS_CHECK_LINUX26], [
               [KBUILD26="$withval"], [KBUILD26=])dnl
   if test -n "$KBUILD26"; then
     KBUILD26=`eval echo "$KBUILD26"`
+    case $KBUILD26 in
+        /*) ;;
+        *) KBUILD26=`pwd`/$KBUILD26 ;;
+    esac
 
     # The build directory is what the user provided.
     # Make sure that it exists.
-- 
1.6.6.1





More information about the dev mailing list