diff options
| author | Paul Eggert | 2014-06-10 12:43:13 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-06-10 12:43:13 -0700 |
| commit | ec4a33476e4aa6eba3a13fca34ad157fec3d8b97 (patch) | |
| tree | 12f237833701996dd3f45f5e25f4a0725119fa94 | |
| parent | bd009aefd54cf87c3b4eb91c29371745b5915ea1 (diff) | |
| download | emacs-ec4a33476e4aa6eba3a13fca34ad157fec3d8b97.tar.gz emacs-ec4a33476e4aa6eba3a13fca34ad157fec3d8b97.zip | |
Rely on AC_CANONICAL_HOST to detect whether we're using mingw.
See the thread containing:
http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00206.html
* configure.ac (AC_CANONICAL_HOST): Invoke this as early as we
can, which is just after AM_INIT_AUTOMAKE. Then check for mingw
just after that.
| -rw-r--r-- | ChangeLog | 9 | ||||
| -rw-r--r-- | configure.ac | 43 |
2 files changed, 30 insertions, 22 deletions
| @@ -1,3 +1,12 @@ | |||
| 1 | 2014-06-10 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Rely on AC_CANONICAL_HOST to detect whether we're using mingw. | ||
| 4 | See the thread containing: | ||
| 5 | http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00206.html | ||
| 6 | * configure.ac (AC_CANONICAL_HOST): Invoke this as early as we | ||
| 7 | can, which is just after AM_INIT_AUTOMAKE. Then check for mingw | ||
| 8 | just after that. | ||
| 9 | |||
| 1 | 2014-06-10 Glenn Morris <rgm@gnu.org> | 10 | 2014-06-10 Glenn Morris <rgm@gnu.org> |
| 2 | 11 | ||
| 3 | * Makefile.in (AUTOCONF, AUTOMAKE, AUTOHEADER, ACLOCAL): | 12 | * Makefile.in (AUTOCONF, AUTOMAKE, AUTOHEADER, ACLOCAL): |
diff --git a/configure.ac b/configure.ac index 084dccc0dcb..4b1e2a057e5 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -25,22 +25,6 @@ AC_PREREQ(2.65) | |||
| 25 | dnl Note this is parsed by (at least) make-dist and lisp/cedet/ede/emacs.el. | 25 | dnl Note this is parsed by (at least) make-dist and lisp/cedet/ede/emacs.el. |
| 26 | AC_INIT(GNU Emacs, 24.4.50, bug-gnu-emacs@gnu.org) | 26 | AC_INIT(GNU Emacs, 24.4.50, bug-gnu-emacs@gnu.org) |
| 27 | 27 | ||
| 28 | dnl We get MINGW64 with MSYS2 | ||
| 29 | if test "x$MSYSTEM" = "xMINGW32" -o "x$MSYSTEM" = "xMINGW64" | ||
| 30 | then | ||
| 31 | . $srcdir/nt/mingw-cfg.site | ||
| 32 | |||
| 33 | case $srcdir in | ||
| 34 | /* | ?:*) | ||
| 35 | # srcdir is an absolute path. In this case, force the format | ||
| 36 | # "/c/foo/bar", to simplify later conversions to native Windows | ||
| 37 | # format ("c:/foo/bar") | ||
| 38 | srcdir=`cd "${srcdir}" && pwd -W` | ||
| 39 | srcdir="/${srcdir:0:1}${srcdir:2}" | ||
| 40 | ;; | ||
| 41 | esac | ||
| 42 | fi | ||
| 43 | |||
| 44 | dnl Set emacs_config_options to the options of 'configure', quoted for the shell, | 28 | dnl Set emacs_config_options to the options of 'configure', quoted for the shell, |
| 45 | dnl and then quoted again for a C string. Separate options with spaces. | 29 | dnl and then quoted again for a C string. Separate options with spaces. |
| 46 | dnl Add some environment variables, if they were passed via the environment | 30 | dnl Add some environment variables, if they were passed via the environment |
| @@ -146,6 +130,27 @@ MAKE=$ac_cv_path_MAKE | |||
| 146 | dnl Fairly arbitrary, older versions might work too. | 130 | dnl Fairly arbitrary, older versions might work too. |
| 147 | AM_INIT_AUTOMAKE(1.11) | 131 | AM_INIT_AUTOMAKE(1.11) |
| 148 | 132 | ||
| 133 | dnl Canonicalize the configuration name. | ||
| 134 | AC_CANONICAL_HOST | ||
| 135 | canonical=$host | ||
| 136 | configuration=${host_alias-${build_alias-$host}} | ||
| 137 | |||
| 138 | dnl We get MINGW64 with MSYS2. | ||
| 139 | case $canonical in | ||
| 140 | *-mingw*) | ||
| 141 | . $srcdir/nt/mingw-cfg.site | ||
| 142 | |||
| 143 | case $srcdir in | ||
| 144 | /* | ?:*) | ||
| 145 | # srcdir is an absolute path. In this case, force the format | ||
| 146 | # "/c/foo/bar", to simplify later conversions to native Windows | ||
| 147 | # format ("c:/foo/bar"). | ||
| 148 | srcdir=`cd "${srcdir}" && pwd -W` | ||
| 149 | srcdir="/${srcdir:0:1}${srcdir:2}" | ||
| 150 | ;; | ||
| 151 | esac;; | ||
| 152 | esac | ||
| 153 | |||
| 149 | dnl Support for --program-prefix, --program-suffix and | 154 | dnl Support for --program-prefix, --program-suffix and |
| 150 | dnl --program-transform-name options | 155 | dnl --program-transform-name options |
| 151 | AC_ARG_PROGRAM | 156 | AC_ARG_PROGRAM |
| @@ -489,12 +494,6 @@ AC_ARG_ENABLE(gtk-deprecation-warnings, | |||
| 489 | [Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0])], | 494 | [Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0])], |
| 490 | [ac_enable_gtk_deprecation_warnings="${enableval}"],[]) | 495 | [ac_enable_gtk_deprecation_warnings="${enableval}"],[]) |
| 491 | 496 | ||
| 492 | ### Canonicalize the configuration name. | ||
| 493 | |||
| 494 | AC_CANONICAL_HOST | ||
| 495 | canonical=$host | ||
| 496 | configuration=${host_alias-${build_alias-$host}} | ||
| 497 | |||
| 498 | dnl This used to use changequote, but, apart from `changequote is evil' | 497 | dnl This used to use changequote, but, apart from `changequote is evil' |
| 499 | dnl per the autoconf manual, we can speed up autoconf somewhat by quoting | 498 | dnl per the autoconf manual, we can speed up autoconf somewhat by quoting |
| 500 | dnl the great gob of text. Thus it's not processed for possible expansion. | 499 | dnl the great gob of text. Thus it's not processed for possible expansion. |