mirror of
https://kernel.googlesource.com/pub/scm/network/tftp/tftp-hpa
synced 2025-04-26 01:49:52 +03:00

Use my modular m4 library used for other things as well; update autoconf macros to 2.71 standard. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 lines
622 B
Text
15 lines
622 B
Text
dnl --------------------------------------------------------------------------
|
|
dnl PA_LANG_FOREACH(subset, body)
|
|
dnl
|
|
dnl Expand [body] for each language encountered in the configure script also
|
|
dnl present in [subset], or all if [subset] is empty
|
|
dnl --------------------------------------------------------------------------
|
|
AC_DEFUN([_PA_LANG_DO],dnl
|
|
[AC_LANG([$2])dnl
|
|
$1])
|
|
|
|
AC_DEFUN([PA_LANG_FOREACH],dnl
|
|
[m4_pushdef([_pa_lang_foreach_current],[_AC_LANG])dnl
|
|
m4_map_args([m4_curry([_PA_LANG_DO],[$2])],m4_unquote(PA_LANG_SEEN_LIST($1)))dnl
|
|
AC_LANG(_pa_lang_foreach_current)dnl
|
|
m4_popdef([_pa_lang_foreach_current])])
|