Browse Source

Only check if compass is available through sass if sass was found.

pull/54/head
Joachim Bauch 11 years ago
parent
commit
85776c238f
  1. 16
      configure.ac

16
configure.ac

@ -94,16 +94,18 @@ if test x"${COMPASS}" == x"" ; then
fi fi
AC_SUBST(COMPASS) AC_SUBST(COMPASS)
AC_MSG_CHECKING([for compass support in sass]) if test x"${SASS}" != x"" ; then
tempfile=`mktemp` AC_MSG_CHECKING([for compass support in sass])
$SASS --compass $tempfile > /dev/null 2> /dev/null tempfile=`mktemp`
sass_compass=$? $SASS --compass $tempfile > /dev/null 2> /dev/null
rm $tempfile sass_compass=$?
if test x"${sass_compass}" != x"0" ; then rm $tempfile
if test x"${sass_compass}" != x"0" ; then
AC_MSG_RESULT([not available]) AC_MSG_RESULT([not available])
AC_MSG_WARN([Please install compass so it can be used using "sass --compass ...".]) AC_MSG_WARN([Please install compass so it can be used using "sass --compass ...".])
fi
AC_MSG_RESULT([ok])
fi fi
AC_MSG_RESULT([ok])
AC_PATH_PROGS([AUTOPREFIXER],[autoprefixer]) AC_PATH_PROGS([AUTOPREFIXER],[autoprefixer])
if test x"${AUTOPREFIXER}" == x"" ; then if test x"${AUTOPREFIXER}" == x"" ; then

Loading…
Cancel
Save