AC_MSG_CHECKING([setenv]) which_setenv=`which setenv` if test x$which_setenv = x then setenv() { export "$1=$2"; } unsetenv() { unset "$1"; export "$1"; } AC_MSG_RESULT([using export]) else AC_MSG_RESULT([$which setenv]) fi