ICU-208 don't use AC_SUBST() w/ quotes changed, it doesn't work!?

X-SVN-Rev: 2679
This commit is contained in:
Yves Arrouye 2000-10-13 20:40:38 +00:00
parent 2c7da70f68
commit f803c69a2b
2 changed files with 3 additions and 2 deletions

View File

@ -555,11 +555,11 @@ echo $ac_n "checking for ICU version numbers""... $ac_c" 1>&6
echo "configure:556: checking for ICU version numbers" >&5
VERSION=`sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' $srcdir/common/unicode/utypes.h`
LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`
LIB_VERSION_MAJOR=`echo $LIB_VERSION | sed 's/\..*//'`
echo "$ac_t""release $VERSION, library $LIB_VERSION" 1>&6
UNICODE_VERSION="3.0.0"
@ -3880,6 +3880,7 @@ s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@PACKAGE@%$PACKAGE%g
s%@VERSION@%$VERSION%g
s%@LIB_VERSION@%$LIB_VERSION%g
s%@LIB_VERSION_MAJOR@%$LIB_VERSION_MAJOR%g
s%@UNICODE_VERSION@%$UNICODE_VERSION%g

View File

@ -16,13 +16,13 @@ AC_MSG_CHECKING(for ICU version numbers)
dnl Get the ICU version from utypes.h
changequote(<<, >>)dnl
VERSION=`sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' $srcdir/common/unicode/utypes.h`
AC_SUBST(VERSION)
dnl Compute a reasonable library version from the release version. This is
dnl very bad, but that's wanted... We want to make sure that the LIB_VERSION
dnl has at least a dot in it, so we'll add a .0 if needed.
LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`
LIB_VERSION_MAJOR=`echo $LIB_VERSION | sed 's/\..*//'`
changequote([, ])dnl
AC_SUBST(VERSION)
AC_SUBST(LIB_VERSION)
AC_SUBST(LIB_VERSION_MAJOR)
AC_MSG_RESULT([release $VERSION, library $LIB_VERSION])