ICU-1876 try to compile to detect iostream

X-SVN-Rev: 8528
This commit is contained in:
Yves Arrouye 2002-04-26 18:45:17 +00:00
parent 77b6719b9b
commit f6c3d57ffc
2 changed files with 202 additions and 215 deletions

401
icu4c/source/configure vendored

File diff suppressed because it is too large Load diff

View file

@ -4,7 +4,7 @@ dnl Copyright (c) 1999-2000, International Business Machines Corporation and
dnl others. All Rights Reserved.
dnl Stephen F. Booth, heavily modified by Yves and others
dnl $Id: configure.in,v 1.166 2002/04/18 21:00:20 grhoten-oss Exp $
dnl $Id: configure.in,v 1.167 2002/04/26 18:45:16 yves-oss Exp $
dnl Process this file with autoconf to produce a configure script
AC_INIT(common/unicode/utypes.h)
@ -15,25 +15,22 @@ AC_SUBST(PACKAGE)
AC_MSG_CHECKING(for ICU version numbers)
changequote(<<, >>)dnl
dnl Get the ICU version from uversion.h or other headers
geticuversion() {
sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"
[sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"]
}
VERSION=`geticuversion $srcdir/common/unicode/uversion.h`
if test x"$VERSION" = x; then
VERSION=`geticuversion $srcdir/common/unicode/*.h`
if test x"$VERSION" = x; then
AC_MSG_ERROR(Cannot determine ICU version number from header files)
AC_MSG_ERROR([Cannot determine ICU version number from header files])
fi
fi
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=`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)
@ -320,7 +317,10 @@ if test x$streams != xnone
then
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_CHECK_HEADER(iostream)
AC_MSG_CHECKING([iostream usability])
AC_TRY_COMPILE([#include <iostream>],[],
[ac_cv_header_iostream=yes],[ac_cv_header_iostream=no])
AC_MSG_RESULT($ac_cv_header_iostream)
if test $ac_cv_header_iostream = yes
then
U_IOSTREAM_SOURCE=199711