for i in $MCAL_DIR $MCAL_DIR/mcal $MCAL_DIR/mcal/include $MCAL_DIR/include; do
if test -r "$i/mcal.h"; then
MCAL_INCLUDE=$i
fi
done
for i in $MCAL_DIR $MCAL_DIR/mcal $MCAL_DIR/mcal/lib $MCAL_DIR/lib; do
if test -r "$i/libmcal.a"; then
MCAL_LIBRARY=$i
fi
done
if test ! -f "$MCAL_INCLUDE/mcal.h"; then
AC_MSG_ERROR(Unable to locate your libmcal header files - mcal.h should be in the directory you specify or in the include/ subdirectory below it - default search location is $MCAL_DEFAULT_SEARCH)
fi
if test ! -f "$MCAL_LIBRARY/libmcal.a"; then
AC_MSG_ERROR(Unable to locate your libmcal library files - libmcal.a should be in the directory you specify or in the lib/ subdirectory below it - default search location is $MCAL_DEFAULT_SEARCH)