Changeset View
Changeset View
Standalone View
Standalone View
contrib/ldns/m4/ax_config_feature.m4
# =========================================================================== | # =========================================================================== | ||||
# http://www.gnu.org/software/autoconf-archive/ax_config_feature.html | # https://www.gnu.org/software/autoconf-archive/ax_config_feature.html | ||||
# =========================================================================== | # =========================================================================== | ||||
# | # | ||||
# SYNOPSIS | # SYNOPSIS | ||||
# | # | ||||
# AX_CONFIG_FEATURE(FEATURE-NAME, FEATURE-DESCRIPTION, DEFINE, DEFINE-DESCRIPTION, [ACTION-IF-ENABLED [, ACTION-IF-NOT-ENABLED]]) | # AX_CONFIG_FEATURE(FEATURE-NAME, FEATURE-DESCRIPTION, DEFINE, DEFINE-DESCRIPTION, [ACTION-IF-ENABLED [, ACTION-IF-NOT-ENABLED]]) | ||||
# | # | ||||
# DESCRIPTION | # DESCRIPTION | ||||
# | # | ||||
▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
# option) any later version. | # option) any later version. | ||||
# | # | ||||
# This program is distributed in the hope that it will be useful, but | # This program is distributed in the hope that it will be useful, but | ||||
# WITHOUT ANY WARRANTY; without even the implied warranty of | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||||
# Public License for more details. | # Public License for more details. | ||||
# | # | ||||
# You should have received a copy of the GNU General Public License along | # You should have received a copy of the GNU General Public License along | ||||
# with this program. If not, see <http://www.gnu.org/licenses/>. | # with this program. If not, see <https://www.gnu.org/licenses/>. | ||||
# | # | ||||
# As a special exception, the respective Autoconf Macro's copyright owner | # As a special exception, the respective Autoconf Macro's copyright owner | ||||
# gives unlimited permission to copy, distribute and modify the configure | # gives unlimited permission to copy, distribute and modify the configure | ||||
# scripts that are the output of Autoconf when processing the Macro. You | # scripts that are the output of Autoconf when processing the Macro. You | ||||
# need not follow the terms of the GNU General Public License when using | # need not follow the terms of the GNU General Public License when using | ||||
# or distributing such scripts, even though portions of the text of the | # or distributing such scripts, even though portions of the text of the | ||||
# Macro appear in them. The GNU General Public License (GPL) does govern | # Macro appear in them. The GNU General Public License (GPL) does govern | ||||
# all other use of the material that constitutes the Autoconf Macro. | # all other use of the material that constitutes the Autoconf Macro. | ||||
# | # | ||||
# This special exception to the GPL applies to versions of the Autoconf | # This special exception to the GPL applies to versions of the Autoconf | ||||
# Macro released by the Autoconf Archive. When you make and distribute a | # Macro released by the Autoconf Archive. When you make and distribute a | ||||
# modified version of the Autoconf Macro, you may extend this special | # modified version of the Autoconf Macro, you may extend this special | ||||
# exception to the GPL to apply to your modified version as well. | # exception to the GPL to apply to your modified version as well. | ||||
#serial 10 | #serial 11 | ||||
AC_DEFUN([AX_CONFIG_FEATURE],[ dnl | AC_DEFUN([AX_CONFIG_FEATURE],[ dnl | ||||
m4_pushdef([FEATURE], patsubst([$1], -, _))dnl | m4_pushdef([FEATURE], patsubst([$1], -, _))dnl | ||||
AC_ARG_ENABLE([$1],AS_HELP_STRING([--enable-$1],[$2]),[ | AC_ARG_ENABLE([$1],AS_HELP_STRING([--enable-$1],[$2]),[ | ||||
case "${enableval}" in | case "${enableval}" in | ||||
yes) | yes) | ||||
ax_config_feature_[]FEATURE[]="yes" | ax_config_feature_[]FEATURE[]="yes" | ||||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |