From d840ef3e7d4411966a4f57d5e4b296c64a038b24 Mon Sep 17 00:00:00 2001 From: Richard Boulton Date: Fri, 18 Aug 2000 21:30:30 +0000 Subject: [PATCH] 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. --- acconfig.h | 1 + config.h.in | 1 + configure.in | 12 ++++++++++++ 3 files changed, 14 insertions(+) diff --git a/acconfig.h b/acconfig.h index 922bf002ef..84726a9c50 100644 --- a/acconfig.h +++ b/acconfig.h @@ -7,6 +7,7 @@ #undef HAVE_LIBMMX #undef HAVE_XAUDIO #undef HAVE_CSSAUTH +#undef HAVE_NASM #undef HAVE_ATOMIC_H diff --git a/config.h.in b/config.h.in index 53072fdb8f..dc954e2c16 100644 --- a/config.h.in +++ b/config.h.in @@ -18,6 +18,7 @@ #undef HAVE_LIBMMX #undef HAVE_XAUDIO #undef HAVE_CSSAUTH +#undef HAVE_NASM #undef HAVE_ATOMIC_H diff --git a/configure.in b/configure.in index bc47ddc6ea..75f203daba 100644 --- a/configure.in +++ b/configure.in @@ -42,6 +42,18 @@ dnl ############################## dnl # Do automated configuration # 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 ====================================