configure: Windows can have spaces in directories.
authorGurucharan Shetty <gshetty@nicira.com>
Sun, 17 Nov 2013 02:14:51 +0000 (18:14 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Mon, 18 Nov 2013 20:54:49 +0000 (12:54 -0800)
Running ./configure and testing for python through PATH
gives out a bunch of errors because of the extra arguments.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
m4/openvswitch.m4

index 6b9a378..7c37985 100644 (file)
@@ -205,7 +205,7 @@ AC_DEFUN([OVS_CHECK_PYTHON],
           for dir in $PATH; do
             IFS=$ovs_save_IFS
             test -z "$dir" && dir=.
-            if test -x $dir/$binary && $dir/$binary -c 'import sys
+            if test -x "$dir"/"$binary" && "$dir"/"$binary" -c 'import sys
 if sys.hexversion >= 0x02040000 and sys.hexversion < 0x03000000:
     sys.exit(0)
 else: