From cc2a1759bd54d3322b858b8b7274de838bf8fe12 Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Wed, 16 Oct 2013 21:02:55 +0100 Subject: [PATCH] autotools: support specifying the Unicode/UCD version --- Makefile.am | 2 +- configure.ac | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 280bbecd..e823dec9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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: diff --git a/configure.ac b/configure.ac index 0df786e3..d40123b0 100644 --- a/configure.ac +++ b/configure.ac @@ -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} ])