configure: fix broken test
authorAurelien Jarno <aurelien@aurel32.net>
Fri, 14 Jan 2011 19:21:22 +0000 (20:21 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 14 Jan 2011 19:21:22 +0000 (20:21 +0100)
Since commit d1807a4f836c27f6dc7061e53a834dd27f78e46a ./configure tries
to test files and directories with "test -f", which only test for regular
files. Test with "test -e", which looks for any kind of files.

This unbreak the configure script when not using a separate object
directory.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
configure

index c058934571bea1959f70a16fdf4a0a5ecc8e1402..54afdda8f7d7d892fa05f1df11563f0f1a0d3272 100755 (executable)
--- a/configure
+++ b/configure
@@ -3241,7 +3241,7 @@ for bios_file in $source_path/pc-bios/*.bin $source_path/pc-bios/*.dtb $source_p
 done
 mkdir -p $DIRS
 for f in $FILES ; do
-    test -f $f || symlink $source_path/$f $f
+    test -e $f || symlink $source_path/$f $f
 done
 
 # temporary config to build submodules