Skip to content

Commit 704c536

Browse files
authored
Merge pull request pmodels#7299 from raffenet/config-report-bindings
configure: Add version and language info to end report Approved-by: Hui Zhou <[email protected]>
2 parents b9cc3aa + 06c520a commit 704c536

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

confdb/aclocal_util.m4

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
dnl PAC_APPEND_CSV - Append value to comma separated list
2+
dnl Usage: PAC_APPEND_CSV([foo], [bar])
3+
AC_DEFUN([PAC_APPEND_CSV],[
4+
AS_IF([test -n "$$2"],
5+
[$2="$$2, $1"],
6+
[$2=$1])
7+
])
8+
19
dnl Nesting safe macros for saving variables
210
dnl Usage: PAC_PUSH_FLAG(CFLAGS)
311
AC_DEFUN([PAC_PUSH_FLAG],[

configure.ac

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2047,6 +2047,7 @@ if test "$enable_f77" = "yes" ; then
20472047
AC_SUBST(WRAPPER_EXTRA_F77_FLAGS)
20482048

20492049
bindings="$bindings f77"
2050+
PAC_APPEND_CSV([mpif.h], [fortran_bindings])
20502051
AC_DEFINE(HAVE_FORTRAN_BINDING,1,[Define if Fortran is supported])
20512052
# Also define the name FORTRAN_BINDING for use in #if @FORTRAN_BINDING@..
20522053
FORTRAN_BINDING=1
@@ -2080,6 +2081,7 @@ bashWorks=$bashWorks)
20802081
if test "$enable_f90" = "yes" ; then
20812082
bindingsubsystems="$bindingsubsystems src/binding/fortran/use_mpi"
20822083
bindings="$bindings f90"
2084+
PAC_APPEND_CSV([use mpi], [fortran_bindings])
20832085
fi
20842086

20852087
if test "$enable_f08" = "yes" ; then
@@ -2089,6 +2091,7 @@ AM_CONDITIONAL([BUILD_F08_BINDING], [test "$enable_f08" = "yes"])
20892091

20902092
if test "$enable_f08" = "yes" ; then
20912093
bindings="$bindings f08"
2094+
PAC_APPEND_CSV([use mpi_f08], [fortran_bindings])
20922095
AC_DEFINE(HAVE_F08_BINDING, 1, [Define to 1 if we have Fortran 2008 binding])
20932096
fi
20942097

@@ -4273,19 +4276,31 @@ if test "$enable_f08" = "yes" ; then
42734276
fi
42744277
AC_OUTPUT
42754278

4276-
echo '*****************************************************'
4279+
# TODO: add info about MPI ABI
4280+
cat <<EOF
4281+
*****************************************************
4282+
***
4283+
*** MPICH $MPICH_VERSION ($MPICH_RELEASE_DATE)
4284+
***
4285+
*** Language Support
4286+
*** ----------------
4287+
*** C : yes
4288+
*** C++ : $enable_cxx
4289+
*** Fortran : $fortran_bindings
4290+
***
4291+
*** Device Configuration
4292+
*** --------------------
4293+
EOF
42774294
if test ${device_name} = "ch4" ; then
42784295
PAC_CH4_CONFIG_SUMMARY()
42794296
elif test ${DEVICE} = "ch3:nemesis" ; then
42804297
cat <<EOF
4281-
***
42824298
*** device configuration: ch3:nemesis
42834299
*** nemesis networks: ${nemesis_networks}
42844300
***
42854301
EOF
42864302
else
42874303
cat <<EOF
4288-
***
42894304
*** device configuration: ${DEVICE}
42904305
***
42914306
EOF

src/mpid/ch4/subconfigure.m4

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,6 @@ AC_DEFUN([PAC_CH4_CONFIG_SUMMARY], [
410410
t_ipc="$t_ipc gpudirect"
411411
fi
412412
cat <<EOF
413-
***
414413
*** device : ch4:${t_netmod}
415414
*** ipc feature : ${t_ipc}
416415
*** gpu support : ${t_gpu}

0 commit comments

Comments
 (0)