ICU-3 add the PIC flags variables if ENABLE_SHARED is non-null

X-SVN-Rev: 2546
This commit is contained in:
Yves Arrouye 2000-10-02 16:34:03 +00:00
parent 324d161aa8
commit 0e3e4ebdd0
2 changed files with 153 additions and 134 deletions

278
icu4c/source/configure vendored

File diff suppressed because it is too large Load diff

View file

@ -17,6 +17,9 @@ AC_SUBST(VERSION_MAJOR)
UNICODE_VERSION="3.0.0"
AC_SUBST(UNICODE_VERSION)
thedatadir=`eval echo $datadir`
AC_SUBST(thedatadir)
dnl Shouldn't need the AC_SUBST
CPPFLAGS="${CPPFLAGS} -I."
AC_SUBST(CPPFLAGS)
@ -106,6 +109,12 @@ AC_ARG_ENABLE(shared,
[ENABLE_SHARED=YES]
)
AC_SUBST(ENABLE_SHARED)
if test x$ENABLE_SHARED = xYES
then
CPPFLAGS="$CPPFLAGS \$(PICCPPFLAGS)"
CLAGS="$CFLAGS \$(PICFLAGS)"
CXXFLAGS="$CXXFLAGS \$(PICFLAGS)"
fi
dnl Check whether to build static libraries
AC_ARG_ENABLE(static,