[vlc-devel] [PATCH 1/2] contrib: helper to copy recent config.{guess, sub} from automake
Rémi Denis-Courmont
remi at remlab.net
Wed Dec 28 19:00:31 CET 2011
Hello,
On Wednesday 28 December 2011, Rafaël Carré wrote:
> ---
> contrib/src/main.mak | 8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/contrib/src/main.mak b/contrib/src/main.mak
> index fdd0892..3ab0014 100644
> --- a/contrib/src/main.mak
> +++ b/contrib/src/main.mak
> @@ -259,6 +259,14 @@ UNPACK_DIR = $(basename $(basename $(notdir $<)))
> APPLY = (cd $(UNPACK_DIR) && patch -p1) <
> MOVE = mv $(UNPACK_DIR) $@ && touch $@
>
> +AUTOMAKE_DATA_DIRS=$(abspath $(dir $(shell which
> automake))/../share/automake*) +UPDATE_AUTOCONFIG = for dir in
> $(AUTOMAKE_DATA_DIRS); do \
> + if test -f "$${dir}/config.sub" -a -f "$${dir}/config.guess"; then \
> + cp "$${dir}/config.sub" "$${dir}/config.guess" $@; \
> + break; \
> + fi; \
> + done
> +
Is 'which' available on non-Debian systems?
--
Rémi Denis-Courmont
http://www.remlab.info
More information about the vlc-devel
mailing list