diff --git a/configure b/configure index 3765da450cda286edb09199b6caac2d50c8139ad..306c75f0ac918ecbb0eff54b5b93f4787b60f7d5 100755 --- a/configure +++ b/configure @@ -1212,6 +1212,8 @@ else source_path="$(cd "$source_path"; pwd)" echo "$source_path" | grep -q '[[:blank:]]' && die "Out of tree builds are impossible with whitespace in source path." + test -e "$source_path/config.h" && + die "Out of tree builds are impossible with config.h in source dir." fi FFMPEG_CONFIGURATION="$@"