[vlc-devel] [PATCH 1/2] contrib: helper to copy recent config.{guess, sub} from automake
Rafaël Carré
funman at videolan.org
Wed Dec 28 17:04:23 CET 2011
---
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) \
--
1.7.7.3
More information about the vlc-devel
mailing list