autotools: support specifying the Unicode/UCD version

This commit is contained in:
Reece H. Dunn
2013-10-16 21:02:55 +01:00
parent fb0e77ff5d
commit cc2a1759bd
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ EXTRA_DIST += ChangeLog
############################# Unicode Character Database ######################
UCD_VERSION=6.2.0
UCD_VERSION=@UCD_VERSION@
UCD_ROOTDIR=data/ucd
data/language-subtag-registry:
+14
View File
@@ -19,6 +19,18 @@ AC_PROG_CXX
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
dnl ================================================================
dnl UCD data configuration.
dnl ================================================================
AC_ARG_WITH([unicode-version],
[AS_HELP_STRING([--unicode-version], [Unicode version to support @<:@default=6.2.0@:>@])],
[AS_IF([test x"$withval" != x],
[UCD_VERSION="$withval"])],
[UCD_VERSION="6.2.0"])
AC_SUBST(UCD_VERSION)
dnl ================================================================
dnl Generate output.
dnl ================================================================
@@ -34,4 +46,6 @@ AC_MSG_NOTICE([
Compiler: ${CXX}
Compiler flags: ${CXXFLAGS}
Unicode version: ${UCD_VERSION}
])