1.1 --- a/common/autoconf/jdk-options.m4 Sun Dec 08 20:13:39 2013 -0800 1.2 +++ b/common/autoconf/jdk-options.m4 Mon Dec 16 13:56:08 2013 +0100 1.3 @@ -423,6 +423,12 @@ 1.4 AC_MSG_ERROR([Update version must have a value]) 1.5 elif test "x$with_update_version" != x; then 1.6 JDK_UPDATE_VERSION="$with_update_version" 1.7 + # On macosx 10.7, it's not possible to set --with-update-version=0X due 1.8 + # to a bug in expr (which reduces it to just X). To work around this, we 1.9 + # always add a 0 to one digit update versions. 1.10 + if test "${#JDK_UPDATE_VERSION}" = "1"; then 1.11 + JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 1.12 + fi 1.13 fi 1.14 1.15 AC_ARG_WITH(user-release-suffix, [AS_HELP_STRING([--with-user-release-suffix],