diff --git a/lib-src/lv2/configure b/lib-src/lv2/configure
index 3fc9091d8..162fb43a6 100755
--- a/lib-src/lv2/configure
+++ b/lib-src/lv2/configure
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 # Search for python
-python=$(which python python2 python3 | tail -1)
+python=@@PYTHON@@
 
 # Define the target build directory
 prefix=$(pwd)/build
