diff --git a/icu4c/source/aclocal.m4 b/icu4c/source/aclocal.m4 index 540a4209924..f2bc0193508 100644 --- a/icu4c/source/aclocal.m4 +++ b/icu4c/source/aclocal.m4 @@ -22,6 +22,7 @@ case "${host}" in *-*-linux*) icu_cv_host_frag=$srcdir/config/mh-linux ;; *-*-freebsd*) icu_cv_host_frag=$srcdir/config/mh-freebsd ;; *-*-aix*) icu_cv_host_frag=$srcdir/config/mh-aix ;; +*-sequent-*) icu_cv_host_frag=$srcdir/config/mh-ptx ;; *-*-hpux*) case "$CXX" in *aCC) icu_cv_host_frag=$srcdir/config/mh-hpux-acc ;; diff --git a/icu4c/source/config/mh-ptx b/icu4c/source/config/mh-ptx new file mode 100644 index 00000000000..f441b51481e --- /dev/null +++ b/icu4c/source/config/mh-ptx @@ -0,0 +1,56 @@ +## -*-makefile-*- +## PTX-specific setup +## Copyright (c) 1999-2000, International Business Machines Corporation and +## others. All Rights Reserved. + +## Commands to generate dependency files +GEN_DEPS.c= $(CC) -Kthread -KPIC -c $(DEFS) $(CPPFLAGS) +GEN_DEPS.cc= $(CXX) -M $(DEFS) $(CPPFLAGS) + +## Commands to compile +COMPILE.c= $(CC) -Kthread -KPIC $(DEFS) $(CPPFLAGS) $(CFLAGS) -c +COMPILE.cc= $(CXX) -Kthread -KPIC $(DEFS) $(CPPFLAGS) $(CXXFLAGS) -c + +## Commands to link +#LINK.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) +LINK.c= $(CXX) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -lm -lgen +LINK.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -lm -lgen + +## Commands to make a shared library +SHLIB.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -DPTX -G +SHLIB.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -DPTX -G + +## Compiler switch to embed a runtime search path +LD_RPATH= -R +LD_RPATH_PRE= + +## Shared object suffix +SO= so + +## Link commands to link to ICU libs +LIBICU-UC= -L$(top_builddir)/common -licu-uc +LIBICU-I18N= -L$(top_builddir)/i18n -licu-i18n +LIBCTESTFW= -L$(top_builddir)/tools/ctestfw -lctestfw +LIBICU-TOOLUTIL=-L$(top_builddir)/tools/toolutil -licu-toolutil + +## Compilation rules +%.o : $(srcdir)/%.c + $(COMPILE.c) -o $@ $< + +%.o : $(srcdir)/%.cpp + $(COMPILE.cc) -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) -o $@ $< \ + | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \ + [ -s $@ ] || rm -f $@' + +## End Ptx-specific setup diff --git a/icu4c/source/configure b/icu4c/source/configure index 5c8f98321b0..05d995a2f1b 100755 --- a/icu4c/source/configure +++ b/icu4c/source/configure @@ -2687,6 +2687,7 @@ case "${host}" in *-*-linux*) platform=LINUX ;; *-*-freebsd*) platform=LINUX ;; *-*-aix*) platform=AIX ;; + *-sequent-*) platform=PTX ;; *-*-hpux*) platform=HPUX ;; *-*-irix*) platform=IRIX ;; *-*-os390*) platform=OS390 ;; @@ -2702,6 +2703,7 @@ case "${host}" in *-*-linux*) ld_rpath_suf=" " ;; *-*-freebsd*) ld_rpath_suf=" " ;; *-*-aix*) ld_rpath_suf="" ;; + *-sequent-*) ld_rpath_suf="" ;; *-*-hpux*) ld_rpath_suf=":" ;; *-*-irix*) ld_rpath_suf=" " ;; *-*-os390*) ld_rpath_suf="" ;; diff --git a/icu4c/source/runConfigureICU b/icu4c/source/runConfigureICU index 04d8307d7fa..9b67785f30b 100755 --- a/icu4c/source/runConfigureICU +++ b/icu4c/source/runConfigureICU @@ -19,6 +19,7 @@ usage() echo " 8. 'HP/UX11ACC' if you are using Advanced C++ compiler on HP-UX11" echo " 9. 'AIX4.3xlC' if you are using xlC on AIX4.3" echo " 10. 'SOL2.7CC'if you are using native CC compiler on Solaris" + echo " 11. 'PTX' if you are using c++ on Dynix/PTX v4.5" } @@ -95,6 +96,14 @@ case $platform in CC=cc; export CC CXX=/opt/aCC/bin/aCC; export CXX ./configure;; + PTX) + echo Running configure for PTX using c++ compiler ... + CC=cc; export CC + CXX=c++; export CXX + if test ${XMLINSTALL}o = "o"; then + XMLINSTALL=/usr/local; export XMLINSTALL + fi + ./configure --prefix=$XMLINSTALL;; *) echo I do not recognize the option \"$platform\". Please type ${0} -h for help. exit 0;;