mirror of
https://github.com/aria2/aria2.git
synced 2024-11-23 13:59:50 +00:00
01238a1579
Fixed the bug that configure --enable-FEATURE actually disables FEATURE. * m4/aria2_arg.m4
16 lines
463 B
Plaintext
16 lines
463 B
Plaintext
dnl ARIA2_ARG_WITH(PACKAGE)
|
|
dnl wrapper for AC_ARG_WITH with default value 'yes'.
|
|
AC_DEFUN([ARIA2_ARG_WITH],
|
|
[AC_ARG_WITH([$1],
|
|
AC_HELP_STRING([--with-$1], [use $1 if it is installed.]),
|
|
[with_$1=$withval], [with_$1=yes])]
|
|
)
|
|
|
|
dnl ARIA2_ARG_ENABLE(FEATURE)
|
|
dnl wrapper for AC_ARG_ENABLE with default value 'yes'.
|
|
AC_DEFUN([ARIA2_ARG_ENABLE],
|
|
[AC_ARG_ENABLE([$1],
|
|
AC_HELP_STRING([--enable-$1], [enable $1 support.]),
|
|
[enable_$1=$enableval], [enable_$1=yes])]
|
|
)
|