Mercurial > mxe-octave
comparison configure.ac @ 4194:3dc897731d3b
new option to enable ccache
* configure.ac: New option, --with-ccache. Set and substitute
MXE_TARGET variable.
* Makefile.in (USE_CCACHE, MXE_TARGET): New substitutions.
(prerequisites, ccache-links, all-targets): New targets.
(all): Use recursive make invocations to build prerequisites before
all other targets.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 29 Aug 2016 13:26:30 -0400 |
parents | 32814edc00db |
children | 3262d92eff57 |
comparison
equal
deleted
inserted
replaced
4193:32814edc00db | 4194:3dc897731d3b |
---|---|
72 PKG_DIR=`(cd "$PKG_DIR"; pwd)` | 72 PKG_DIR=`(cd "$PKG_DIR"; pwd)` |
73 ;; | 73 ;; |
74 esac | 74 esac |
75 AC_SUBST(PKG_DIR) | 75 AC_SUBST(PKG_DIR) |
76 | 76 |
77 USE_CCACHE=no | |
78 AC_ARG_WITH([ccache], | |
79 [AS_HELP_STRING([--with-ccache], [use ccache (default: no)])], | |
80 [if test "$withval" = yes; then USE_CCACHE=yes; fi], []) | |
81 AC_SUBST(USE_CCACHE) | |
82 | |
77 ENABLE_WINDOWS_64=no | 83 ENABLE_WINDOWS_64=no |
78 AC_ARG_ENABLE(windows-64, | 84 AC_ARG_ENABLE(windows-64, |
79 [AS_HELP_STRING([--enable-windows-64], | 85 [AS_HELP_STRING([--enable-windows-64], |
80 [build a Windows 64 cross compiler; resulting build will work only on 64-bit Windows systems])], | 86 [build a Windows 64 cross compiler; resulting build will work only on 64-bit Windows systems])], |
81 [if test "$enableval" = yes; then ENABLE_WINDOWS_64=yes; fi], []) | 87 [if test "$enableval" = yes; then ENABLE_WINDOWS_64=yes; fi], []) |
237 | 243 |
238 # set MXE_ROOTDIR for knowing the mxe root | 244 # set MXE_ROOTDIR for knowing the mxe root |
239 MXE_ROOTDIR=`cd "$builddir"; pwd` | 245 MXE_ROOTDIR=`cd "$builddir"; pwd` |
240 AC_SUBST(MXE_ROOTDIR) | 246 AC_SUBST(MXE_ROOTDIR) |
241 | 247 |
248 if test "$MXE_NATIVE_BUILD" = no; then | |
249 if test "$ENABLE_WINDOWS_64" = yes; then | |
250 MXE_TARGET=x86_64-w64-mingw32 | |
251 else | |
252 MXE_TARGET=i686-w64-mingw32 | |
253 fi | |
254 fi | |
255 AC_SUBST(MXE_TARGET) | |
256 | |
242 AC_CONFIG_FILES([Makefile tools/set-mxe-env.sh]) | 257 AC_CONFIG_FILES([Makefile tools/set-mxe-env.sh]) |
243 AC_CONFIG_FILES([tools/makeinst-script.sh], [chmod a+x tools/makeinst-script.sh]) | 258 AC_CONFIG_FILES([tools/makeinst-script.sh], [chmod a+x tools/makeinst-script.sh]) |
244 | 259 |
245 AC_OUTPUT | 260 AC_OUTPUT |
246 | 261 |