--- freetype-2.3.6.orig/configure 2007-12-06 17:19:34.000000000 +0100 +++ freetype-2.3.6/configure 2010-09-30 13:43:30.000000000 +0200 @@ -68,9 +68,11 @@ abs_ft2_dir=`cd "$ft2_dir" && pwd` # build a dummy Makefile if we are not building in the source tree +inode_src=`ls -id $abs_ft2_dir | cut -d " " -f 1 || echo -1` +inode_dst=`ls -id $abs_curr_dir | cut -d " " -f 1 || echo -2` -if test "$abs_curr_dir" != "$abs_ft2_dir"; then - mkdir reference +if test $inode_src -ne $inode_dst; then + if [ ! -d reference ]; then mkdir reference; fi echo "Copying \`modules.cfg'" cp $abs_ft2_dir/modules.cfg $abs_curr_dir echo "Generating \`Makefile'"