diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-06-06 19:18:22 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-06-06 19:18:22 (GMT) |
commit | 50fd36027a084e0a39b4fa6fc8e49bb1ae044c8a (patch) | |
tree | d22a6f5fb268df436bf39760f0e668f1452ceb17 /configure.in | |
parent | 263c57146c81d06dd031e0e16d14c4ba87d7c3f6 (diff) | |
download | swift-50fd36027a084e0a39b4fa6fc8e49bb1ae044c8a.zip swift-50fd36027a084e0a39b4fa6fc8e49bb1ae044c8a.tar.bz2 |
Use separate "MM" variable for make dependency generation tool.
On Windows, the compiler cannot be used as a make dependency generation.
Make it possible to specify a different tool (e.g. GCC) for dependency
generation through the MM variable.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 5866b63..f1ee664 100644 --- a/configure.in +++ b/configure.in @@ -98,6 +98,22 @@ fi # Checks for programs and sets default compiler options. ################################################################################ +# On windows, use some smart defaults for the compiler +case $host in + *-*-cygwin* | *-mingw32*) + if test -z "$CC"; then + CC="autoconf/cccl" + fi + if test -z "$CXX"; then + CXX="autoconf/cccl" + fi + if test -z "$MM"; then + MM="gcc" + fi + ;; + *) +esac + AC_PROG_CC AC_PROG_CXX AC_GNU_SOURCE @@ -106,6 +122,9 @@ AC_PROG_INSTALL #AC_SYS_LARGEFILE CONFIG_CC="$CC" CONFIG_CXX="$CXX" +if test -z "$MM"; then + MM="$CC" +fi # Expat AX_LIB_EXPAT() @@ -171,6 +190,7 @@ AC_SUBST(HAVE_EXPAT) AC_SUBST(CONFIG_CXX) AC_SUBST(CONFIG_CXXFLAGS) AC_SUBST(CONFIG_CC) +AC_SUBST(MM) AC_SUBST(CONFIG_CFLAGS) AC_SUBST(CONFIG_LDFLAGS) AC_SUBST(CONFIG_LIBS) |