aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2014-06-10 12:43:13 -0700
committerPaul Eggert2014-06-10 12:43:13 -0700
commitec4a33476e4aa6eba3a13fca34ad157fec3d8b97 (patch)
tree12f237833701996dd3f45f5e25f4a0725119fa94
parentbd009aefd54cf87c3b4eb91c29371745b5915ea1 (diff)
downloademacs-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--ChangeLog9
-rw-r--r--configure.ac43
2 files changed, 30 insertions, 22 deletions
diff --git a/ChangeLog b/ChangeLog
index f5f18c8c53e..480acfe54dc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
12014-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
12014-06-10 Glenn Morris <rgm@gnu.org> 102014-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)
25dnl Note this is parsed by (at least) make-dist and lisp/cedet/ede/emacs.el. 25dnl Note this is parsed by (at least) make-dist and lisp/cedet/ede/emacs.el.
26AC_INIT(GNU Emacs, 24.4.50, bug-gnu-emacs@gnu.org) 26AC_INIT(GNU Emacs, 24.4.50, bug-gnu-emacs@gnu.org)
27 27
28dnl We get MINGW64 with MSYS2
29if test "x$MSYSTEM" = "xMINGW32" -o "x$MSYSTEM" = "xMINGW64"
30then
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
42fi
43
44dnl Set emacs_config_options to the options of 'configure', quoted for the shell, 28dnl Set emacs_config_options to the options of 'configure', quoted for the shell,
45dnl and then quoted again for a C string. Separate options with spaces. 29dnl and then quoted again for a C string. Separate options with spaces.
46dnl Add some environment variables, if they were passed via the environment 30dnl Add some environment variables, if they were passed via the environment
@@ -146,6 +130,27 @@ MAKE=$ac_cv_path_MAKE
146dnl Fairly arbitrary, older versions might work too. 130dnl Fairly arbitrary, older versions might work too.
147AM_INIT_AUTOMAKE(1.11) 131AM_INIT_AUTOMAKE(1.11)
148 132
133dnl Canonicalize the configuration name.
134AC_CANONICAL_HOST
135canonical=$host
136configuration=${host_alias-${build_alias-$host}}
137
138dnl We get MINGW64 with MSYS2.
139case $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;;
152esac
153
149dnl Support for --program-prefix, --program-suffix and 154dnl Support for --program-prefix, --program-suffix and
150dnl --program-transform-name options 155dnl --program-transform-name options
151AC_ARG_PROGRAM 156AC_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
494AC_CANONICAL_HOST
495canonical=$host
496configuration=${host_alias-${build_alias-$host}}
497
498dnl This used to use changequote, but, apart from `changequote is evil' 497dnl This used to use changequote, but, apart from `changequote is evil'
499dnl per the autoconf manual, we can speed up autoconf somewhat by quoting 498dnl per the autoconf manual, we can speed up autoconf somewhat by quoting
500dnl the great gob of text. Thus it's not processed for possible expansion. 499dnl the great gob of text. Thus it's not processed for possible expansion.