summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoko@ubuntu.com <doko@ubuntu.com>2015-04-13 19:59:57 (GMT)
committerdoko@ubuntu.com <doko@ubuntu.com>2015-04-13 19:59:57 (GMT)
commit1345d201939fc7ce395d629834ed037e4697d8c5 (patch)
tree71238a46806bf9a811cfd3dfe0f6c650bd4ea88a
parent7f825226e3e19998a0ef6184b9ac6e4e57aebc6f (diff)
downloadcpython-1345d201939fc7ce395d629834ed037e4697d8c5.zip
cpython-1345d201939fc7ce395d629834ed037e4697d8c5.tar.gz
cpython-1345d201939fc7ce395d629834ed037e4697d8c5.tar.bz2
- Use PLATDIR for the platform directory everywhere (refactoring only)
-rw-r--r--Makefile.pre.in2
-rw-r--r--Modules/Setup.dist2
-rwxr-xr-xconfigure4
-rw-r--r--configure.ac3
4 files changed, 9 insertions, 2 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 76aef28..975aa15 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -1123,7 +1123,7 @@ maninstall: altmaninstall
(cd $(DESTDIR)$(MANDIR)/man1; $(LN) -s python$(VERSION).1 python3.1)
# Install the library
-PLATDIR= plat-$(MACHDEP)
+PLATDIR= @PLATDIR@
EXTRAPLATDIR= @EXTRAPLATDIR@
MACHDEPS= $(PLATDIR) $(EXTRAPLATDIR)
XMLLIBSUBDIRS= xml xml/dom xml/etree xml/parsers xml/sax
diff --git a/Modules/Setup.dist b/Modules/Setup.dist
index 01fb85f..b60b594 100644
--- a/Modules/Setup.dist
+++ b/Modules/Setup.dist
@@ -91,7 +91,7 @@ SITEPATH=
TESTPATH=
# Path components for machine- or system-dependent modules and shared libraries
-MACHDEPPATH=:plat-$(MACHDEP)
+MACHDEPPATH=:$(PLATDIR)
EXTRAMACHDEPPATH=
COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(EXTRAMACHDEPPATH)
diff --git a/configure b/configure
index 29cbd36..1bb55ff 100755
--- a/configure
+++ b/configure
@@ -711,6 +711,7 @@ CFLAGS
CC
EXPORT_MACOSX_DEPLOYMENT_TARGET
CONFIGURE_MACOSX_DEPLOYMENT_TARGET
+PLATDIR
SGI_ABI
_PYTHON_HOST_PLATFORM
MACHDEP
@@ -3493,6 +3494,9 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5
$as_echo "$MACHDEP" >&6; }
+
+PLATDIR=plat-$MACHDEP
+
# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
# it may influence the way we can build extensions, so distutils
# needs to check it
diff --git a/configure.ac b/configure.ac
index 8969279..d06d774 100644
--- a/configure.ac
+++ b/configure.ac
@@ -556,6 +556,9 @@ then
fi
AC_MSG_RESULT($MACHDEP)
+AC_SUBST(PLATDIR)
+PLATDIR=plat-$MACHDEP
+
# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
# it may influence the way we can build extensions, so distutils
# needs to check it