nut/m4/nut_arg_with.m4

22 lines
724 B
Text
Raw Normal View History

2010-03-25 23:20:59 +00:00
dnl simplified declaration of some feature options
2022-06-29 10:37:36 +00:00
dnl Working With External Software (might name a variant or other contextual arg)
dnl https://www.gnu.org/software/autoconf/manual/autoconf-2.66/html_node/External-Software.html#External-Software
2010-03-25 23:20:59 +00:00
AC_DEFUN([NUT_ARG_WITH],
[ AC_ARG_WITH($1,
2022-06-29 10:37:36 +00:00
AS_HELP_STRING([--with-$1], [$2 ($3)]),
2010-03-25 23:20:59 +00:00
[nut_with_$1="${withval}"],
[nut_with_$1="$3"]
)
])
2022-06-29 10:37:36 +00:00
dnl Enable a feature (might name a variant), or yes/no
dnl https://www.gnu.org/software/autoconf/manual/autoconf-2.66/html_node/Package-Options.html
AC_DEFUN([NUT_ARG_ENABLE],
[ AC_ARG_ENABLE($1,
AS_HELP_STRING([--enable-$1], [$2 ($3)]),
[nut_enable_$1="${enableval}"],
[nut_enable_$1="$3"]
)
])