summaryrefslogtreecommitdiff
path: root/config/python.m4
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2015-05-03 08:17:04 -0400
committerAndrew Dunstan <andrew@dunslane.net>2015-05-03 08:17:04 -0400
commitb6b2149e48aa61981ae0199c963d5145a37c258c (patch)
tree5b5b2a3bcfe9b55b8f0e260ddcda380fa031fc2d /config/python.m4
parent1a629c1b161a2b43a2f81241a8f4c5f79e5b8ecf (diff)
downloadpostgresql-b6b2149e48aa61981ae0199c963d5145a37c258c.tar.gz
Fix python_includespec on Windows at configure time
By converting to using forward slashes at configure time we avoid having to repeat the logic anywhere that this is needed, such as in transforms modules for plpython.
Diffstat (limited to 'config/python.m4')
-rw-r--r--config/python.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/config/python.m4 b/config/python.m4
index c8f784ed47..de346fb53a 100644
--- a/config/python.m4
+++ b/config/python.m4
@@ -44,6 +44,9 @@ if a == b:
print(a)
else:
print(a + ' ' + b)"`
+if test "$PORTNAME" = win32 ; then
+ python_includespec=`echo $python_includespec | sed 's,[\],/,g'`
+fi
AC_MSG_RESULT([$python_includespec])
AC_SUBST(python_majorversion)[]dnl