diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-09-30 16:23:22 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-09-30 16:23:22 +0300 |
commit | 1a029357bbb73896b60689034662bbba7f88bfe5 (patch) | |
tree | 8bbb3f8d3ab2bfc2c1117f9734e4bd8be695898f | |
parent | c4f3145f297eef0fe3032fb7efb5b78b87fd4933 (diff) | |
download | libmicrohttpd-1a029357bbb73896b60689034662bbba7f88bfe5.tar.gz libmicrohttpd-1a029357bbb73896b60689034662bbba7f88bfe5.zip |
Prevent useless run of po/configure when nothing was changed.
-rw-r--r-- | Makefile.am | 8 | ||||
-rw-r--r-- | configure.ac | 14 |
2 files changed, 18 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am index a95daeb0..b67b3cb3 100644 --- a/Makefile.am +++ b/Makefile.am | |||
@@ -65,8 +65,12 @@ clean-local: | |||
65 | po/Makefile: $(srcdir_po)/Makefile.in.in $(srcdir_po)/Makevars $(srcdir_po)/POTFILES.in po/config.status | 65 | po/Makefile: $(srcdir_po)/Makefile.in.in $(srcdir_po)/Makevars $(srcdir_po)/POTFILES.in po/config.status |
66 | @$(am__cd) po && @SHELL@ ./config.status ./Makefile.in po-directories | 66 | @$(am__cd) po && @SHELL@ ./config.status ./Makefile.in po-directories |
67 | 67 | ||
68 | # Regenerate po/config.status if this Makefile is changed as configure parameters may be updated | 68 | po/configargs.stamp: |
69 | po/config.status: $(srcdir_po)/configure Makefile | 69 | @$(MAKE) $(AM_MAKEFLAGS) $(top_builddir)/config.status && \ |
70 | @SHELL@ ./config.status po/configargs.stamp | ||
71 | |||
72 | # Regenerate po/config.status if 'po/configure' was updated or 'configure' parameters was changed | ||
73 | po/config.status: $(srcdir_po)/configure po/configargs.stamp | ||
70 | @$(MKDIR_P) po && $(am__cd) po && echo "cd po && @SHELL@ ./configure @ac_configure_args@" && \ | 74 | @$(MKDIR_P) po && $(am__cd) po && echo "cd po && @SHELL@ ./configure @ac_configure_args@" && \ |
71 | @SHELL@ $(abs_top_srcdir)/po/configure @ac_configure_args@ --srcdir=$(abs_top_srcdir)/po \ | 75 | @SHELL@ $(abs_top_srcdir)/po/configure @ac_configure_args@ --srcdir=$(abs_top_srcdir)/po \ |
72 | --disable-option-checking --no-create --no-recursion | 76 | --disable-option-checking --no-create --no-recursion |
diff --git a/configure.ac b/configure.ac index 2658a6ee..683347ad 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1726,8 +1726,7 @@ AC_SUBST(LDFLAGS) | |||
1726 | AC_SUBST([ac_configure_args]) | 1726 | AC_SUBST([ac_configure_args]) |
1727 | AC_SUBST([EMPTY_VAR], [[]]) | 1727 | AC_SUBST([EMPTY_VAR], [[]]) |
1728 | 1728 | ||
1729 | AC_CONFIG_FILES([ | 1729 | AC_CONFIG_FILES([libmicrohttpd.pc |
1730 | libmicrohttpd.pc | ||
1731 | w32/common/microhttpd_dll_res_vc.rc | 1730 | w32/common/microhttpd_dll_res_vc.rc |
1732 | po/configure.acT:po/configure.ac.in | 1731 | po/configure.acT:po/configure.ac.in |
1733 | Makefile | 1732 | Makefile |
@@ -1743,6 +1742,17 @@ src/examples/Makefile | |||
1743 | src/testcurl/Makefile | 1742 | src/testcurl/Makefile |
1744 | src/testcurl/https/Makefile | 1743 | src/testcurl/https/Makefile |
1745 | src/testzzuf/Makefile]) | 1744 | src/testzzuf/Makefile]) |
1745 | AC_CONFIG_COMMANDS([po/configargs.stamp], [ | ||
1746 | $as_echo "$ac_configure_args" > "$ac_tmp/configargs.stamp" || AC_MSG_ERROR([[cannot create file $ac_tmp/configargs.stamp]]) | ||
1747 | AS_IF([[cmp -s "po/configargs.stamp" "$ac_tmp/configargs.stamp" >/dev/null 2>&1]], | ||
1748 | [AC_MSG_NOTICE([[po/configargs.stamp is unchanged]])], | ||
1749 | [ | ||
1750 | rm -f po/configargs.stamp | ||
1751 | mv "$ac_tmp/configargs.stamp" po/configargs.stamp || AC_MSG_ERROR([[cannot create file $ac_tmp/configargs.stamp]]) | ||
1752 | AC_MSG_NOTICE([[po/configargs.stamp is updated]]) | ||
1753 | ] | ||
1754 | ) | ||
1755 | ], [ac_configure_args="$ac_configure_args"]) | ||
1746 | AC_OUTPUT | 1756 | AC_OUTPUT |
1747 | 1757 | ||
1748 | # Finally: summary | 1758 | # Finally: summary |