Test for nasm - define HAVE_NASM in config.h if we have it, and AC_SUBST

Original commit message from CVS:
Test for nasm - define HAVE_NASM in config.h if we have it, and AC_SUBST
NASM_PATH for use when using nasm.
This commit is contained in:
Richard Boulton 2000-08-18 21:30:30 +00:00
parent 284ecaecca
commit d840ef3e7d
3 changed files with 14 additions and 0 deletions

View file

@ -7,6 +7,7 @@
#undef HAVE_LIBMMX #undef HAVE_LIBMMX
#undef HAVE_XAUDIO #undef HAVE_XAUDIO
#undef HAVE_CSSAUTH #undef HAVE_CSSAUTH
#undef HAVE_NASM
#undef HAVE_ATOMIC_H #undef HAVE_ATOMIC_H

View file

@ -18,6 +18,7 @@
#undef HAVE_LIBMMX #undef HAVE_LIBMMX
#undef HAVE_XAUDIO #undef HAVE_XAUDIO
#undef HAVE_CSSAUTH #undef HAVE_CSSAUTH
#undef HAVE_NASM
#undef HAVE_ATOMIC_H #undef HAVE_ATOMIC_H

View file

@ -42,6 +42,18 @@ dnl ##############################
dnl # Do automated configuration # dnl # Do automated configuration #
dnl ############################## dnl ##############################
dnl Check for tools:
dnl ================
dnl Check for nasm
AC_PATH_PROG(NASM_PATH, nasm, no)
if test x$NASM_PATH = xno; then
AC_MSG_WARN(Couldn't find nasm)
else
AC_DEFINE(HAVE_NASM)
AC_SUBST(NASM_PATH)
fi
dnl Check for essential libraries first: dnl Check for essential libraries first:
dnl ==================================== dnl ====================================