152 fi 153 AC_MSG_RESULT([$JOBS]) 154 else 155 JOBS=$with_jobs 156 fi 157 AC_SUBST(JOBS) 158 ]) 159 160 AC_DEFUN([BPERF_SETUP_CCACHE], 161 [ 162 AC_ARG_ENABLE([ccache], 163 [AS_HELP_STRING([--enable-ccache], 164 [enable using ccache to speed up recompilations @<:@disabled@:>@])]) 165 166 CCACHE= 167 AC_MSG_CHECKING([is ccache enabled]) 168 ENABLE_CCACHE=$enable_ccache 169 if test "x$enable_ccache" = xyes; then 170 AC_MSG_RESULT([yes]) 171 OLD_PATH="$PATH" 172 if test "x$TOOLS_DIR" != x; then 173 PATH=$TOOLS_DIR:$PATH 174 fi 175 BASIC_REQUIRE_PROGS(CCACHE, ccache) 176 CCACHE_STATUS="enabled" 177 PATH="$OLD_PATH" 178 elif test "x$enable_ccache" = xno; then 179 AC_MSG_RESULT([no, explicitly disabled]) 180 elif test "x$enable_ccache" = x; then 181 AC_MSG_RESULT([no]) 182 else 183 AC_MSG_RESULT([unknown]) 184 AC_MSG_ERROR([--enable-ccache does not accept any parameters]) 185 fi 186 AC_SUBST(CCACHE) 187 188 AC_ARG_WITH([ccache-dir], 189 [AS_HELP_STRING([--with-ccache-dir], 190 [where to store ccache files @<:@~/.ccache@:>@])]) 191 192 if test "x$with_ccache_dir" != x; then 193 # When using a non home ccache directory, assume the use is to share ccache files | 152 fi 153 AC_MSG_RESULT([$JOBS]) 154 else 155 JOBS=$with_jobs 156 fi 157 AC_SUBST(JOBS) 158 ]) 159 160 AC_DEFUN([BPERF_SETUP_CCACHE], 161 [ 162 AC_ARG_ENABLE([ccache], 163 [AS_HELP_STRING([--enable-ccache], 164 [enable using ccache to speed up recompilations @<:@disabled@:>@])]) 165 166 CCACHE= 167 AC_MSG_CHECKING([is ccache enabled]) 168 ENABLE_CCACHE=$enable_ccache 169 if test "x$enable_ccache" = xyes; then 170 AC_MSG_RESULT([yes]) 171 OLD_PATH="$PATH" 172 if test "x$TOOLCHAIN_PATH" != x; then 173 PATH=$TOOLCHAIN_PATH:$PATH 174 fi 175 BASIC_REQUIRE_PROGS(CCACHE, ccache) 176 CCACHE_STATUS="enabled" 177 PATH="$OLD_PATH" 178 elif test "x$enable_ccache" = xno; then 179 AC_MSG_RESULT([no, explicitly disabled]) 180 elif test "x$enable_ccache" = x; then 181 AC_MSG_RESULT([no]) 182 else 183 AC_MSG_RESULT([unknown]) 184 AC_MSG_ERROR([--enable-ccache does not accept any parameters]) 185 fi 186 AC_SUBST(CCACHE) 187 188 AC_ARG_WITH([ccache-dir], 189 [AS_HELP_STRING([--with-ccache-dir], 190 [where to store ccache files @<:@~/.ccache@:>@])]) 191 192 if test "x$with_ccache_dir" != x; then 193 # When using a non home ccache directory, assume the use is to share ccache files |