Skip to content
Snippets Groups Projects
Commit b4ac94d0 authored by Christian Engwer's avatar Christian Engwer
Browse files

fixed standalone mode

[[Imported from SVN: r4884]]
parent 08e73867
No related branches found
No related tags found
No related merge requests found
......@@ -20,16 +20,24 @@ canonicalpath(){
findm4dir() {
BINDIR="$(canonicalpath $0)"
# source-build
M4DIR="$BINDIR/../m4"
if test -f "$M4DIR/mpi-config.m4"; then
echo "$M4DIR"
return
fi
# installed
M4DIR="$BINDIR/../share/aclocal"
if test -f "$M4DIR/mpi-config.m4"; then
echo "$M4DIR"
return
fi
# downloaded
M4DIR="$BINDIR"
if test -f "$M4DIR/mpi-config.m4"; then
echo "$M4DIR"
return
fi
echo "ERROR: could not find mpi-config.m4! Incomplete installation?" \
> /dev/stderr
exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment