[vlc-commits] contrib: helper to copy recent config.{guess, sub} from automake
Rafaël Carré
git at videolan.org
Wed Jan 4 20:38:16 CET 2012
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Dec 28 11:03:25 2011 -0500| [e10f808bfda43a49dff3b49cdac6edc18c3b67db] | committer: Rafaël Carré
contrib: helper to copy recent config.{guess,sub} from automake
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e10f808bfda43a49dff3b49cdac6edc18c3b67db
---
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
+
RECONF = mkdir -p -- $(PREFIX)/share/aclocal && \
cd $< && autoreconf -fiv $(ACLOCAL_AMFLAGS)
CMAKE = cmake . -DCMAKE_TOOLCHAIN_FILE=$(abspath toolchain.cmake) \
More information about the vlc-commits
mailing list