diff options
| author | Eli Zaretskii | 2013-09-19 11:43:01 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-09-19 11:43:01 +0300 |
| commit | be9bc55efdc1c1f665a84e5f10cdef9af0685ab7 (patch) | |
| tree | 10a792340e586c889629da739a999a1942e522ee | |
| parent | 13d9698ae43a2b156a9081895293ae1b17b5f89e (diff) | |
| download | emacs-be9bc55efdc1c1f665a84e5f10cdef9af0685ab7.tar.gz emacs-be9bc55efdc1c1f665a84e5f10cdef9af0685ab7.zip | |
Fix MinGW builds from inside the MSYS installation tree.
configure.ac <srcdir> [MINGW32]: Make sure the value of 'srcdir'
is in the full /d/foo/bar form. See the discussion in
http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00210.html,
and in particular
http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00252.html
and its followups, for the details.
| -rw-r--r-- | ChangeLog | 9 | ||||
| -rw-r--r-- | configure.ac | 11 |
2 files changed, 20 insertions, 0 deletions
| @@ -1,3 +1,12 @@ | |||
| 1 | 2013-09-19 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * configure.ac <srcdir> [MINGW32]: Make sure the value of 'srcdir' | ||
| 4 | is in the full /d/foo/bar form. See the discussion in | ||
| 5 | http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00210.html, | ||
| 6 | and in particular | ||
| 7 | http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00252.html | ||
| 8 | and its followups, for the details. | ||
| 9 | |||
| 1 | 2013-09-17 Dmitry Antipov <dmantipov@yandex.ru> | 10 | 2013-09-17 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 11 | ||
| 3 | * configure.ac: Do not check for g_type_init because we | 12 | * configure.ac: Do not check for g_type_init because we |
diff --git a/configure.ac b/configure.ac index 903537f8a59..fe326623571 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -443,6 +443,17 @@ case "${srcdir}" in | |||
| 443 | * ) srcdir=`(cd "$srcdir"; pwd)` ;; | 443 | * ) srcdir=`(cd "$srcdir"; pwd)` ;; |
| 444 | esac | 444 | esac |
| 445 | 445 | ||
| 446 | #### When building with MinGW inside the MSYS tree, 'pwd' produces | ||
| 447 | #### directories relative to the root of the MSYS tree, | ||
| 448 | #### e.g. '/home/user/foo' instead of '/d/MSYS/home/user/foo'. When | ||
| 449 | #### such a value of srcdir is written to the top-level Makefile, it | ||
| 450 | #### gets propagated to src/epaths.h, and that causes temacs to fail, | ||
| 451 | #### because, being a MinGW program that knows nothing of MSYS root | ||
| 452 | #### substitution, it cannot find the data directory. "pwd -W" | ||
| 453 | #### produces Windows-style 'd:/foo/bar' absolute directory names, so | ||
| 454 | #### we use it here to countermand that lossage. | ||
| 455 | test "$MSYSTEM" = "MINGW32" && srcdir=`(cd "$srcdir"; pwd -W | sed -e 's,^\([[A-Za-z]]\):,/\1,')` | ||
| 456 | |||
| 446 | ### Canonicalize the configuration name. | 457 | ### Canonicalize the configuration name. |
| 447 | 458 | ||
| 448 | AC_CANONICAL_HOST | 459 | AC_CANONICAL_HOST |