common/autoconf/jdk-options.m4
changeset 29162 a488f9b34221
parent 29161 11faf16b91c8
parent 27584 01a719b65d1e
child 29305 4ddc6faf7842
--- a/common/autoconf/jdk-options.m4	Fri Nov 21 11:24:55 2014 -0800
+++ b/common/autoconf/jdk-options.m4	Fri Nov 21 14:55:59 2014 -0800
@@ -552,7 +552,15 @@
   AC_SUBST(MACOSX_BUNDLE_NAME_BASE)
   AC_SUBST(MACOSX_BUNDLE_ID_BASE)
 
-  COPYRIGHT_YEAR=`date +'%Y'`
+  AC_ARG_WITH(copyright-year, [AS_HELP_STRING([--with-copyright-year],
+      [Set copyright year value for build @<:@current year@:>@])])
+  if test "x$with_copyright_year" = xyes; then
+    AC_MSG_ERROR([Copyright year must have a value])
+  elif test "x$with_copyright_year" != x; then
+    COPYRIGHT_YEAR="$with_copyright_year"
+  else
+    COPYRIGHT_YEAR=`date +'%Y'`
+  fi
   AC_SUBST(COPYRIGHT_YEAR)
 
   if test "x$JDK_UPDATE_VERSION" != x; then