aboutsummaryrefslogtreecommitdiffstats
path: root/autoconf/ast_ext_lib.m4
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-17 23:49:15 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-17 23:49:15 +0000
commitfb80ae6cf3a78ea0d7d41c3948c9f538a04d5fa7 (patch)
treeac3bdac227866c0ecfdffd8d8d1b128c1dc02927 /autoconf/ast_ext_lib.m4
parentbc7512ec84522179543a47b8f5c9fb11f4308347 (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: http://svn.digium.com/svn/asterisk/trunk@263724 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'autoconf/ast_ext_lib.m4')
-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],