diff options
| author | Glenn Morris | 2013-11-05 16:51:09 -0500 |
|---|---|---|
| committer | Glenn Morris | 2013-11-05 16:51:09 -0500 |
| commit | c923b188f48bb342b30870eda89ea8d79376b05d (patch) | |
| tree | 3a389513421d7b58481b3221807bf76494cf2743 | |
| parent | 02fc973bc978ccc4570d8f7b00c85346e8cd5df6 (diff) | |
| download | emacs-c923b188f48bb342b30870eda89ea8d79376b05d.tar.gz emacs-c923b188f48bb342b30870eda89ea8d79376b05d.zip | |
* Makefile.in (epaths-force-w32): Move srcdir tweak here
* configure.ac (abs_srcdir) [MINGW32]: No point setting it here,
config.status computes it.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | Makefile.in | 10 | ||||
| -rw-r--r-- | configure.ac | 11 |
3 files changed, 13 insertions, 12 deletions
| @@ -1,5 +1,9 @@ | |||
| 1 | 2013-11-05 Glenn Morris <rgm@gnu.org> | 1 | 2013-11-05 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * configure.ac (abs_srcdir) [MINGW32]: No point setting it here, | ||
| 4 | config.status computes it. | ||
| 5 | * Makefile.in (epaths-force-w32): Move srcdir tweak here. | ||
| 6 | |||
| 3 | * autogen: Remove directory. Move update_autogen to admin/. | 7 | * autogen: Remove directory. Move update_autogen to admin/. |
| 4 | * autogen.sh: Remove reference to copy_autogen. | 8 | * autogen.sh: Remove reference to copy_autogen. |
| 5 | * GNUmakefile (configure): | 9 | * GNUmakefile (configure): |
diff --git a/Makefile.in b/Makefile.in index 461f0cb0481..984dcea7cca 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -342,8 +342,16 @@ msys_sed_sh_escape=sed -e 's/[];$$*.^[]/\\\\&/g' | |||
| 342 | # nt/epaths.nt as the template. | 342 | # nt/epaths.nt as the template. |
| 343 | # Use the value of ${locallisppath} supplied by `configure', | 343 | # Use the value of ${locallisppath} supplied by `configure', |
| 344 | # to support the --enable-locallisppath argument. | 344 | # to support the --enable-locallisppath argument. |
| 345 | # | ||
| 346 | # When building with MinGW inside the MSYS tree, 'pwd' produces directories | ||
| 347 | # relative to the root of the MSYS tree, e.g. '/home/user/foo' instead of | ||
| 348 | # '/d/MSYS/home/user/foo'. If such a value of srcdir is written to | ||
| 349 | # src/epaths.h, that causes temacs to fail, because, being a MinGW | ||
| 350 | # program that knows nothing of MSYS root substitution, it cannot find | ||
| 351 | # the data directory. "pwd -W" produces Windows-style 'd:/foo/bar' | ||
| 352 | # absolute directory names, so we use it here to countermand that lossage. | ||
| 345 | epaths-force-w32: FRC | 353 | epaths-force-w32: FRC |
| 346 | @(w32srcdir=`echo "${abs_srcdir}" | ${msys_to_w32}` ; \ | 354 | @(w32srcdir=`cd "${srcdir}"; pwd -W | sed -e 's,^\([A-Za-z]\):,/\1,' | ${msys_to_w32}` ; \ |
| 347 | prefixpattern=`echo '${prefix}' | ${msys_to_w32} | ${msys_sed_sh_escape}` ; \ | 355 | prefixpattern=`echo '${prefix}' | ${msys_to_w32} | ${msys_sed_sh_escape}` ; \ |
| 348 | locallisppath=`echo '${locallisppath}' | ${msys_lisppath_to_w32} | ${msys_prefix_subst}` ; \ | 356 | locallisppath=`echo '${locallisppath}' | ${msys_lisppath_to_w32} | ${msys_prefix_subst}` ; \ |
| 349 | sed < ${srcdir}/nt/epaths.nt > epaths.h.$$$$ \ | 357 | sed < ${srcdir}/nt/epaths.nt > epaths.h.$$$$ \ |
diff --git a/configure.ac b/configure.ac index cb97564cadc..a8fb34b709f 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -419,17 +419,6 @@ AC_ARG_ENABLE(gtk-deprecation-warnings, | |||
| 419 | [Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0])], | 419 | [Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0])], |
| 420 | [ac_enable_gtk_deprecation_warnings="${enableval}"],[]) | 420 | [ac_enable_gtk_deprecation_warnings="${enableval}"],[]) |
| 421 | 421 | ||
| 422 | #### When building with MinGW inside the MSYS tree, 'pwd' produces | ||
| 423 | #### directories relative to the root of the MSYS tree, | ||
| 424 | #### e.g. '/home/user/foo' instead of '/d/MSYS/home/user/foo'. When | ||
| 425 | #### such a value of srcdir is written to the top-level Makefile, it | ||
| 426 | #### gets propagated to src/epaths.h, and that causes temacs to fail, | ||
| 427 | #### because, being a MinGW program that knows nothing of MSYS root | ||
| 428 | #### substitution, it cannot find the data directory. "pwd -W" | ||
| 429 | #### produces Windows-style 'd:/foo/bar' absolute directory names, so | ||
| 430 | #### we use it here to countermand that lossage. | ||
| 431 | test "$MSYSTEM" = "MINGW32" && abs_srcdir=`(cd "$abs_srcdir"; pwd -W | sed -e 's,^\([[A-Za-z]]\):,/\1,')` | ||
| 432 | |||
| 433 | ### Canonicalize the configuration name. | 422 | ### Canonicalize the configuration name. |
| 434 | 423 | ||
| 435 | AC_CANONICAL_HOST | 424 | AC_CANONICAL_HOST |