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