0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-10-10 00:25:06 -04:00
Files
nasm/autoconf/m4/pa_lang_flagvar.m4
H. Peter Anvin 2de413db32 autoconf: more autoconf library macro updates
More macro updates from the pa_autoconf library.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2025-09-22 17:02:58 -07:00

22 lines
799 B
Plaintext

dnl --------------------------------------------------------------------------
dnl PA_LANG_FLAGVAR([language])
dnl
dnl Return the name of the compiler flag variable for the current or
dnl specified language. Returns empty if the variable name is not known.
dnl --------------------------------------------------------------------------
AC_DEFUN([PA_LANG_FLAGVAR],
[m4_case(m4_quote(m4_default([$1],m4_quote(_AC_LANG))),
[C], [CFLAGS],
[C++], [CXXFLAGS],
[Fortran 77], [FFLAGS],
[Fortran], [FCFLAGS],
[Erlang], [ERLCFLAGS],
[Objective C], [OBJCFLAGS],
[Objective C++], [OBJCXXFLAGS],
[Go], [GOFLAGS],
[m4_fatal([PA_LANG_FLAGVAR: Unknown language: $1])])])
AC_DEFUN([PA_LANG_HAVE_FLAGVAR_LIST],
[[[C], [C++], [Fortran 77], [Fortran], [Erlang],
[Objective C], [Objective C++], [Go]]])