From 4d16aa5ab78589e0e09dcd3072a06b3681bf7d54 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Thu, 16 Apr 1998 18:06:30 -0500 Subject: [svn-r350] RUNTEST was hardcoded to "mpirun -np 1" due to some historical SGI implementation. Changed it to take a user supplied value during configuration call. --- configure | 16 ++++++++-------- configure.in | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/configure b/configure index 567d80d..96b69ef 100755 --- a/configure +++ b/configure @@ -2100,8 +2100,9 @@ EOF PARALLEL_SRC='$(PARALLEL_SRC)' CPPFLAGS="$CPPFLAGS $MPI_INC" CFLAGS="$CFLAGS $MPI_LIB" + RUNTEST="$RUNTEST" echo $ac_n "checking for main in -lmpi""... $ac_c" 1>&6 -echo "configure:2105: checking for main in -lmpi" >&5 +echo "configure:2106: checking for main in -lmpi" >&5 ac_lib_var=`echo mpi'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2109,14 +2110,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lmpi $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:2121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2143,7 +2144,7 @@ else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for main in -lmpio""... $ac_c" 1>&6 -echo "configure:2147: checking for main in -lmpio" >&5 +echo "configure:2148: checking for main in -lmpio" >&5 ac_lib_var=`echo mpio'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2151,14 +2152,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lmpio $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:2163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2184,8 +2185,7 @@ EOF else echo "$ac_t""no" 1>&6 fi - RUNTEST='mpirun -np 1' - ;; + ;; *) { echo "configure: error: unknown parallel support: $PARALLEL" 1>&2; exit 1; } diff --git a/configure.in b/configure.in index e976474..e5b6bb5 100644 --- a/configure.in +++ b/configure.in @@ -265,9 +265,9 @@ case "X-$PARALLEL" in PARALLEL_SRC='$(PARALLEL_SRC)' CPPFLAGS="$CPPFLAGS $MPI_INC" CFLAGS="$CFLAGS $MPI_LIB" + RUNTEST="$RUNTEST" AC_CHECK_LIB(mpi,main) dnl Replace `main' with some function AC_CHECK_LIB(mpio,main) dnl Replace `main' with some function - RUNTEST='mpirun -np 1' ;; *) -- cgit v0.12