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_find_func.m4
H. Peter Anvin dc247c9f99 Speed up autoconf, use POSIX names instead of cpu_to_le*()
The POSIX names for these functions are htole*(). Use those
preferentially.

Speed up autoconf by allowing early-out during alternative function
searches.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2025-09-15 18:26:25 -07:00

17 lines
529 B
Plaintext

dnl --------------------------------------------------------------------------
dnl PA_FIND_FUNC(func_description ...)
dnl
dnl Each argument must be a list of arguments to PA_HAVE_FUNC. Stop after
dnl the first function in the list found.
dnl --------------------------------------------------------------------------
AC_DEFUN([_PA_FIND_FUNC],
[
AS_IF([test x"$pa_find_func_found" != xyes],
[PA_HAVE_FUNC($@)
pa_find_func_found="$pa_cv_func_$1"
])])
AC_DEFUN([PA_FIND_FUNC],
[pa_find_func_found=no
m4_map([_PA_FIND_FUNC],[$@])])