X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=blobdiff_plain;f=m4%2Fmacros%2Fenable-disable.m4;h=9d51cb9b287b2fd607f5712733c959087962e91d;hp=2e455206893d36a05c6a52ade3aa5291242c8859;hb=HEAD;hpb=e212033ef2012ff9be098ce2a9ee0da39c662c31;ds=sidebyside diff --git a/m4/macros/enable-disable.m4 b/m4/macros/enable-disable.m4 index 2e45520..9d51cb9 100644 --- a/m4/macros/enable-disable.m4 +++ b/m4/macros/enable-disable.m4 @@ -2,6 +2,7 @@ # ARG_ENABL_SET(option, help) # --------------------------- # Create a --enable-$1 option with helptext, set a variable $1 to true/false +# All $1 are collected in the variable $disabled_by_default AC_DEFUN([ARG_ENABL_SET], [AC_ARG_ENABLE( [$1], @@ -14,7 +15,8 @@ AC_DEFUN([ARG_ENABL_SET], fi], [patsubst([$1], [-], [_])=false patsubst([$1], [-], [_])_given=false] - )] + ) + disabled_by_default=${disabled_by_default}" patsubst([$1], [-], [_])"] ) # ARG_DISBL_SET(option, help)