summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2008-11-03 12:26:35 +0000
committerKevin P. Fleming <kpfleming@digium.com>2008-11-03 12:26:35 +0000
commit191ffe5bce350424791ecda0e5b4a9ffd40b44b3 (patch)
tree00d43bad091a42a927dc83f9024ab3a5f7d14800 /autoconf
parent9167a2b5e164687d4c9a0618a42d0dfe30090b9b (diff)
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
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/ast_ext_lib.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/autoconf/ast_ext_lib.m4 b/autoconf/ast_ext_lib.m4
index 57d83a5d1..35be41ffa 100644
--- a/autoconf/ast_ext_lib.m4
+++ b/autoconf/ast_ext_lib.m4
@@ -10,11 +10,15 @@ AC_DEFUN([AST_EXT_LIB_SETUP],
[
$1_DESCRIP="$2"
$1_OPTION="$3"
+ PBX_$1=0
AC_ARG_WITH([$3], AC_HELP_STRING([--with-$3=PATH],[use $2 files in PATH $4]),
[
case ${withval} in
n|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)
ac_mandatory_list="${ac_mandatory_list} $1"
@@ -25,7 +29,6 @@ AC_DEFUN([AST_EXT_LIB_SETUP],
;;
esac
])
- PBX_$1=0
AC_SUBST([$1_LIB])
AC_SUBST([$1_INCLUDE])
AC_SUBST([$1_DIR])