When cross-compiling, looking at what directories are present on the
build machine makes no sense. Default to /var/tmp instead.
[ghudson@mit.edu: use /var/tmp instead of /tmp; adjust commit message]
ticket: 8254
target_version: 1.14
tags: pullup
AC_MSG_CHECKING([for replay cache directory])
AC_CACHE_VAL(krb5_cv_sys_rcdir,
[
-for t_dir in /var/tmp /usr/tmp /var/usr/tmp /tmp ; do
- test -d $t_dir || continue
- krb5_cv_sys_rcdir=$t_dir
- break
-done])
+if test $cross_compiling = yes; then
+ krb5_cv_sys_rcdir=/var/tmp
+else
+ for t_dir in /var/tmp /usr/tmp /var/usr/tmp /tmp ; do
+ test -d $t_dir || continue
+ krb5_cv_sys_rcdir=$t_dir
+ break
+ done
+fi])
AC_MSG_RESULT($krb5_cv_sys_rcdir)
KRB5_RCTMPDIR=$krb5_cv_sys_rcdir
AC_SUBST(KRB5_RCTMPDIR)