summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hutchinson <qyot27@gmail.com>2013-07-10 05:48:19 -0400
committerwm4 <wm4@nowhere>2013-07-11 09:27:01 +0200
commitd176f9571f22bc3b007f97544732698cec85a36e (patch)
tree807801b349fe3a35c740e0943598d73200a1fc2e
parentb5d2ba4a63654bc9f264ee66a5fb1abf0eaddf8a (diff)
downloadmpv-d176f9571f22bc3b007f97544732698cec85a36e.tar.bz2
mpv-d176f9571f22bc3b007f97544732698cec85a36e.tar.xz
build: make the "built on" report opt-out
-rwxr-xr-xconfigure14
-rw-r--r--core/version.c6
2 files changed, 19 insertions, 1 deletions
diff --git a/configure b/configure
index b6ed81f603..9f4439dfae 100755
--- a/configure
+++ b/configure
@@ -379,6 +379,7 @@ Miscellaneous options:
--enable-static build a statically linked binary
--with-install=PATH path to a custom install program
--disable-manpage do not build and install manpage [auto]
+ --disable-build-date do not include binary compile time
Advanced options:
--enable-shm enable shm [autodetect]
@@ -487,6 +488,7 @@ _priority=no
def_dos_paths="#define HAVE_DOS_PATHS 0"
def_priority="#undef CONFIG_PRIORITY"
_build_man=auto
+_build_date=yes
for ac_option do
case "$ac_option" in
--help|-help|-h)
@@ -708,6 +710,8 @@ for ac_option do
--enable-manpage) _build_man=yes ;;
--disable-manpage) _build_man=no ;;
+ --enable-build-date) _build_date=yes ;;
+ --disable-build-date) _build_date=no ;;
*)
echo "Unknown parameter: $ac_option" >&2
exit 1
@@ -902,6 +906,16 @@ else
fi
echores "$_build_man"
+echocheck "whether to print binary build date"
+if test "$_build_date" = yes ; then
+ _build_yes=yes
+else
+ _build_date=no
+ extra_cflags="$extra_cflags -DNO_BUILD_TIMESTAMPS"
+fi
+echores "$_build_date"
+
+
TMPC="$mplayer_tmpdir/tmp.c"
TMPCPP="$mplayer_tmpdir/tmp.cpp"
diff --git a/core/version.c b/core/version.c
index 7e747044a3..23a0c59bc3 100644
--- a/core/version.c
+++ b/core/version.c
@@ -17,6 +17,10 @@
*/
#include "version.h"
+#ifdef NO_BUILD_TIMESTAMPS
+#undef BUILDDATE
+#define BUILDDATE "UNKNOWN"
+#endif
const char *mplayer_version = "mpv " VERSION;
-const char *mplayer_builddate = BUILDDATE; \ No newline at end of file
+const char *mplayer_builddate = BUILDDATE;