summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2010-05-17 23:49:15 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2010-05-17 23:49:15 +0000
commit4c034c1f72676a8ef0198768fc5a2e6a17aad9d7 (patch)
treeac3bdac227866c0ecfdffd8d8d1b128c1dc02927 /autoconf
parente3ac20a7f6c59bc02da04ec84d5c197a9b2152a4 (diff)
Cache sound tarfiles in a common directory, such that a clean reinstall does not force a re-download of the tarballs.
(closes issue #15370) Reported by: pprindeville Patches: asterisk-trunk-bugid15370.patch uploaded by pprindeville (license 347) Tested by: pprindeville, tilghman, seanbright git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@263724 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/ast_ext_lib.m421
1 files changed, 21 insertions, 0 deletions
diff --git a/autoconf/ast_ext_lib.m4 b/autoconf/ast_ext_lib.m4
index 4038bfb12..112b90f65 100644
--- a/autoconf/ast_ext_lib.m4
+++ b/autoconf/ast_ext_lib.m4
@@ -36,6 +36,27 @@ AC_DEFUN([AST_EXT_LIB_SETUP],
AC_SUBST([PBX_$1])
])
+# AST_OPTION_ONLY([option name], [option variable], [option description], [default value])
+AC_DEFUN([AST_OPTION_ONLY],
+[
+AC_ARG_WITH([$1], AC_HELP_STRING([--with-$1=PATH], [use $3 in PATH]),
+ [
+ case ${withval} in
+ n|no)
+ unset $2
+ ;;
+ *)
+ if test "x${$2}" = "x"; then
+ m4_ifval($4, [$2="$4"], [:])
+ else
+ $2="${withval}"
+ fi
+ ;;
+ esac
+ ])
+AC_SUBST($2)
+])
+
# AST_EXT_LIB_SETUP_DEPENDENT([package symbol name], [package friendly name], [master package symbol name], [master package option name])
AC_DEFUN([AST_EXT_LIB_SETUP_DEPENDENT],