mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 23:10:40 +00:00
ICU-2461 Initial port of ICU to HP-UX with gcc.
X-SVN-Rev: 10141
This commit is contained in:
parent
cc93a87ab1
commit
8d00ea2329
4 changed files with 341 additions and 197 deletions
12
icu4c/source/aclocal.m4
vendored
12
icu4c/source/aclocal.m4
vendored
|
@ -37,10 +37,14 @@ alpha*-*-linux-gnu)
|
|||
fi ;;
|
||||
*-sequent-*) icu_cv_host_frag=mh-ptx ;;
|
||||
*-*-hpux*)
|
||||
case "$CXX" in
|
||||
*aCC) icu_cv_host_frag=mh-hpux-acc ;;
|
||||
*CC) icu_cv_host_frag=mh-hpux-cc ;;
|
||||
esac;;
|
||||
if test "$ac_cv_prog_gcc" = yes; then
|
||||
icu_cv_host_frag=mh-hpux-gcc
|
||||
else
|
||||
case "$CXX" in
|
||||
*aCC) icu_cv_host_frag=mh-hpux-acc ;;
|
||||
*CC) icu_cv_host_frag=mh-hpux-cc ;;
|
||||
esac
|
||||
fi ;;
|
||||
*-*ibm-openedition*|*-*-os390*) icu_cv_host_frag=mh-os390 ;;
|
||||
*-*-os400*) icu_cv_host_frag=mh-os400 ;;
|
||||
*-apple-rhapsody*) icu_cv_host_frag=mh-darwin ;;
|
||||
|
|
81
icu4c/source/config/mh-hpux-gcc
Normal file
81
icu4c/source/config/mh-hpux-gcc
Normal file
|
@ -0,0 +1,81 @@
|
|||
## -*-makefile-*-
|
||||
## HPUX/gcc specific setup
|
||||
##
|
||||
## $Id: mh-hpux-gcc,v 1.1 2002/11/01 19:12:24 grhoten-oss Exp $
|
||||
|
||||
## Commands to generate dependency files
|
||||
GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS)
|
||||
GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS)
|
||||
|
||||
## Flags for position independent code
|
||||
SHAREDLIBCFLAGS = -fPIC
|
||||
SHAREDLIBCXXFLAGS = -fPIC
|
||||
SHAREDLIBCPPFLAGS = -DPIC
|
||||
|
||||
## Common 'default' path to ensure the sanity of users. Search the current
|
||||
## directory, at least.
|
||||
LD_DEFAULTPATH= -Wl,+b,.:'$$'ORIGIN/
|
||||
|
||||
# Get some handy functions defined properly
|
||||
DEFS += -D_HPUX_SOURCE -D_POSIX_C_SOURCE=199506L
|
||||
|
||||
## Commands to link
|
||||
## For aCC, use the C++ linker so that __shlinit gets defined
|
||||
LINK.c= $(CXX) $(DEFS) $(LDFLAGS) -Wl,+s $(LD_DEFAULTPATH)
|
||||
LINK.cc= $(CXX) $(DEFS) $(LDFLAGS) -Wl,+s $(LD_DEFAULTPATH)
|
||||
|
||||
## Commands to make a shared library
|
||||
SHLIB.c= $(CC) $(DEFS) $(CFLAGS) $(LDFLAGS) $(SHAREDLIBCXXFLAGS) -shared -Wl,+s $(LD_DEFAULTPATH)
|
||||
SHLIB.cc= $(CXX) $(DEFS) $(CXXFLAGS) $(LDFLAGS) $(SHAREDLIBCXXFLAGS) -shared -Wl,+s $(LD_DEFAULTPATH)
|
||||
|
||||
## Compiler switch to embed a runtime search path
|
||||
LD_RPATH= -Wl,+b,
|
||||
LD_RPATH_PRE=
|
||||
|
||||
## Compiler switch to embed a library name
|
||||
LD_SONAME = -Wl,+h,$(MIDDLE_SO_TARGET)
|
||||
|
||||
## Environment variable to set a runtime search path
|
||||
LDLIBRARYPATH_ENVVAR = SHLIB_PATH
|
||||
|
||||
## Shared object suffix
|
||||
SO= sl
|
||||
## Non-shared intermediate object suffix
|
||||
STATIC_O = o
|
||||
|
||||
## Compilation rules
|
||||
%.$(STATIC_O): $(srcdir)/%.c
|
||||
$(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
|
||||
%.o: $(srcdir)/%.c
|
||||
$(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
|
||||
|
||||
%.$(STATIC_O): $(srcdir)/%.cpp
|
||||
$(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
|
||||
%.o: $(srcdir)/%.cpp
|
||||
$(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
|
||||
|
||||
../data/%.o: ../data/%.c
|
||||
$(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
|
||||
|
||||
## Dependency rules
|
||||
%.d : $(srcdir)/%.c
|
||||
@echo "Generating dependency information for $<"
|
||||
@$(SHELL) -ec '$(GEN_DEPS.c) $< \
|
||||
| sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
|
||||
[ -s $@ ] || rm -f $@'
|
||||
|
||||
%.d : $(srcdir)/%.cpp
|
||||
@echo "Generating dependency information for $<"
|
||||
@$(SHELL) -ec '$(GEN_DEPS.cc) $< \
|
||||
| sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
|
||||
[ -s $@ ] || rm -f $@'
|
||||
|
||||
## Versioned libraries rules
|
||||
|
||||
%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
|
||||
$(RM) $@ && ln -s $< $@
|
||||
%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
|
||||
$(RM) $@ && ln -s $*.$(SO).$(SO_TARGET_VERSION) $@
|
||||
|
||||
## End HPUX/gcc specific setup
|
||||
|
411
icu4c/source/configure
vendored
411
icu4c/source/configure
vendored
File diff suppressed because it is too large
Load diff
|
@ -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.176 2002/10/30 22:05:35 alan Exp $
|
||||
dnl $Id: configure.in,v 1.177 2002/11/01 19:12:24 grhoten-oss Exp $
|
||||
|
||||
dnl Process this file with autoconf to produce a configure script
|
||||
AC_INIT(common/unicode/utypes.h)
|
||||
|
@ -831,21 +831,23 @@ dnl static constructors in C++ libs. Hack around that here
|
|||
dnl by renaming some .c files to .cpp
|
||||
case "${host}" in
|
||||
*-*-hpux*)
|
||||
for file in samples/date/date \
|
||||
samples/cal/cal test/cintltst/cintltst \
|
||||
tools/makeconv/makeconv tools/genrb/genrb \
|
||||
tools/genrb/derb tools/genccode/genccode \
|
||||
tools/gencmn/gencmn tools/gencmn/decmn \
|
||||
tools/gencnval/gencnval tools/gennorm/gennorm \
|
||||
tools/gennames/gennames tools/gentest/gentest \
|
||||
tools/pkgdata/pkgdata tools/genprops/genprops
|
||||
do
|
||||
if test -f $file.c; then
|
||||
mv $file.c $file.cpp
|
||||
else
|
||||
echo "# $file.c does not exist or is already renamed [warning]"
|
||||
fi
|
||||
done
|
||||
if test "$ac_cv_prog_gcc" != yes; then
|
||||
for file in samples/date/date \
|
||||
samples/cal/cal test/cintltst/cintltst \
|
||||
tools/makeconv/makeconv tools/genrb/genrb \
|
||||
tools/genrb/derb tools/genccode/genccode \
|
||||
tools/gencmn/gencmn tools/gencmn/decmn \
|
||||
tools/gencnval/gencnval tools/gennorm/gennorm \
|
||||
tools/gennames/gennames tools/gentest/gentest \
|
||||
tools/pkgdata/pkgdata tools/genprops/genprops
|
||||
do
|
||||
if test -f $file.c; then
|
||||
mv $file.c $file.cpp
|
||||
else
|
||||
echo "# $file.c does not exist or is already renamed [warning]"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue