Changed tests for joe editor

This commit is contained in:
Michiel Broek 2002-07-27 20:49:32 +00:00
parent 4124e691b3
commit 38f0cb2e8c
2 changed files with 21 additions and 21 deletions

20
configure vendored
View File

@ -7792,7 +7792,7 @@ esac
echo "$as_me:$LINENO: checking location of joe editor" >&5
echo $ECHO_N "checking location of joe editor... $ECHO_C" >&6
for joebin in /usr/bin /usr/local/bin NONE; do
for joebin in /usr/bin /usr/local/bin /usr/pkg/bin NONE; do
if test "$joebin" = "NONE"; then
{ echo "$as_me:$LINENO: WARNING: not found" >&5
echo "$as_me: WARNING: not found" >&2;}
@ -7800,19 +7800,19 @@ echo "$as_me: WARNING: not found" >&2;}
echo "$as_me:$LINENO: result: $joebin" >&5
echo "${ECHO_T}$joebin" >&6
echo "$as_me:$LINENO: checking location of joe rc files" >&5
break
fi
done
echo "$as_me:$LINENO: checking location of joe rc files" >&5
echo $ECHO_N "checking location of joe rc files... $ECHO_C" >&6
for joelib in /etc/joe /usr/lib/joe /usr/local/etc/joe /usr/local/lib/joe NONE; do
if test "$joelib" = "NONE"; then
{ echo "$as_me:$LINENO: WARNING: not found" >&5
for joelib in /etc/joe /usr/lib/joe /usr/local/etc/joe /usr/local/lib/joe /usr/pkg/lib /usr/pkg/etc NONE; do
if test "$joelib" = "NONE"; then
{ echo "$as_me:$LINENO: WARNING: not found" >&5
echo "$as_me: WARNING: not found" >&2;}
elif test -f $joelib/joerc; then
elif test -f $joelib/joerc; then
echo "$as_me:$LINENO: result: $joelib" >&5
echo "$as_me:$LINENO: result: $joelib" >&5
echo "${ECHO_T}$joelib" >&6
break
fi
done
break
fi
done

View File

@ -196,22 +196,22 @@ AC_SUBST(LOG_COMPRESSEXT)
dnl
AC_MSG_CHECKING(location of joe editor)
for joebin in /usr/bin /usr/local/bin NONE; do
for joebin in /usr/bin /usr/local/bin /usr/pkg/bin NONE; do
if test "$joebin" = "NONE"; then
AC_MSG_WARN(not found)
elif test -x $joebin/joe; then
AC_SUBST(joebin)
AC_MSG_RESULT($joebin)
AC_MSG_CHECKING(location of joe rc files)
for joelib in /etc/joe /usr/lib/joe /usr/local/etc/joe /usr/local/lib/joe NONE; do
if test "$joelib" = "NONE"; then
AC_MSG_WARN(not found)
elif test -f $joelib/joerc; then
AC_SUBST(joelib)
AC_MSG_RESULT($joelib)
break
fi
done
break
fi
done
AC_MSG_CHECKING(location of joe rc files)
for joelib in /etc/joe /usr/lib/joe /usr/local/etc/joe /usr/local/lib/joe /usr/pkg/lib /usr/pkg/etc NONE; do
if test "$joelib" = "NONE"; then
AC_MSG_WARN(not found)
elif test -f $joelib/joerc; then
AC_SUBST(joelib)
AC_MSG_RESULT($joelib)
break
fi
done