diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-11-26 16:22:11 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-11-26 16:22:11 +0100 |
commit | f1d887251d33055d3f5dc858044a1ead63d25e78 (patch) | |
tree | 99d8e89b6fa5bfb30f4adf992d12847e1dd6cf29 /source4/build | |
parent | d3fa3c080f4509d8d043b26f3bee157f026d6e8a (diff) | |
download | samba-f1d887251d33055d3f5dc858044a1ead63d25e78.tar.gz samba-f1d887251d33055d3f5dc858044a1ead63d25e78.tar.bz2 samba-f1d887251d33055d3f5dc858044a1ead63d25e78.zip |
Use a simple shell loop instead of _AC_SUBST_VARS.
Autoconf has removed _AC_SUBST_VARS in newer versions.
Diffstat (limited to 'source4/build')
-rw-r--r-- | source4/build/m4/public.m4 | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/source4/build/m4/public.m4 b/source4/build/m4/public.m4 index d61e00b22e..461b25c6af 100644 --- a/source4/build/m4/public.m4 +++ b/source4/build/m4/public.m4 @@ -188,10 +188,19 @@ use strict; use vars qw(%enabled %config); -%config = (AC_FOREACH([AC_Var], m4_defn([_AC_SUBST_VARS]), [ - AC_Var => '$AC_Var',]) -); +%config = ( +CEOF + +for ac_var in $ac_subst_vars +do + eval ac_val=\$$ac_var + if echo "$skip_vars" | grep -v " $ac_var " >/dev/null 2>/dev/null; then + echo "$ac_var => '$ac_val'," >> $1 + fi +done +cat >>$1<<CEOF +); $SMB_INFO_ENABLES 1; CEOF |