Blame test/mpi/maint/configure.ac

Packit 0848f5
# -*- Mode: shell-script; -*-
Packit 0848f5
AC_PREREQ(2.59)
Packit 0848f5
AC_INIT
Packit 0848f5
#
Packit 0848f5
# Try to find the version
Packit 0848f5
if test -s "$srcdir/Version" ; then
Packit 0848f5
    VERSION="`cat $srcdir/Version`"
Packit 0848f5
else
Packit 0848f5
    VERSION="Unknown"
Packit 0848f5
fi
Packit 0848f5
AC_SUBST(VERSION)
Packit 0848f5
AC_PATH_PROG(PERL,perl)
Packit 0848f5
Packit 0848f5
# Find the location of the mpich sources
Packit 0848f5
if test -z "$abs_srcdir" ; then
Packit 0848f5
    abs_srcdir=`cd $srcdir && pwd`
Packit 0848f5
fi
Packit 0848f5
abs_mpichsrcdir=`cd $abs_srcdir && cd .. && pwd`
Packit 0848f5
Packit 0848f5
AC_SUBST(abs_mpichsrcdir)
Packit 0848f5
Packit 0848f5
# Does xargs need the -r option to handle the case where the input 
Packit 0848f5
# is empty (gnu utils do, Mac OSX does not accept -r)
Packit 0848f5
xargs_out=`echo "" | xargs ls | wc -l | sed -e 's/ //g'`
Packit 0848f5
if test "$xargs_out" != "0" ; then
Packit 0848f5
    XARGS_NODATA_OPT=-r
Packit 0848f5
fi
Packit 0848f5
AC_SUBST(XARGS_NODATA_OPT)
Packit 0848f5
Packit 0848f5
AC_OUTPUT_COMMANDS([chmod a+x f77tof90] )
Packit 0848f5
Packit 0848f5
# The directory substitutions apparently don't work under Cygwin, so
Packit 0848f5
# simplemake manufactures these in a way that avoids triggering the 
Packit 0848f5
# autoconf replacement.
Packit 0848f5
# Note that top_srcdir and srcdir are special cases (they must not
Packit 0848f5
# be changed in configure.ac because configure uses them to find other files)
Packit 0848f5
AC_OUTPUT(f77tof90)