]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Check some known PATHs for mpicc in configure.
authorMark Wielaard <mark@klomp.org>
Thu, 21 Aug 2014 10:04:04 +0000 (10:04 +0000)
committerMark Wielaard <mark@klomp.org>
Thu, 21 Aug 2014 10:04:04 +0000 (10:04 +0000)
On some distributions (fedora) mpicc not installed on the default PATH.
Add a search path for finding mpicc by default if it is installed.
The user can still override the used mpicc compiler using --with-mpicc=.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14325

configure.ac

index 1c56455a8fd4417b50fb2082298390ba54918462..8edc59363331565ec2207814c71a94825f85575c 100644 (file)
@@ -2541,7 +2541,8 @@ fi
 # Note: this is a kludge in that it assumes the specified mpicc 
 # understands -m32/-m64 regardless of what is specified using
 # --with-mpicc=.
-MPI_CC="mpicc"
+AC_PATH_PROG([MPI_CC], [mpicc], [mpicc],
+             [$PATH:/usr/lib/openmpi/bin:/usr/lib64/openmpi/bin])
 
 mflag_primary=
 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \