X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=m4%2Fopenvswitch.m4;h=ceb10732cfff22f1d0d118ed5c4cf150b9933a56;hb=c475ae67206ef40a32b07b886c2d619e9c170440;hp=b7267438c97127448cea3506ff7505003fea5fd1;hpb=4d678233e981fa319a338f6b0949e9dc625941a4;p=openvswitch diff --git a/m4/openvswitch.m4 b/m4/openvswitch.m4 index b7267438..ceb10732 100644 --- a/m4/openvswitch.m4 +++ b/m4/openvswitch.m4 @@ -236,8 +236,7 @@ AC_DEFUN([OVS_CHECK_PCRE], dnl Checks for Python 2.x, x >= 4. AC_DEFUN([OVS_CHECK_PYTHON], - [AC_ARG_VAR([PYTHON], [path to Python 2.x]) - AC_CACHE_CHECK( + [AC_CACHE_CHECK( [for Python 2.x for x >= 4], [ovs_cv_python], [if test -n "$PYTHON"; then @@ -260,4 +259,7 @@ else: done done fi]) - PYTHON=$ovs_cv_python]) + AM_MISSING_PROG([PYTHON], [python]) + if test $ovs_cv_python != no; then + PYTHON=$ovs_cv_python + fi])