Browse Source

autotools: support specifying the Unicode/UCD version

master
Reece H. Dunn 11 years ago
parent
commit
cc2a1759bd
2 changed files with 15 additions and 1 deletions
  1. 1
    1
      Makefile.am
  2. 14
    0
      configure.ac

+ 1
- 1
Makefile.am 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
- 0
configure.ac 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}
])

Loading…
Cancel
Save