merge trunk
[bpt/emacs.git] / nt / msysconfig.sh
1 #! /bin/sh
2 ### msysconfig.sh - Run the top-level 'configure' script as appropriate
3 ### for the MinGW/MSYS build of a native MS-Windows port of Emacs.
4
5 ## Copyright (C) 2013 Free Software Foundation, Inc.
6
7 ## Author: Eli Zaretskii <eliz@gnu.org>
8
9 ## This file is part of GNU Emacs.
10
11 ## GNU Emacs is free software: you can redistribute it and/or modify
12 ## it under the terms of the GNU General Public License as published by
13 ## the Free Software Foundation, either version 3 of the License, or
14 ## (at your option) any later version.
15
16 ## GNU Emacs is distributed in the hope that it will be useful,
17 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ## GNU General Public License for more details.
20
21 ## You should have received a copy of the GNU General Public License
22 ## along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23
24 ### Commentary:
25
26 ## The Posix 'configure' script needs a few tweaks to produce desired
27 ## results when running under MSYS with the purpose of configuring
28 ## Emacs for the MinGW MS-Windows build. Rather than asking users to
29 ## type these tweaks every time they configure the package, we provide
30 ## this helper script which takes care of the mundane things.
31
32 ### Code:
33
34 srcdir=`dirname "$0"`
35 parent=`dirname "$srcdir"`
36
37 ## The nt/mingw-cfg.site file provides various autoconf variables that
38 ## are needed for a successful MinGW build.
39 CONFIG_SITE="$srcdir/mingw-cfg.site" $parent/configure "$@"