common/autoconf/build-performance.m4

changeset 740
c0fa87863427
parent 724
33b6df33a2b7
child 839
174a54ce39c4
child 971
584dc2e95e04
equal deleted inserted replaced
739:0d1e8518c722 740:c0fa87863427
160 AC_ARG_ENABLE([ccache], 160 AC_ARG_ENABLE([ccache],
161 [AS_HELP_STRING([--disable-ccache], 161 [AS_HELP_STRING([--disable-ccache],
162 [disable using ccache to speed up recompilations @<:@enabled@:>@])], 162 [disable using ccache to speed up recompilations @<:@enabled@:>@])],
163 [ENABLE_CCACHE=${enable_ccache}], [ENABLE_CCACHE=yes]) 163 [ENABLE_CCACHE=${enable_ccache}], [ENABLE_CCACHE=yes])
164 if test "x$ENABLE_CCACHE" = xyes; then 164 if test "x$ENABLE_CCACHE" = xyes; then
165 OLD_PATH="$PATH"
166 if test "x$TOOLS_DIR" != x; then
167 PATH=$TOOLS_DIR:$PATH
168 fi
165 AC_PATH_PROG(CCACHE, ccache) 169 AC_PATH_PROG(CCACHE, ccache)
170 PATH="$OLD_PATH"
166 else 171 else
167 AC_MSG_CHECKING([for ccache]) 172 AC_MSG_CHECKING([for ccache])
168 AC_MSG_RESULT([explicitly disabled]) 173 AC_MSG_RESULT([explicitly disabled])
169 CCACHE= 174 CCACHE=
170 fi 175 fi

mercurial