#!/bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host pico:
#
# ./configure -cflags=-no-cpp-precomp -prefix=/usr/local/mpich -mpe_opts=--with-wishloc=wish8.0

for arg
do
  case "$arg" in
    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    echo running ${CONFIG_SHELL-/bin/sh} ./configure -cflags=-no-cpp-precomp -prefix=/usr/local/mpich -mpe_opts=--with-wishloc=wish8.0
    exec ${CONFIG_SHELL-/bin/sh} ./configure -cflags=-no-cpp-precomp -prefix=/usr/local/mpich -mpe_opts=--with-wishloc=wish8.0 ;;
    *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  esac
done

trap 'rm -fr Makefile util/Makefile examples/Makefile src/pt2pt/Makefile           src/coll/Makefile src/context/Makefile src/dmpi/Makefile 	  src/env/Makefile src/topol/Makefile src/profile/Makefile 	  src/coll2/Makefile 	  src/util/Makefile src/infoexport/Makefile examples/basic/Makefile 	  src/misc2/Makefile src/external/Makefile  mpichconf.h conftest*; exit 1' 1 3 15
CASE_SENSITIVE='no'
HASMPE='yes'
INSTALL='/usr/bin/install -c -o root -g wheel'
INSTALL_PROGRAM='install -c -s -o root -g wheel -m 555'
INSTALL_DATA='install -c -o root -g wheel -m 444'
RANLIB='ranlib -c'
VPATH='VPATH=.:$(srcdir)'
includedir=/usr/local/mpich/include
srcdir='/usr/ports/net/mpich/work/mpich-1.2.3'
exec_prefix='${prefix}'
bindir=/usr/local/mpich/bin
sbindir='${exec_prefix}/sbin'
libdir='${exec_prefix}/lib'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
sharedlib_dir='${libdir}/shared'
SHAREDLIB_LOCALDIR=''
SHARED_LIB_LOCALDIR=''
prefix=/usr/local/mpich
mandir='${prefix}/man'
docdir='${prefix}/doc'
htmldir='${prefix}/www'
top_srcdir='/usr/ports/net/mpich/work/mpich-1.2.3'
datadir=
builddir='/usr/ports/net/mpich/work/mpich-1.2.3'
libbuild_dir='/usr/ports/net/mpich/work/mpich-1.2.3/lib'
sharedlibbuild_dir=''
binbuild_dir='/usr/ports/net/mpich/work/mpich-1.2.3/bin'
includebuild_dir='/usr/ports/net/mpich/work/mpich-1.2.3/include'
sysconfdir='${exec_prefix}/etc'
GXXTRIAL=''
ARNAME='ar'
HAVE_NO_C_CONST='0'
CPP='cc -E'
SHARED_LIB_SEARCH_PATH_LEADER=''
CXXENABLE=''
CC_SHARED_OPT=''
CC_SHARED_OPT_FOR_TV=''
CXXFLAGS_FOR_SHARED=''
SHAREDKIND='ignore'
SHAREDKIND_FOR_TV='ignore'
MPI_STATUS_SIZE='4'
HAS_WEAK_SYMBOLS='0'
MPI_WITH_PMPI='no'
PERL='/usr/local/bin/perl5'
CPP_EXTRA_LIBS=''
messagecat_dir=''
GENCAT='gencat'
USE_STDARG='1'
BACKTRACE=''
mpich_includes='-I/usr/ports/net/mpich/work/mpich-1.2.3/include -I/usr/ports/net/mpich/work/mpich-1.2.3/include -I/usr/ports/net/mpich/work/mpich-1.2.3/mpid/ch_p4'
LIB_PATH_LEADER='-L'
F77_IN_C_LIBS=''
F90_SUFFIX=''
F90_MODINCFLAG=''
FLIBNAME='mpich'
AUTOMOUNTFIX='sed -e s@/tmp_mnt/@/@g'
RSHCOMMAND='rsh'
SYNCLOC='/bin/sync'
ASM=''
ASMFILES_O=''
AR='ar crl'
ARCH='freebsd'
BASE_LIB_LIST='  '
CC='cc'
CFLAGS='-no-cpp-precomp -no-cpp-precomp -DHAVE_MPICHCONF_H'
CLINKER='cc'
CCFLAGS=' -no-cpp-precomp -DUSE_STDARG  -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDARG_H=1 -DUSE_STDARG=1 -DMALLOC_RET_VOID=1'
CCLINKER='c++'
CPP_COMPILER='c++'
CPP_DIR='MPI-2-C++'
CPPFLAGS=''
CXXFLAGS='-I${includedir}/mpi2c++'
LDFLAGS=''
CPPLDFLAGS=''
CPRP='cp'
DEFAULT_MACHINE='ch_p4'
DEVCFLAGS=' -DMPID_DEBUG_NONE -DMPID_STAT_NONE'
DEVCFILES=''
DEVOFILES=''
DEV_DEFS=''
DEVICE='ch_p4'
DEVICE_MAKE_INCLUDE=''
F77='f77'
FAST_COPY=''
FFLAGS=''
FLIB_PATH=''
FLIB_PATH_LEADER=''
FLIB_LIST=' '
FLINKER='f77 '
GETNAME_DEFS=' -DHAVE_UNAME=1 -DHAVE_NETDB_H=1 -DHAVE_GETHOSTBYNAME=1'
HAS_FORTRAN='0'
HAS_MPI2='1'
INCLUDE_PATH=''
LIB_LIST='-lmpich   '
LIB_PATH='-L${libdir} '
LIB_DIR='${prefix}'
MAKE='make'
MPE_DIR='/usr/local/mpich/mpe'
MPE_MPI_EXT_C=' mpehname.c'
MPE_MPI_EXT_O=' mpehname.o'
ENABLE_MPEDBG=''
MPIVERSION='1.2.3 of : 2002/01/23 21:03:59'
CONFIGURE_ARGS_CLEAN='-cflags=-no-cpp-precomp -prefix=/usr/local/mpich -mpe_opts=--with-wishloc=wish8.0'
HAVE_MPID_DEFS_H='0'
COMM=''
MPICH_VERSION='MPICH 1.2.3 of : 2002/01/23 21:03:59'
MPIR_HOME='/usr/local/mpich'
MPI_AINT='int'
MPI_FINT=''
MPILIBNAME='mpich'
MPICC=/usr/local/mpich/bin/mpicc
MPIF77=/usr/local/mpich/bin/mpif77
MPIF90=/usr/local/mpich/bin/mpif90
MPICPLUSPLUS=/usr/local/mpich/bin/mpiCC
MPI2OPTIONAL=''
MEMDEBUG=''
NLS_DEFS=''
NEWTESTDIRS=' io'
OPTFLAGS=''
OPTFLAGSC=''
OPTFLAGSF=''
P4_ARCH='FREEBSD'
P4_DIR=''
RHS_COMMAND=''
PREFIX='/usr/local/mpich'
USER_CFLAGS='-no-cpp-precomp -DUSE_STDARG  -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDARG_H=1 -DUSE_STDARG=1 -DMALLOC_RET_VOID=1'
ROMIO='1'
ROMIO_LFLAGS=''
ROMIO_TCFLAGS=''
ROMIO_TCPPFLAGS=''
ROMIO_TFFLAGS=''
buildcpp='1'
NOF77='1'
NO_F90='1'
NOMPE='0'
hasMPE='yes'
MPE_OPTS='--with-wishloc=wish8.0'
LIBS=''
prefix=/usr/local/mpich
exec_prefix='${prefix}'
prsub='s%^prefix\([ 	]*\)=\([ 	]*\).*$%prefix\1=\2/usr/local/mpich%
s%^exec_prefix\([ 	]*\)=\([ 	]*\).*$%exec_prefix\1=\2${prefix}%'
extrasub=''

top_srcdir=$srcdir

CONFIG_FILES=${CONFIG_FILES-"Makefile util/Makefile examples/Makefile src/pt2pt/Makefile \
          src/coll/Makefile src/context/Makefile src/dmpi/Makefile \
	  src/env/Makefile src/topol/Makefile src/profile/Makefile \
	  src/coll2/Makefile \
	  src/util/Makefile src/infoexport/Makefile examples/basic/Makefile \
	  src/misc2/Makefile src/external/Makefile "}
for file in .. ${CONFIG_FILES}; do if test "x$file" != x..; then
  srcdir=$top_srcdir
  # Remove last slash and all that follows it.  Not all systems have dirname.
  dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  if test "$dir" != "$file"; then
    test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
    test ! -d $dir && mkdir $dir
  fi
  echo creating $file
  rm -f $file
  echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
cat ${file}.in | sed -e "
$prsub
$extrasub
s%@CASE_SENSITIVE@%$CASE_SENSITIVE%g
s%@HASMPE@%$HASMPE%g
s%@INSTALL@%$INSTALL%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@RANLIB@%$RANLIB%g
s%@VPATH@%$VPATH%g
s%@includedir@%$includedir%g
s%@srcdir@%$srcdir%g
s%@exec_prefix@%$exec_prefix%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@libdir@%$libdir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@localstatedir@%$localstatedir%g
s%@sharedlib_dir@%$sharedlib_dir%g
s%@SHAREDLIB_LOCALDIR@%$SHAREDLIB_LOCALDIR%g
s%@SHARED_LIB_LOCALDIR@%$SHARED_LIB_LOCALDIR%g
s%@prefix@%$prefix%g
s%@mandir@%$mandir%g
s%@docdir@%$docdir%g
s%@htmldir@%$htmldir%g
s%@top_srcdir@%$top_srcdir%g
s%@datadir@%$datadir%g
s%@builddir@%$builddir%g
s%@libbuild_dir@%$libbuild_dir%g
s%@sharedlibbuild_dir@%$sharedlibbuild_dir%g
s%@binbuild_dir@%$binbuild_dir%g
s%@includebuild_dir@%$includebuild_dir%g
s%@sysconfdir@%$sysconfdir%g
s%@GXXTRIAL@%$GXXTRIAL%g
s%@ARNAME@%$ARNAME%g
s%@HAVE_NO_C_CONST@%$HAVE_NO_C_CONST%g
s%@CPP@%$CPP%g
s%@SHARED_LIB_SEARCH_PATH_LEADER@%$SHARED_LIB_SEARCH_PATH_LEADER%g
s%@CXXENABLE@%$CXXENABLE%g
s%@CC_SHARED_OPT@%$CC_SHARED_OPT%g
s%@CC_SHARED_OPT_FOR_TV@%$CC_SHARED_OPT_FOR_TV%g
s%@CXXFLAGS_FOR_SHARED@%$CXXFLAGS_FOR_SHARED%g
s%@SHAREDKIND@%$SHAREDKIND%g" | sed -e "
s%@SHAREDKIND_FOR_TV@%$SHAREDKIND_FOR_TV%g
s%@MPI_STATUS_SIZE@%$MPI_STATUS_SIZE%g
s%@HAS_WEAK_SYMBOLS@%$HAS_WEAK_SYMBOLS%g
s%@MPI_WITH_PMPI@%$MPI_WITH_PMPI%g
s%@PERL@%$PERL%g
s%@CPP_EXTRA_LIBS@%$CPP_EXTRA_LIBS%g
s%@messagecat_dir@%$messagecat_dir%g
s%@GENCAT@%$GENCAT%g
s%@USE_STDARG@%$USE_STDARG%g
s%@BACKTRACE@%$BACKTRACE%g
s%@mpich_includes@%$mpich_includes%g
s%@LIB_PATH_LE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TFFLAGS@%$ROMIO_TFFLAGS%g
s%@buildcpp@%$buildcpp%g
s%@NOF77@%$NOF77%g
s%@NO_F90@%$NO_F90%g
s%@NOMPE@%$NOMPE%g
s%@hasMPE@%$hasMPE%g
s%@MPE_OPTS@%$MPE_OPTS%g
s%@LIBS@%$LIBS%g
s%@DEFS@%-DHAVE_CONFIG_H%" >> $file
fi; done

CONFIG_HEADERS=${CONFIG_HEADERS-"mpichconf.h"}
for file in .. ${CONFIG_HEADERS}; do if test "x$file" != x..; then
echo creating $file

# These sed commands are put into SEDDEFS when defining a macro.
# They are broken into pieces to make the sed script easier to manage.
# They 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.
# Each defining turns into a single global substitution command.
#
# SEDd sets the value in "#define NAME VALUE" lines.
SEDdA='s@^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
SEDdB='\([ 	][ 	]*\)[^ 	]*@\1#\2'
SEDdC='\3'
SEDdD='@g'
# SEDu turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
SEDuA='s@^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
SEDuB='\([ 	]\)@\1#\2define\3'
SEDuC=' '
SEDuD='\4@g'
# SEDe turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
SEDeA='s@^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
SEDeB='$@\1#\2define\3'
SEDeC=' '
SEDeD='@g'
rm -f conftest.sed
cat >> conftest.sed <<CONFEOF
${SEDdA}MPE_USE_EXTENSIONS${SEDdB}MPE_USE_EXTENSIONS${SEDdC}1${SEDdD}
${SEDuA}MPE_USE_EXTENSIONS${SEDuB}MPE_USE_EXTENSIONS${SEDuC}1${SEDuD}
${SEDeA}MPE_USE_EXTENSIONS${SEDeB}MPE_USE_EXTENSIONS${SEDeC}1${SEDeD}
${SEDdA}HAS_VOLATILE${SEDdB}HAS_VOLATILE${SEDdC}1${SEDdD}
${SEDuA}HAS_VOLATILE${SEDuB}HAS_VOLATILE${SEDuC}1${SEDuD}
${SEDeA}HAS_VOLATILE${SEDeB}HAS_VOLATILE${SEDeC}1${SEDeD}
${SEDdA}HAVE_SIGNAL_H${SEDdB}HAVE_SIGNAL_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_SIGNAL_H${SEDuB}HAVE_SIGNAL_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_SIGNAL_H${SEDeB}HAVE_SIGNAL_H${SEDeC}1${SEDeD}
CONFEOF
cat >> conftest.sed <<CONFEOF
${SEDdA}HAVE_SIGACTION${SEDdB}HAVE_SIGACTION${SEDdC}1${SEDdD}
${SEDuA}HAVE_SIGACTION${SEDuB}HAVE_SIGACTION${SEDuC}1${SEDuD}
${SEDeA}HAVE_SIGACTION${SEDeB}HAVE_SIGACTION${SEDeC}1${SEDeD}
${SEDdA}HAS_XDR${SEDdB}HAS_XDR${SEDdC}1${SEDdD}
${SEDuA}HAS_XDR${SEDuB}HAS_XDR${SEDuC}1${SEDuD}
${SEDeA}HAS_XDR${SEDeB}HAS_XDR${SEDeC}1${SEDeD}
${SEDdA}HAVE_UNAME${SEDdB}HAVE_UNAME${SEDdC}1${SEDdD}
${SEDuA}HAVE_UNAME${SEDuB}HAVE_UNAME${SEDuC}1${SEDuD}
${SEDeA}HAVE_UNAME${SEDeB}HAVE_UNAME${SEDeC}1${SEDeD}
CONFEOF
cat >> conftest.sed <<CONFEOF
${SEDdA}HAVE_NETDB_H${SEDdB}HAVE_NETDB_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_NETDB_H${SEDuB}HAVE_NETDB_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_NETDB_H${SEDeB}HAVE_NETDB_H${SEDeC}1${SEDeD}
${SEDdA}HAVE_GETHOSTBYNAME${SEDdB}HAVE_GETHOSTBYNAME${SEDdC}1${SEDdD}
${SEDuA}HAVE_GETHOSTBYNAME${SEDuB}HAVE_GETHOSTBYNAME${SEDuC}1${SEDuD}
${SEDeA}HAVE_GETHOSTBYNAME${SEDeB}HAVE_GETHOSTBYNAME${SEDeC}1${SEDeD}
${SEDdA}STDC_HEADERS${SEDdB}STDC_HEADERS${SEDdC}1${SEDdD}
${SEDuA}STDC_HEADERS${SEDuB}STDC_HEADERS${SEDuC}1${SEDuD}
${SEDeA}STDC_HEADERS${SEDeB}STDC_HEADERS${SEDeC}1${SEDeD}
CONFEOF
cat >> conftest.sed <<CONFEOF
${SEDdA}HAVE_STDLIB_H${SEDdB}HAVE_STDLIB_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_STDLIB_H${SEDuB}HAVE_STDLIB_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_STDLIB_H${SEDeB}HAVE_STDLIB_H${SEDeC}1${SEDeD}
${SEDdA}HAVE_STRING_H${SEDdB}HAVE_STRING_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_STRING_H${SEDuB}HAVE_STRING_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_STRING_H${SEDeB}HAVE_STRING_H${SEDeC}1${SEDeD}
${SEDdA}HAVE_UNISTD_H${SEDdB}HAVE_UNISTD_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_UNISTD_H${SEDuB}HAVE_UNISTD_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_UNISTD_H${SEDeB}HAVE_UNISTD_H${SEDeC}1${SEDeD}
CONFEOF
cat >> conftest.sed <<CONFEOF
${SEDdA}HAVE_STDARG_H${SEDdB}HAVE_STDARG_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_STDARG_H${SEDuB}HAVE_STDARG_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_STDARG_H${SEDeB}HAVE_STDARG_H${SEDeC}1${SEDeD}
${SEDdA}USE_STDARG${SEDdB}USE_STDARG${SEDdC}1${SEDdD}
${SEDuA}USE_STDARG${SEDuB}USE_STDARG${SEDuC}1${SEDuD}
${SEDeA}USE_STDARG${SEDeB}USE_STDARG${SEDeC}1${SEDeD}
${SEDdA}MALLOC_RET_VOID${SEDdB}MALLOC_RET_VOID${SEDdC}1${SEDdD}
${SEDuA}MALLOC_RET_VOID${SEDuB}MALLOC_RET_VOID${SEDuC}1${SEDuD}
${SEDeA}MALLOC_RET_VOID${SEDeB}MALLOC_RET_VOID${SEDeC}1${SEDeD}
CONFEOF
cat >> conftest.sed <<CONFEOF
${SEDdA}HAVE_SYSTEM${SEDdB}HAVE_SYSTEM${SEDdC}1${SEDdD}
${SEDuA}HAVE_SYSTEM${SEDuB}HAVE_SYSTEM${SEDuC}1${SEDuD}
${SEDeA}HAVE_SYSTEM${SEDeB}HAVE_SYSTEM${SEDeC}1${SEDeD}
${SEDdA}HAVE_NICE${SEDdB}HAVE_NICE${SEDdC}1${SEDdD}
${SEDuA}HAVE_NICE${SEDuB}HAVE_NICE${SEDuC}1${SEDuD}
${SEDeA}HAVE_NICE${SEDeB}HAVE_NICE${SEDeC}1${SEDeD}
${SEDdA}HAVE_STRDUP${SEDdB}HAVE_STRDUP${SEDdC}1${SEDdD}
${SEDuA}HAVE_STRDUP${SEDuB}HAVE_STRDUP${SEDuC}1${SEDuD}
${SEDeA}HAVE_STRDUP${SEDeB}HAVE_STRDUP${SEDeC}1${SEDeD}
CONFEOF
cat >> conftest.sed <<CONFEOF
${SEDdA}HAVE_MEMORY_H${SEDdB}HAVE_MEMORY_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_MEMORY_H${SEDuB}HAVE_MEMORY_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_MEMORY_H${SEDeB}HAVE_MEMORY_H${SEDeC}1${SEDeD}
${SEDdA}HAVE_SYS_IOCTL_H${SEDdB}HAVE_SYS_IOCTL_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_SYS_IOCTL_H${SEDuB}HAVE_SYS_IOCTL_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_SYS_IOCTL_H${SEDeB}HAVE_SYS_IOCTL_H${SEDeC}1${SEDeD}
${SEDdA}HAVE_SYS_SOCKIO_H${SEDdB}HAVE_SYS_SOCKIO_H${SEDdC}1${SEDdD}
${SEDuA}HAVE_SYS_SOCKIO_H${SEDuB}HAVE_SYS_SOCKIO_H${SEDuC}1${SEDuD}
${SEDeA}HAVE_SYS_SOCKIO_H${SEDeB}HAVE_SYS_SOCKIO_H${SEDeC}1${SEDeD}
CONFEOF
cat >> conftest.sed <<CONFEOF
${SEDdA}HAVE_LONG_LONG_INT${SEDdB}HAVE_LONG_LONG_INT${SEDdC}1${SEDdD}
${SEDuA}HAVE_LONG_LONG_INT${SEDuB}HAVE_LONG_LONG_INT${SEDuC}1${SEDuD}
${SEDeA}HAVE_LONG_LONG_INT${SEDeB}HAVE_LONG_LONG_INT${SEDeC}1${SEDeD}
${SEDdA}HAVE_LONG_DOUBLE${SEDdB}HAVE_LONG_DOUBLE${SEDdC}1${SEDdD}
${SEDuA}HAVE_LONG_DOUBLE${SEDuB}HAVE_LONG_DOUBLE${SEDuC}1${SEDuD}
${SEDeA}HAVE_LONG_DOUBLE${SEDeB}HAVE_LONG_DOUBLE${SEDeC}1${SEDeD}
${SEDdA}USE_BASIC_FOUR_ALIGNMENT${SEDdB}USE_BASIC_FOUR_ALIGNMENT${SEDdC}1${SEDdD}
${SEDuA}USE_BASIC_FOUR_ALIGNMENT${SEDuB}USE_BASIC_FOUR_ALIGNMENT${SEDuC}1${SEDuD}
${SEDeA}USE_BASIC_FOUR_ALIGNMENT${SEDeB}USE_BASIC_FOUR_ALIGNMENT${SEDeC}1${SEDeD}
CONFEOF
cat >> conftest.sed <<CONFEOF
${SEDdA}MPI_ADI2${SEDdB}MPI_ADI2${SEDdC}1${SEDdD}
${SEDuA}MPI_ADI2${SEDuB}MPI_ADI2${SEDuC}1${SEDuD}
${SEDeA}MPI_ADI2${SEDeB}MPI_ADI2${SEDeC}1${SEDeD}
${SEDdA}MPID_NO_FORTRAN${SEDdB}MPID_NO_FORTRAN${SEDdC}1${SEDdD}
${SEDuA}MPID_NO_FORTRAN${SEDuB}MPID_NO_FORTRAN${SEDuC}1${SEDuD}
${SEDeA}MPID_NO_FORTRAN${SEDeB}MPID_NO_FORTRAN${SEDeC}1${SEDeD}
${SEDdA}CONFIGURE_ARGS_CLEAN${SEDdB}CONFIGURE_ARGS_CLEAN${SEDdC}"-cflags=-no-cpp-precomp -prefix=/usr/local/mpich -mpe_opts=--with-wishloc=wish8.0"${SEDdD}
${SEDuA}CONFIGURE_ARGS_CLEAN${SEDuB}CONFIGURE_ARGS_CLEAN${SEDuC}"-cflags=-no-cpp-precomp -prefix=/usr/local/mpich -mpe_opts=--with-wishloc=wish8.0"${SEDuD}
${SEDeA}CONFIGURE_ARGS_CLEAN${SEDeB}CONFIGURE_ARGS_CLEAN${SEDeC}"-cflags=-no-cpp-precomp -prefix=/usr/local/mpich -mpe_opts=--with-wishloc=wish8.0"${SEDeD}
CONFEOF
cat >> conftest.sed <<CONFEOF
${SEDdA}MPIRUN_MACHINE${SEDdB}MPIRUN_MACHINE${SEDdC}"ch_p4"${SEDdD}
${SEDuA}MPIRUN_MACHINE${SEDuB}MPIRUN_MACHINE${SEDuC}"ch_p4"${SEDuD}
${SEDeA}MPIRUN_MACHINE${SEDeB}MPIRUN_MACHINE${SEDeC}"ch_p4"${SEDeD}
${SEDdA}MPIRUN_DEVICE${SEDdB}MPIRUN_DEVICE${SEDdC}"ch_p4"${SEDdD}
${SEDuA}MPIRUN_DEVICE${SEDuB}MPIRUN_DEVICE${SEDuC}"ch_p4"${SEDuD}
${SEDeA}MPIRUN_DEVICE${SEDeB}MPIRUN_DEVICE${SEDeC}"ch_p4"${SEDeD}

CONFEOF
# This sed command replaces #undef's 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 in
# mpichconf.h.
cat >> conftest.sed <<\CONFEOF
s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
CONFEOF
rm -f conftest.h
# Break up the sed commands because old seds have small limits.
maxsedlines=20
cp $file.in conftest.h1
while :
do
  lines=`grep -c . conftest.sed`
  if test -z "$lines" || test "$lines" -eq 0; then break; fi
  rm -f conftest.s1 conftest.s2 conftest.h2
  sed ${maxsedlines}q conftest.sed > conftest.s1 # Like head -20.
  sed 1,${maxsedlines}d conftest.sed > conftest.s2 # Like tail +21.
  sed -f conftest.s1 < conftest.h1 > conftest.h2
  rm -f conftest.s1 conftest.h1 conftest.sed
  mv conftest.h2 conftest.h1
  mv conftest.s2 conftest.sed
done
rm -f conftest.sed conftest.h
echo "/* $file.  Generated automatically by configure.  */" > conftest.h
cat conftest.h1 >> conftest.h
rm -f conftest.h1
if cmp -s $file conftest.h 2>/dev/null; then
  # The file exists and we would not be changing it.
  echo "$file is unchanged"
  rm -f conftest.h
else
  rm -f $file
  mv conftest.h $file
fi
fi; done



exit 0
