summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-07-24 13:28:57 (GMT)
committerGeorg Brandl <georg@python.org>2006-07-24 13:28:57 (GMT)
commitced52a97b66b564a69cb35edea1502d84d8d9d19 (patch)
tree3c74ca834e6af5d3c70ee4c46f2a56760a4a4a75 /Makefile.pre.in
parent982e9fea0a9c6026b4d176ce136676ab1893e4b2 (diff)
downloadcpython-ced52a97b66b564a69cb35edea1502d84d8d9d19.zip
cpython-ced52a97b66b564a69cb35edea1502d84d8d9d19.tar.gz
cpython-ced52a97b66b564a69cb35edea1502d84d8d9d19.tar.bz2
Patch #1523356: fix determining include dirs in python-config.
Also don't install "python-config" when doing altinstall, but always install "python-config2.x" and make a link to it like with the main executable.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index ff6dc25..8f05d0d 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -649,6 +649,7 @@ bininstall: altbininstall
else true; \
fi
(cd $(DESTDIR)$(BINDIR); $(LN) python$(VERSION)$(EXE) $(PYTHON))
+ (cd $(DESTDIR)$(BINDIR); $(LN) -sf python-config$(VERSION)$(EXE) python-config$(EXE))
# Install the interpreter with $(VERSION) affixed
# This goes into $(exec_prefix)
@@ -849,8 +850,8 @@ libainstall: all
$(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh
# Substitution happens here, as the completely-expanded BINDIR
# is not available in configure
- sed -e "s,@BINDIR@,$(BINDIR)," < $(srcdir)/Misc/python-config.in >python-config
- $(INSTALL_SCRIPT) python-config $(DESTDIR)$(BINDIR)/python-config
+ sed -e "s,@EXENAME@,$(BINDIR)/python$(VERSION)$(EXE)," < $(srcdir)/Misc/python-config.in >python-config
+ $(INSTALL_SCRIPT) python-config $(DESTDIR)$(BINDIR)/python-config$(VERSION)$(EXE)
rm python-config
@if [ -s Modules/python.exp -a \
"`echo $(MACHDEP) | sed 's/^\(...\).*/\1/'`" = "aix" ]; then \