1*a53f50b9Schristosdnl ###################################################################### 2*a53f50b9Schristosdnl New versions of the cache functions which also dynamically evaluate the 3*a53f50b9Schristosdnl cache-id field, so that it may contain shell variables to expand 4*a53f50b9Schristosdnl dynamically for the creation of $ac_cv_* variables on the fly. 5*a53f50b9Schristosdnl In addition, this function allows you to call COMMANDS which generate 6*a53f50b9Schristosdnl output on the command line, because it prints its own AC_MSG_CHECKING 7*a53f50b9Schristosdnl after COMMANDS are run. 8*a53f50b9Schristosdnl 9*a53f50b9Schristosdnl ====================================================================== 10*a53f50b9Schristosdnl AMU_CACHE_CHECK_DYNAMIC(MESSAGE, CACHE-ID, COMMANDS) 11*a53f50b9Schristosdefine(AMU_CACHE_CHECK_DYNAMIC, 12*a53f50b9Schristos[ 13*a53f50b9Schristosac_tmp=`echo $2` 14*a53f50b9Schristosif eval "test \"`echo '$''{'$ac_tmp'+set}'`\" = set"; then 15*a53f50b9Schristos AC_MSG_CHECKING([$1]) 16*a53f50b9Schristos echo $ECHO_N "(cached) $ECHO_C" 1>&AS_MESSAGE_FD([]) 17*a53f50b9Schristosdnl XXX: for older autoconf versions 18*a53f50b9Schristosdnl echo $ac_n "(cached) $ac_c" 1>&AS_MESSAGE_FD([]) 19*a53f50b9Schristoselse 20*a53f50b9Schristos $3 21*a53f50b9Schristos AC_MSG_CHECKING([$1]) 22*a53f50b9Schristosfi 23*a53f50b9Schristosac_tmp_val=`eval eval "echo '$''{'$ac_tmp'}'"` 24*a53f50b9SchristosAC_MSG_RESULT($ac_tmp_val) 25*a53f50b9Schristos]) 26*a53f50b9Schristosdnl ====================================================================== 27