From: Oka Motofumi Date: Sun, 5 Feb 2012 21:07:34 +0000 (+0900) Subject: Add error handling for out-of-tree build X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=d3efb00abbedd2bbb70156bd989beefe06468116;p=x264.git Add error handling for out-of-tree build --- diff --git a/configure b/configure index db7ad0e8..145d4685 100755 --- a/configure +++ b/configure @@ -237,6 +237,7 @@ rm -f x264_config.h config.h config.mak config.log x264.pc x264.def conftest* SRCPATH="$(cd $(dirname $0); pwd)" [ "$SRCPATH" = "$(pwd)" ] && SRCPATH=. [ -n "$(echo $SRCPATH | grep ' ')" ] && die "Out of tree builds are impossible with whitespace in source path." +[ -e "$SRCPATH/config.h" -o -e "$SRCPATH/x264_config.h" ] && die "Out of tree builds are impossible with config.h/x264_config.h in source dir." prefix='/usr/local' exec_prefix='${prefix}'