[vlc-devel] [PATCH 1/2] contrib: helper to copy recent config.{guess, sub} from automake

Rafaël Carré rafael.carre at gmail.com
Wed Dec 28 19:16:55 CET 2011


Le 2011-12-28 13:00, Rémi Denis-Courmont a écrit :
>    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?

It is on osx and msys

opensuse has it in util-linux, fedora in which

looks pretty standard



More information about the vlc-devel mailing list