summaryrefslogtreecommitdiff
path: root/m4/ax_prog_tasm.m4
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2007-09-09 14:05:43 +0200
committerPeter Simons <simons@cryp.to>2007-09-09 14:05:43 +0200
commiteb694aa28c809926714a557189ffa9bd37ed0b2a (patch)
treeda0ae2fb3be30225ee09dfc9cfcac20f66872ea1 /m4/ax_prog_tasm.m4
parent2010b1d308ef9b5acc4144bfd3a0528e82171664 (diff)
downloadautoconf-archive-eb694aa28c809926714a557189ffa9bd37ed0b2a.tar.gz
New macros to test for various assemblers, like nasm, yasm, etc.
Diffstat (limited to 'm4/ax_prog_tasm.m4')
-rw-r--r--m4/ax_prog_tasm.m448
1 files changed, 48 insertions, 0 deletions
diff --git a/m4/ax_prog_tasm.m4 b/m4/ax_prog_tasm.m4
new file mode 100644
index 0000000..680157f
--- /dev/null
+++ b/m4/ax_prog_tasm.m4
@@ -0,0 +1,48 @@
+##### http://autoconf-archive.cryp.to/ax_prog_tasm.html
+#
+# SYNOPSIS
+#
+# AX_PROG_TASM([ACTION-IF-NOT-FOUND])
+#
+# DESCRIPTION
+#
+# This macro searches for the TASM assembler and sets the variable
+# "tasm" to the name of the application or to "no" if not found. If
+# ACTION-IF-NOT-FOUND is not specified, configure will fail when the
+# program is not found.
+#
+# Example:
+#
+# AX_PROG_TASM()
+# AX_PROG_TASM([tasm_avail="no"])
+#
+# LAST MODIFICATION
+#
+# 2007-09-09
+#
+# COPYLEFT
+#
+# Copyright (c) 2007 Bogdan Drozdowski <bogdandr # op . pl>
+#
+# This program is free software: you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public License
+# as published by the Free Software Foundation, either version 3 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
+
+AC_DEFUN([AX_PROG_TASM],[
+AC_CHECK_PROGS(tasm,[tasm tasm32],no)
+if test $tasm = "no" ;
+then
+ ifelse($#,0,[AC_MSG_ERROR([TASM assembler not found])],
+ $1)
+fi
+])