[Libreoffice-commits] core.git: configure.ac solenv/inc

Luboš Luňák l.lunak at suse.cz
Fri Mar 1 01:09:02 PST 2013


 configure.ac          |   13 ++++++++++++-
 solenv/inc/.gitignore |    3 ++-
 2 files changed, 14 insertions(+), 2 deletions(-)

New commits:
commit 8cbd48f732587653870dc5996aef8af2db1fb51b
Author: Luboš Luňák <l.lunak at suse.cz>
Date:   Fri Mar 1 10:05:55 2013 +0100

    avoid relinking on windows after every configure run
    
    Since 2ba9023a60f41f5ba414fa0f7682ac8104b3a00b WinResTarget depends on solenv_inc,
    which eventually depends on solenv/inc/minor.mk , which means relinking all
    libraries on Windows after each configure run. As AC_CONFIG_FILES updates
    generated files unconditionally, use a temporary and update only when it's
    actually changed.
    
    Change-Id: Ie5503ed7cdf307ab51935d271e9f1603b5e8f987

diff --git a/configure.ac b/configure.ac
index e6f78a7..de10a0e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11827,7 +11827,18 @@ if test -f config_host.mk; then
     config_md5=`$MD5SUM config_host.mk | sed "s/ .*//"`
 fi
 
-AC_CONFIG_FILES([config_host.mk Makefile lo.xcent solenv/inc/minor.mk instsetoo_native/util/openoffice.lst])
+AC_CONFIG_FILES([config_host.mk Makefile lo.xcent instsetoo_native/util/openoffice.lst])
+# Unlike AC_CONFIG_HEADERS, AC_CONFIG_FILES updates the target file even if the contents
+# would be unchanged, avoid that.
+AC_CONFIG_FILES([solenv/inc/minor.mk.tmp:solenv/inc/minor.mk.in],
+    [
+    AC_MSG_NOTICE([creating solenv/inc/minor.mk])
+    if diff solenv/inc/minor.mk.tmp solenv/inc/minor.mk >/dev/null 2>&1 ; then
+        AC_MSG_NOTICE([solenv/inc/minor.mk is unchanged])
+    else
+        cp -f solenv/inc/minor.mk.tmp solenv/inc/minor.mk
+    fi
+    ])
 AC_CONFIG_HEADERS([config_host/config_clang.h])
 AC_CONFIG_HEADERS([config_host/config_global.h])
 AC_CONFIG_HEADERS([config_host/config_graphite.h])
diff --git a/solenv/inc/.gitignore b/solenv/inc/.gitignore
index b8fab61..ef9372e 100644
--- a/solenv/inc/.gitignore
+++ b/solenv/inc/.gitignore
@@ -1 +1,2 @@
-/minor.mk
\ No newline at end of file
+/minor.mk
+/minor.mk.tmp


More information about the Libreoffice-commits mailing list