aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2006-02-13 22:46:28 +0000
committerDiego Biurrun <diego@biurrun.de>2006-02-13 22:46:28 +0000
commit9cb2cf10b27d750895ab22fd506a43699ec68811 (patch)
treed8a3a466d3551e47a6426d32b6c1a1b473566832 /configure
parent171c407621b7ff52a0cf128b31651ca927c2dd49 (diff)
downloadffmpeg-9cb2cf10b27d750895ab22fd506a43699ec68811.tar.gz
Revert unconditional config.h overwriting, it may cause unnecessary rebuilds.
Originally committed as revision 5020 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index 9b5e942ce9..1770aa4ead 100755
--- a/configure
+++ b/configure
@@ -1939,7 +1939,13 @@ for codec in $CODEC_LIST ; do
echo "CONFIG_`echo $codec | tr a-z A-Z`=yes" >> config.mak
done
-mv -f $TMPH config.h
+# Do not overwrite config.h if unchanged to avoid superfluous rebuilds.
+diff $TMPH config.h >/dev/null 2>&1
+if test $? -ne 0 ; then
+ mv -f $TMPH config.h
+else
+ echo "config.h is unchanged"
+fi
rm -f $TMPO $TMPC $TMPE $TMPS $TMPH