Menu

Autoconf-macros

Bogdan Drozdowski

Asmosis - Autoconf macros

Autoconf (https://www.gnu.org/software/autoconf/) is a set of macros for configuring software to compile on various systems.

The Autoconf macros included in this package are:

  • macros that detect the presence of the fasm (flat assembler, https://flatassembler.net) assembler and its supported options: AX_PROG_FASM and AX_PROG_FASM_OPT,
  • macros that detect the presence of the HLA (High-Level Assembler, https://www.randallhyde.com/) assembler and its supported options: AX_PROG_HLA and AX_PROG_HLA_OPT,
  • macros that detect the presence of the MASM (Microsoft Macro Assembler) assembler and its supported options: AX_PROG_MASM and AX_PROG_MASM_OPT,
  • macros that detect the presence of the NASM (The Netwide Assembler, https://www.nasm.us) assembler and its supported options: AX_PROG_NASM and AX_PROG_NASM_OPT,
  • macros that detect the presence of the TASM (Borland Turbo Assembler) assembler and its supported options: AX_PROG_TASM and AX_PROG_TASM_OPT,
  • macros that detect the presence of the YASM (https://yasm.tortall.net) assembler and its supported options: AX_PROG_YASM and AX_PROG_YASM_OPT.

Requirements

None of the macros has any special requirements. Just the basic Autoconf and M4 functionalities should suffice.

Example

AX_PROG_FASM([fasm_avail="no"])
AX_PROG_HLA([hla_avail="no"])
AX_PROG_MASM([masm_avail="no"])
AX_PROG_NASM([nasm_avail="no"])
AX_PROG_TASM([tasm_avail="no"])
AX_PROG_YASM([yasm_avail="no"])

AX_PROG_FASM_OPT([-m 256], [FASM_OPTS])
AX_PROG_HLA_OPT([-v], [HLA_OPTS])
AX_PROG_MASM_OPT([/coff], [MASM_OPTS])
AX_PROG_NASM_OPT([-f obj], [NASM_OPTS])
AX_PROG_TASM_OPT([/z], [TASM_OPTS])
AX_PROG_YASM_OPT([-f bin], [YASM_OPTS])

Related

Wiki: Asmosis tools