#1676135: remove trailing slashes from --prefix argument.

This commit is contained in:
Georg Brandl 2009-03-31 21:45:18 +00:00
parent 690362183a
commit bcd64a3fc7
2 changed files with 15 additions and 1 deletions

7
configure vendored
View File

@ -1,5 +1,5 @@
#! /bin/sh #! /bin/sh
# From configure.in Revision: 70479 . # From configure.in Revision: 70730 .
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for python 2.7. # Generated by GNU Autoconf 2.61 for python 2.7.
# #
@ -1807,6 +1807,11 @@ ac_config_headers="$ac_config_headers pyconfig.h"
if test "$prefix" != "/"; then
prefix=`echo "$prefix" | sed -e 's/\/$//g'`
fi

View File

@ -12,6 +12,15 @@ AC_INIT(python, PYTHON_VERSION, http://www.python.org/python-bugs)
AC_CONFIG_SRCDIR([Include/object.h]) AC_CONFIG_SRCDIR([Include/object.h])
AC_CONFIG_HEADER(pyconfig.h) AC_CONFIG_HEADER(pyconfig.h)
dnl Ensure that if prefix is specified, it does not end in a slash. If
dnl it does, we get path names containing '//' which is both ugly and
dnl can cause trouble.
dnl Last slash shouldn't be stripped if prefix=/
if test "$prefix" != "/"; then
prefix=`echo "$prefix" | sed -e 's/\/$//g'`
fi
dnl This is for stuff that absolutely must end up in pyconfig.h. dnl This is for stuff that absolutely must end up in pyconfig.h.
dnl Please use pyport.h instead, if possible. dnl Please use pyport.h instead, if possible.
AH_TOP([ AH_TOP([