- Issue #24122, fix quoting for LIBPL
diff --git a/configure b/configure
index 1bb55ff..7b91f91 100755
--- a/configure
+++ b/configure
@@ -14030,7 +14030,7 @@
 $as_echo "$LDVERSION" >&6; }
 
 
-LIBPL="${prefix}/lib/python${VERSION}/config-${LDVERSION}"
+LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}"
 
 
 # Check whether right shifting a negative integer extends the sign bit
diff --git a/configure.ac b/configure.ac
index d06d774..3394d84 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4115,7 +4115,7 @@
 
 dnl define LIBPL after ABIFLAGS and LDVERSION is defined.
 AC_SUBST(PY_ENABLE_SHARED)
-LIBPL="${prefix}/lib/python${VERSION}/config-${LDVERSION}"
+LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}"
 AC_SUBST(LIBPL)
 
 # Check whether right shifting a negative integer extends the sign bit