Browse Source

Also search smpicc and smpirun in $simgrid_dir/bin

Samuel Thibault 9 years ago
parent
commit
04f743c3b4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      configure.ac

+ 2 - 2
configure.ac

@@ -1804,7 +1804,7 @@ AC_ARG_WITH(mpicc, [AS_HELP_STRING([--with-mpicc[=<path to mpicc>]],
 			DEFAULT_MPICC=mpicc
 		fi
 		# nothing was specified: default value is used
-		AC_PATH_PROG(mpicc_path, $DEFAULT_MPICC, [no], [])
+		AC_PATH_PROG(mpicc_path, $DEFAULT_MPICC, [no], [$simgrid_dir/bin:$PATH])
 	])
 
 # We test if the MPICC compiler exists
@@ -1826,7 +1826,7 @@ else
 			],
 			[
 				# nothing was specified: default value is used
-				AC_PATH_PROG(smpirun_path, smpirun, [no], [])
+				AC_PATH_PROG(smpirun_path, smpirun, [no], [$simgrid_dir/bin:$PATH])
 			])
 
 	fi