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/02/02 00:42:54 UTC

cvs commit: xml-xerces/c/src configure

abagchi     00/02/01 15:42:54

  Modified:    c/src    configure
  Log:
  AS/400 related change
  
  Revision  Changes    Path
  1.8       +118 -20   xml-xerces/c/src/configure
  
  Index: configure
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/configure,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- configure	2000/01/21 22:10:21	1.7
  +++ configure	2000/02/01 23:42:54	1.8
  @@ -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
  @@ -1311,10 +1311,16 @@
                               *)            osver=HPUX11;;
                           esac;;
           *-*-mvs*)       platform=OS390 ;;
  +        *-*-os400*)     platform=OS400 ;;
           *)              platform=UNKNOWN ;;
   esac
   
   
  +case "${host}" in
  + *-*-os400*)      ;;
  +*) ;;
  +esac
  +
   cxx=${CXX}
   
   
  @@ -1410,25 +1416,8 @@
   fi
   
   trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  -
  -# Transform confdefs.h into DEFS.
  -# Protect against shell expansion while executing Makefile rules.
  -# Protect against Makefile macro expansion.
  -cat > conftest.defs <<\EOF
  -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  -s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g
  -s%\[%\\&%g
  -s%\]%\\&%g
  -s%\$%$$%g
  -EOF
  -if test "$platform" != "OS390"; then
  -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  -else
  -# OS390 - EBCDIC NL is '\025'
  -DEFS=`sed -f conftest.defs confdefs.h | tr '\025' ' '`
  -fi
  -rm -f conftest.defs
   
  +DEFS=-DHAVE_CONFIG_H
   
   # Without the "./", some shells look in PATH for config.status.
   : ${CONFIG_STATUS=./config.status}
  @@ -1475,13 +1464,14 @@
   util/MsgLoaders/InMemory/Makefile \
   util/MsgLoaders/ICU/Makefile \
   util/MsgLoaders/MsgCatalog/Makefile \
  +util/MsgLoaders/MsgFile/Makefile \
   validators/DTD/Makefile \
   framework/Makefile \
   dom/Makefile \
   parsers/Makefile \
   internal/Makefile \
   sax/Makefile \
  -../obj/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  +../obj/Makefile conf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
   EOF
   cat >> $CONFIG_STATUS <<EOF
   
  @@ -1587,6 +1577,7 @@
   util/MsgLoaders/InMemory/Makefile \
   util/MsgLoaders/ICU/Makefile \
   util/MsgLoaders/MsgCatalog/Makefile \
  +util/MsgLoaders/MsgFile/Makefile \
   validators/DTD/Makefile \
   framework/Makefile \
   dom/Makefile \
  @@ -1651,6 +1642,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