Skip to content
This repository has been archived by the owner on Jul 2, 2022. It is now read-only.

Commit

Permalink
configure.ac: Beautify yasm test output
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissicool committed Jun 8, 2011
1 parent 17e4e13 commit 80ea56a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions configure.ac
Expand Up @@ -56,10 +56,8 @@ fi

dnl Find YASM
has_yasm=false
AC_PATH_PROG(YASM,[yasm],[true yasm])
if test "$YASM" = "false" ; then
AC_MSG_WARN([yasm is required for the x86_64 SSE2 code, but it was not found])
else
AC_PATH_PROG([YASM],[yasm],[false])
if test "x$YASM" != "xfalse" ; then
AC_MSG_CHECKING([if yasm version is greater than 1.0.1])
yasmver=`yasm --version | head -1 | cut -d\ -f2`
yamajor=`echo $yasmver | cut -d. -f1`
Expand All @@ -80,11 +78,14 @@ else
else
has_yasm=false
fi
if test "x$has_yasm" = "xtrue" ; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
fi
fi
if test "x$has_yasm" == "xtrue" ; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
if test "x$has_yasm" = "xfalse" ; then
AC_MSG_NOTICE([yasm is required for the sse2_64 algorithm. It will be skipped.])
fi

AM_CONDITIONAL([HAS_YASM], [test x$has_yasm = xtrue])
Expand Down

0 comments on commit 80ea56a

Please sign in to comment.