You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ab...@locus.apache.org on 2000/04/04 22:09:57 UTC

cvs commit: xml-xerces/c/src runConfigure Makefile.incl configure

abagchi     00/04/04 13:09:57

  Modified:    c/src    runConfigure Makefile.incl configure
  Log:
  Added PTX support
  
  Revision  Changes    Path
  1.26      +13 -2     xml-xerces/c/src/runConfigure
  
  Index: runConfigure
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/runConfigure,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- runConfigure	2000/04/03 19:26:53	1.25
  +++ runConfigure	2000/04/04 20:09:56	1.26
  @@ -56,6 +56,9 @@
   #
   #
   # $Log: runConfigure,v $
  +# Revision 1.26  2000/04/04 20:09:56  abagchi
  +# Added PTX support
  +#
   # Revision 1.25  2000/04/03 19:26:53  abagchi
   # Included changes for SGI IRIX 6.5
   #
  @@ -196,9 +199,10 @@
       echo "runConfigure: Helper script to run \"configure\" for one of the supported platforms"
       echo "Usage: runConfigure \"options\""
       echo "       where options may be any of the following:"
  -    echo "       -p <platform> (accepts 'aix', 'linux', 'solaris', 'hp-10', 'hp-11', 'unixware', 'os400', 'irix' )"
  +    echo "       -p <platform> (accepts 'aix', 'linux', 'solaris',
  +'hp-10', 'hp-11', 'unixware', 'os400', 'irix', 'ptx' )"
       echo "       -c <C compiler name> (e.g. gcc, cc, xlc_r, icc)"
  -    echo "       -x <C++ compiler name> (e.g. g++, CC, xlC_r, icc)"
  +    echo "       -x <C++ compiler name> (e.g. g++, CC, xlC_r, icc, c++)"
       echo "       -d (specifies that you want to build debug version)"
       echo "       -m <message loader> can be 'inmem', 'icu', 'MsgFile' or 'iconv'"
       echo "       -n <net accessor> can be 'fileonly', 'libwww', 'socket'"
  @@ -367,6 +371,11 @@
       fi
   elif test $platform = "aix"; then
       threadingLibs="-lpthreads_compat -lpthreads"
  +elif test $platform = "ptx"; then
  +    threadingLibs=" "
  +    if test -z $XMLINSTALL; then
  +        XMLINSTALL=$ICUROOT
  +    fi
   elif test $platform = "hp-10"; then
       threadingLibs="-lcma"
       threadingDefines="-DXML_USE_DCE"
  @@ -527,6 +536,8 @@
   rm -f config.status
   if test $platform = "os400"; then
   ./configure --host AS400-OS400
  +elif test $platform = "ptx"; then
  +./configure --prefix=$XMLINSTALL
   else
   ./configure
   fi
  
  
  
  1.23      +21 -0     xml-xerces/c/src/Makefile.incl
  
  Index: Makefile.incl
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/Makefile.incl,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- Makefile.incl	2000/04/03 19:26:54	1.22
  +++ Makefile.incl	2000/04/04 20:09:56	1.23
  @@ -55,6 +55,9 @@
   #
   #
   # $Log: Makefile.incl,v $
  +# Revision 1.23  2000/04/04 20:09:56  abagchi
  +# Added PTX support
  +#
   # Revision 1.22  2000/04/03 19:26:54  abagchi
   # Included changes for SGI IRIX 6.5
   #
  @@ -236,6 +239,24 @@
       endif
     endif
     SHLIBSUFFIX=.so
  +endif
  +
  +#================= PTX SPECIFIC OPTIONS ===========================
  +ifeq (${PLATFORM}, PTX)
  +
  +PLATFORM_CPP_COMPILER = c++
  +PLATFORM_C_COMPILER = cc
  +ifdef ICUROOT
  +  ALLLIBS = ${LIBS} -L${ICUROOT}/lib -lm -lgen
  +else
  +  ALLLIBS = ${LIBS} -lm -lgen
  +endif
  +OBJ_OUT=${ALL_OBJECTS_DIR}/
  +PLATFORM_COMPILE_OPTIONS = -KPIC -Kthread -D${PLATFORM}
  +MAKE_SHARED = ${PLATFORM_CPP_COMPILER} -D${PLATFORM} -G
  +MAKE_SHARED_C = ${PLATFORM_C_COMPILER} -D${PLATFORM} -G
  +EXTRA_LINK_OPTIONS = -lm -lgen
  +SHLIBSUFFIX=.so
   endif
   
   #================= AIX SPECIFIC OPTIONS ===========================
  
  
  
  1.17      +122 -3    xml-xerces/c/src/configure
  
  Index: configure
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/configure,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- configure	2000/03/20 23:48:50	1.16
  +++ configure	2000/04/04 20:09:56	1.17
  @@ -1,7 +1,7 @@
   #! /bin/sh
   
   # Guess values for system-dependent variables and create Makefiles.
  -# Generated automatically using autoconf version 2.13 
  +# Generated automatically using autoconf version 2.13
   # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
   #
   # This configure script is free software; the Free Software Foundation
  @@ -1304,6 +1304,7 @@
           *-*-linux*)     platform=LINUX ;;
           *-*-irix*)      platform=IRIX ;;
           *-*-aix*)       platform=AIX ;;
  +        *-sequent-*)    platform=PTX ;;
           *-*-hp*)        platform=HPUX ;
                           case "${host}" in
                               *-*-hpux11*)  osver=HPUX11;;
  @@ -1416,8 +1417,8 @@
   
   trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
   
  -# Transform confdefs.h into DEFS.
  -# Protect against shell expansion while executing Makefile rules.
  +DEFS=-DHAVE_CONFIG_H
  +
   # Protect against Makefile macro expansion.
   cat > conftest.defs <<\EOF
   s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  @@ -1426,7 +1427,16 @@
   s%\]%\\&%g
   s%\$%$$%g
   EOF
  +if test "$platform" = "OS390"; then
  +# OS390 - EBCDIC NL is '\025'
  +DEFS=`sed -f conftest.defs confdefs.h | tr '\025' ' '`
  +else
  +if test "$platform" = "OS400"; then
  +DEFS=`sed -f conftest.defs confdefs.h | tr '\n' ' '`
  +else
   DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  +fi
  +fi
   rm -f conftest.defs
   
   
  @@ -1481,6 +1491,7 @@
   util/Platforms/OS400/Makefile \
   util/Platforms/IRIX/Makefile \
   util/Platforms/UnixWare/Makefile \
  +util/Platforms/PTX/Makefile \
   util/Compilers/Makefile \
   util/MsgLoaders/InMemory/Makefile \
   util/MsgLoaders/ICU/Makefile \
  @@ -1606,6 +1617,7 @@
   util/Platforms/OS400/Makefile \
   util/Platforms/IRIX/Makefile \
   util/Platforms/UnixWare/Makefile \
  +util/Platforms/PTX/Makefile \
   util/Compilers/Makefile \
   util/MsgLoaders/InMemory/Makefile \
   util/MsgLoaders/ICU/Makefile \
  @@ -1676,6 +1688,113 @@
   " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
   fi; done
   rm -f conftest.s*
  +
  +# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  +# NAME is the cpp macro being defined and VALUE is the value it is being given.
  +#
  +# ac_d sets the value in "#define NAME VALUE" lines.
  +ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
  +ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
  +ac_dC='\3'
  +ac_dD='%g'
  +# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  +ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
  +ac_uB='\([ 	]\)%\1#\2define\3'
  +ac_uC=' '
  +ac_uD='\4%g'
  +# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  +ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
  +ac_eB='$%\1#\2define\3'
  +ac_eC=' '
  +ac_eD='%g'
  +
  +if test "${CONFIG_HEADERS+set}" != set; then
  +EOF
  +cat >> $CONFIG_STATUS <<EOF
  +  CONFIG_HEADERS="conf.h"
  +EOF
  +cat >> $CONFIG_STATUS <<\EOF
  +fi
  +for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  +  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  +  case "$ac_file" in
  +  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  +       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  +  *) ac_file_in="${ac_file}.in" ;;
  +  esac
  +
  +  echo creating $ac_file
  +
  +  rm -f conftest.frag conftest.in conftest.out
  +  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  +  cat $ac_file_inputs > conftest.in
  +
  +EOF
  +
  +# Transform confdefs.h into a sed script conftest.vals that substitutes
  +# the proper values into config.h.in to produce config.h.  And first:
  +# Protect against being on the right side of a sed subst in config.status.
  +# Protect against being in an unquoted here document in config.status.
  +rm -f conftest.vals
  +cat > conftest.hdr <<\EOF
  +s/[\\&%]/\\&/g
  +s%[\\$`]%\\&%g
  +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  +s%ac_d%ac_u%gp
  +s%ac_u%ac_e%gp
  +EOF
  +sed -n -f conftest.hdr confdefs.h > conftest.vals
  +rm -f conftest.hdr
  +
  +# This sed command replaces #undef with comments.  This is necessary, for
  +# example, in the case of _POSIX_SOURCE, which is predefined and required
  +# on some systems where configure will not decide to define it.
  +cat >> conftest.vals <<\EOF
  +s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  +EOF
  +
  +# Break up conftest.vals because some shells have a limit on
  +# the size of here documents, and old seds have small limits too.
  +
  +rm -f conftest.tail
  +while :
  +do
  +  ac_lines=`grep -c . conftest.vals`
  +  # grep -c gives empty output for an empty file on some AIX systems.
  +  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  +  # Write a limited-size here document to conftest.frag.
  +  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  +  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  +  echo 'CEOF
  +  sed -f conftest.frag conftest.in > conftest.out
  +  rm -f conftest.in
  +  mv conftest.out conftest.in
  +' >> $CONFIG_STATUS
  +  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  +  rm -f conftest.vals
  +  mv conftest.tail conftest.vals
  +done
  +rm -f conftest.vals
  +
  +cat >> $CONFIG_STATUS <<\EOF
  +  rm -f conftest.frag conftest.h
  +  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  +  cat conftest.in >> conftest.h
  +  rm -f conftest.in
  +  if cmp -s $ac_file conftest.h 2>/dev/null; then
  +    echo "$ac_file is unchanged"
  +    rm -f conftest.h
  +  else
  +    # Remove last slash and all that follows it.  Not all systems have dirname.
  +      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  +      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  +      # The file is in a subdirectory.
  +      test ! -d "$ac_dir" && mkdir "$ac_dir"
  +    fi
  +    rm -f $ac_file
  +    mv conftest.h $ac_file
  +  fi
  +fi; done
   
   EOF
   cat >> $CONFIG_STATUS <<EOF