2008-05-07 13:39:42 +00:00
|
|
|
dnl $Id: krb-prog-ln-s.m4 13338 2004-02-12 14:21:14Z lha $
|
2000-01-09 20:58:00 +00:00
|
|
|
dnl
|
|
|
|
dnl
|
|
|
|
dnl Better test for ln -s, ln or cp
|
|
|
|
dnl
|
|
|
|
|
2004-04-03 21:22:55 +00:00
|
|
|
AC_DEFUN([AC_KRB_PROG_LN_S],
|
2000-01-09 20:58:00 +00:00
|
|
|
[AC_MSG_CHECKING(for ln -s or something else)
|
|
|
|
AC_CACHE_VAL(ac_cv_prog_LN_S,
|
|
|
|
[rm -f conftestdata
|
|
|
|
if ln -s X conftestdata 2>/dev/null
|
|
|
|
then
|
|
|
|
rm -f conftestdata
|
|
|
|
ac_cv_prog_LN_S="ln -s"
|
|
|
|
else
|
|
|
|
touch conftestdata1
|
|
|
|
if ln conftestdata1 conftestdata2; then
|
|
|
|
rm -f conftestdata*
|
|
|
|
ac_cv_prog_LN_S=ln
|
|
|
|
else
|
|
|
|
ac_cv_prog_LN_S=cp
|
|
|
|
fi
|
|
|
|
fi])dnl
|
|
|
|
LN_S="$ac_cv_prog_LN_S"
|
|
|
|
AC_MSG_RESULT($ac_cv_prog_LN_S)
|
|
|
|
AC_SUBST(LN_S)dnl
|
|
|
|
])
|
|
|
|
|