mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
when --without-<foo> is passed to the configure script, explicitly inform menuselect that the package was disabled by the user
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@153787 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -10,11 +10,15 @@ AC_DEFUN([AST_EXT_LIB_SETUP],
|
|||||||
[
|
[
|
||||||
$1_DESCRIP="$2"
|
$1_DESCRIP="$2"
|
||||||
$1_OPTION="$3"
|
$1_OPTION="$3"
|
||||||
|
PBX_$1=0
|
||||||
AC_ARG_WITH([$3], AC_HELP_STRING([--with-$3=PATH],[use $2 files in PATH $4]),
|
AC_ARG_WITH([$3], AC_HELP_STRING([--with-$3=PATH],[use $2 files in PATH $4]),
|
||||||
[
|
[
|
||||||
case ${withval} in
|
case ${withval} in
|
||||||
n|no)
|
n|no)
|
||||||
USE_$1=no
|
USE_$1=no
|
||||||
|
# -1 is a magic value used by menuselect to know that the package
|
||||||
|
# was disabled, other than 'not found'
|
||||||
|
PBX_$1=-1
|
||||||
;;
|
;;
|
||||||
y|ye|yes)
|
y|ye|yes)
|
||||||
ac_mandatory_list="${ac_mandatory_list} $1"
|
ac_mandatory_list="${ac_mandatory_list} $1"
|
||||||
@@ -25,7 +29,6 @@ AC_DEFUN([AST_EXT_LIB_SETUP],
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
])
|
])
|
||||||
PBX_$1=0
|
|
||||||
AC_SUBST([$1_LIB])
|
AC_SUBST([$1_LIB])
|
||||||
AC_SUBST([$1_INCLUDE])
|
AC_SUBST([$1_INCLUDE])
|
||||||
AC_SUBST([$1_DIR])
|
AC_SUBST([$1_DIR])
|
||||||
|
Reference in New Issue
Block a user