Test for nasm - define HAVE_NASM in config.h if we have it, and AC_SUBST
authorRichard Boulton <richard@tartarus.org>
Fri, 18 Aug 2000 21:30:30 +0000 (21:30 +0000)
committerRichard Boulton <richard@tartarus.org>
Fri, 18 Aug 2000 21:30:30 +0000 (21:30 +0000)
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
config.h.in
configure.in

index 922bf00..84726a9 100644 (file)
@@ -7,6 +7,7 @@
 #undef HAVE_LIBMMX
 #undef HAVE_XAUDIO
 #undef HAVE_CSSAUTH
+#undef HAVE_NASM
 
 #undef HAVE_ATOMIC_H
 
index 53072fd..dc954e2 100644 (file)
@@ -18,6 +18,7 @@
 #undef HAVE_LIBMMX
 #undef HAVE_XAUDIO
 #undef HAVE_CSSAUTH
+#undef HAVE_NASM
 
 #undef HAVE_ATOMIC_H
 
index bc47ddc..75f203d 100644 (file)
@@ -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 ====================================